| Total Complexity | 4 |
| Total Lines | 55 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | trait TokenTrait |
||
| 12 | { |
||
| 13 | |||
| 14 | /** |
||
| 15 | * Name of the token |
||
| 16 | * |
||
| 17 | * @var null |
||
| 18 | */ |
||
| 19 | private $tokenName = null; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Group to which this token belongs (mostly for standard Library tokens |
||
| 23 | * |
||
| 24 | * @var string|null |
||
| 25 | */ |
||
| 26 | private $tokenGroup = null; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Is this token the deepest node in this tree to report a token on? |
||
| 30 | * |
||
| 31 | * @var bool |
||
| 32 | */ |
||
| 33 | private $tokenIsTerminal = false; |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @param string $token |
||
| 37 | * @param string|null $group |
||
| 38 | * @param bool $isTerminal |
||
| 39 | * @return $this |
||
| 40 | */ |
||
| 41 | public function token($token, $group = null, $isTerminal = false) |
||
| 48 | } |
||
| 49 | |||
| 50 | /** |
||
| 51 | * Has a token been set for this Parser? |
||
| 52 | * |
||
| 53 | * @return bool |
||
| 54 | */ |
||
| 55 | public function hasToken() |
||
| 58 | } |
||
| 59 | |||
| 60 | private function resolveToken(&$input, $offset, $length, &$children, $class) |
||
| 68 | } |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..