no short #4
Annotations
12 errors
Tests
Process completed with exit code 2.
|
PHPStan:
src/Analyser.php#L43
Parameter #1 $haystack of function substr_count expects string, string|false given.
|
PHPStan:
src/Analyser.php#L44
Parameter #1 $code of function token_get_all expects string, string|false given.
|
PHPStan:
src/Analyser.php#L67
Negated boolean expression is always true.
|
PHPStan:
src/Analyser.php#L81
Negated boolean expression is always true.
|
PHPStan:
src/Analyser.php#L123
Parameter #1 $namespace of method TomasVotruba\Lines\Collector::addNamespace() expects string, bool|string given.
|
PHPStan:
src/Analyser.php#L136
Parameter #1 $namespace of method TomasVotruba\Lines\Analyser::getClassName() expects string, string|true given.
|
PHPStan:
src/Analyser.php#L174
Parameter #2 $start of method TomasVotruba\Lines\Analyser::getNextNonWhitespaceTokenPos() expects int, bool|int given.
|
PHPStan:
src/Analyser.php#L205
Offset 0 on array{int, string, int} in isset() always exists and is not nullable.
|
PHPStan:
src/Analyser.php#L225
Left side of && is always false.
|
PHPStan:
src/Analyser.php#L322
Parameter #2 $start of method TomasVotruba\Lines\Analyser::getNextNonWhitespaceTokenPos() expects int, bool|int given.
|
Rector
Process completed with exit code 2.
|