1 | <?php |
||
23 | class SetNotOnOrAfterAction extends AbstractProfileAction |
||
24 | { |
||
25 | /** @var TimeProviderInterface */ |
||
26 | protected $timeProvider; |
||
27 | |||
28 | /** @var int */ |
||
29 | protected $secondsSkew; |
||
30 | |||
31 | /** |
||
32 | * @param LoggerInterface $logger |
||
33 | * @param TimeProviderInterface $timeProvider |
||
34 | * @param int $secondsSkew |
||
35 | */ |
||
36 | 2 | public function __construct(LoggerInterface $logger, TimeProviderInterface $timeProvider, $secondsSkew) |
|
42 | |||
43 | /** |
||
44 | * @param ProfileContext $context |
||
45 | */ |
||
46 | 1 | protected function doExecute(ProfileContext $context) |
|
51 | } |
||
52 |
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: