| 1 | <?php  | 
            ||
| 10 | class XmlForm  | 
            ||
| 11 | { | 
            ||
| 12 | /**  | 
            ||
| 13 | * @var string  | 
            ||
| 14 | * @Serializer\XmlAttribute  | 
            ||
| 15 |      * @Serializer\Type("string") | 
            ||
| 16 | */  | 
            ||
| 17 | protected $name;  | 
            ||
| 18 | |||
| 19 | /**  | 
            ||
| 20 | * @var string  | 
            ||
| 21 | * @Serializer\XmlValue  | 
            ||
| 22 |      * @Serializer\Type("string") | 
            ||
| 23 | */  | 
            ||
| 24 | protected $value;  | 
            ||
| 25 | |||
| 26 | /**  | 
            ||
| 27 | * @var XmlForm[]  | 
            ||
| 28 | * @Serializer\XmlList(inline = true, entry = "form")  | 
            ||
| 29 |      * @Serializer\Type("array<Saxulum\RestCrud\Request\Converter\XmlForm>") | 
            ||
| 30 | */  | 
            ||
| 31 | protected $forms;  | 
            ||
| 32 | |||
| 33 | /**  | 
            ||
| 34 | * @return array  | 
            ||
| 35 | */  | 
            ||
| 36 | public function toArray()  | 
            ||
| 57 | }  | 
            ||
| 58 | 
This check looks for assignments to scalar types that may be of the wrong type.
To ensure the code behaves as expected, it may be a good idea to add an explicit type cast.