Description
Currently, incorrect property types defined in PHPDoc.
For example, in "eZ\Publish\Core\FieldType\Integer\Value"
/** * Content of the value. * * @var int */ public $value;
So, it's not clear for developer if this value will be 0 when not set.
And, if the developer created app-level value object following the same type, it will throw error.
class MyValueObject { public int $count; } // error here: $objInstance->count = $content->getFieldValue('some_integer')->value;