| 1 | <?php /** MicroConsoleResolver */ |
||
| 19 | class ConsoleResolver extends Resolver |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * Get instance application |
||
| 23 | * |
||
| 24 | * @access public |
||
| 25 | * |
||
| 26 | * @return \Micro\Base\Command |
||
| 27 | */ |
||
| 28 | public function getApplication() |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Get action from request |
||
| 35 | * |
||
| 36 | * @access public |
||
| 37 | * |
||
| 38 | * @return string |
||
| 39 | */ |
||
| 40 | public function getAction() |
||
| 47 | } |
||
| 48 |
If you access a property on an interface, you most likely code against a concrete implementation of the interface.
Available Fixes
Adding an additional type check:
Changing the type hint: