Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
30 | public function convertToPHPValue($value, AbstractPlatform $platform) |
||
31 | { |
||
32 | $values = parent::convertToPHPValue($value, $platform); |
||
33 | |||
34 | if (\is_array($values)) { |
||
35 | $values = array_map(function ($value) { |
||
36 | return $this->getEnumClass()::get($value); |
||
|
|||
37 | }, $values); |
||
38 | } |
||
39 | |||
40 | return $values; |
||
41 | } |
||
42 | |||
45 |
Methods can only be called on objects. This check looks for methods being called on variables that have been inferred to never be objects.