kadet1090 /
KeyLighter
These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
| 1 | <?php |
||
| 2 | /** |
||
| 3 | * Highlighter |
||
| 4 | *1 |
||
| 5 | * Copyright (C) 2015, Some right reserved. |
||
| 6 | * |
||
| 7 | * @author Kacper "Kadet" Donat <[email protected]> |
||
| 8 | * |
||
| 9 | * Contact with author: |
||
| 10 | * Xmpp: [email protected] |
||
| 11 | * E-mail: [email protected] |
||
| 12 | * |
||
| 13 | * From Kadet with love. |
||
| 14 | */ |
||
| 15 | |||
| 16 | namespace Kadet\Highlighter\Parser; |
||
| 17 | |||
| 18 | |||
| 19 | class CloseRule extends Rule |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * @param $source |
||
| 23 | * |
||
| 24 | * @return Token[] |
||
| 25 | */ |
||
| 26 | 1 | public function match($source) |
|
| 27 | { |
||
| 28 | 1 | $this->factory->type = TokenFactory::END; |
|
|
0 ignored issues
–
show
|
|||
| 29 | 1 | return parent::match($source); |
|
| 30 | } |
||
| 31 | } |
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: