| 1 | <?php |
||
| 16 | class ActionsRegistry implements ActionsRegistryInterface |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | * @var StepActionInterface[][] |
||
| 20 | */ |
||
| 21 | private $actions = []; |
||
| 22 | |||
| 23 | public function addStepAction(string $manager, StepActionInterface $action): void |
||
| 27 | |||
| 28 | public function getAction(string $stepName, string $manager = null): StepActionInterface |
||
| 54 | } |
||
| 55 |
This check marks implicit conversions of arrays to boolean values in a comparison. While in PHP an empty array is considered to be equal (but not identical) to false, this is not always apparent.
Consider making the comparison explicit by using
empty(..)or! empty(...)instead.