| Conditions | 3 |
| Paths | 3 |
| Total Lines | 11 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 40 | public function onPostDeserialize(ObjectEvent $event) |
||
| 41 | { |
||
| 42 | if ($event->getObject() instanceof PackageInterface) { |
||
| 43 | /** @var PackageInterface $package */ |
||
| 44 | $package = $event->getObject(); |
||
| 45 | |||
| 46 | if (null === $package->getItems()) { |
||
| 47 | $package->setItems(new ArrayCollection()); |
||
|
|
|||
| 48 | } |
||
| 49 | } |
||
| 50 | } |
||
| 51 | } |
||
| 52 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.