| 1 | <?php |
||
| 8 | class Shortener |
||
| 9 | { |
||
| 10 | /** @var Hashids */ |
||
| 11 | protected $hash; |
||
| 12 | |||
| 13 | /** @var string */ |
||
| 14 | protected $route; |
||
| 15 | |||
| 16 | public function __construct(Hashids $hash, string $route) |
||
| 21 | |||
| 22 | public function getShortUrl(string $url): string |
||
| 28 | |||
| 29 | public function getRedirectTo(string $hash): string |
||
| 35 | |||
| 36 | public function routes(): void |
||
| 40 | } |
||
| 41 |
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.