| 1 | <?php |
||
| 23 | final class VersionAction implements MiddlewareInterface |
||
| 24 | { |
||
| 25 | /** |
||
| 26 | * @var Version |
||
| 27 | */ |
||
| 28 | private $version; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Constructor. |
||
| 32 | * |
||
| 33 | * @param Version $version |
||
| 34 | */ |
||
| 35 | public function __construct(Version $version) |
||
| 39 | |||
| 40 | /** |
||
| 41 | * {@inheritdoc} |
||
| 42 | */ |
||
| 43 | public function __invoke(Request $request, Response $response, callable $out = null) |
||
| 47 | } |
||
| 48 |
This check marks access to variables or properties that have not been declared yet. While PHP has no explicit notion of declaring a variable, accessing it before a value is assigned to it is most likely a bug.