| 1 | <?php | ||
| 14 | abstract class AbstractTransformer extends TransformerAbstract | ||
| 15 | { | ||
| 16 | /** | ||
| 17 | * @param mixed $data | ||
| 18 | * @param AbstractTransformer $transformer | ||
| 19 | * | ||
| 20 | * @return array | ||
| 21 | */ | ||
| 22 | protected function loadItem($data = null, AbstractTransformer $transformer = null) | ||
| 29 | |||
| 30 | /** | ||
| 31 | * @param mixed $data | ||
| 32 | * @param AbstractTransformer $transformer | ||
| 33 | * | ||
| 34 | * @return array | ||
| 35 | */ | ||
| 36 | protected function loadCollection($data = null, AbstractTransformer $transformer = null) | ||
| 45 | } | ||
| 46 | 
It seems like you allow that null is being passed for a parameter, however the function which is called does not seem to accept null.
We recommend to add an additional type check (or disallow null for the parameter):