1 | <?php |
||
6 | class Psr7MiddlewareAction implements ActionInterface |
||
7 | { |
||
8 | /** |
||
9 | * Executes a PSR-7 middleware. |
||
10 | * |
||
11 | * @param \Mcustiel\PowerRoute\Common\TransactionData $transactionData |
||
12 | * @param \Mcustiel\PowerRoute\Common\Conditions\ClassArgumentObject $argument |
||
13 | */ |
||
14 | 3 | public function execute(TransactionData $transactionData, $argument = null) |
|
26 | } |
||
27 |
If a variable is not always an object, we recommend to add an additional type check to ensure your method call is safe: