| 1 | <?php |
||
| 19 | class AssertionValidatorAction extends AbstractAssertionAction |
||
| 20 | { |
||
| 21 | /** @var AssertionValidatorInterface */ |
||
| 22 | protected $assertionValidator; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @param LoggerInterface $logger |
||
| 26 | * @param AssertionValidatorInterface $assertionValidator |
||
| 27 | */ |
||
| 28 | 3 | public function __construct(LoggerInterface $logger, AssertionValidatorInterface $assertionValidator) |
|
| 34 | |||
| 35 | /** |
||
| 36 | * @param AssertionContext $context |
||
| 37 | */ |
||
| 38 | 2 | protected function doExecute(AssertionContext $context) |
|
| 42 | } |
||
| 43 |
Unless you are absolutely sure that the expression can never be null because of other conditions, we strongly recommend to add an additional type check to your code: