current class lines count #6
Annotations
12 errors
PHPStan:
src/Analyser.php#L51
Parameter #1 $haystack of function substr_count expects string, string|false given.
|
PHPStan:
src/Analyser.php#L52
Parameter #1 $code of function token_get_all expects string, string|false given.
|
PHPStan:
src/Analyser.php#L75
Negated boolean expression is always true.
|
PHPStan:
src/Analyser.php#L89
Negated boolean expression is always true.
|
PHPStan:
src/Analyser.php#L131
Parameter #1 $namespace of method TomasVotruba\Lines\Collector::addNamespace() expects string, bool|string given.
|
PHPStan:
src/Analyser.php#L144
Parameter #1 $namespace of method TomasVotruba\Lines\Analyser::getClassName() expects string, string|true given.
|
PHPStan:
src/Analyser.php#L182
Parameter #2 $start of method TomasVotruba\Lines\Analyser::getNextNonWhitespaceTokenPos() expects int, bool|int given.
|
PHPStan:
src/Analyser.php#L213
Offset 0 on array{int, string, int} in isset() always exists and is not nullable.
|
PHPStan:
src/Analyser.php#L233
Negated boolean expression is always true.
|
PHPStan:
src/Analyser.php#L327
Parameter #2 $start of method TomasVotruba\Lines\Analyser::getNextNonWhitespaceTokenPos() expects int, bool|int given.
|
Tests
Process completed with exit code 1.
|
Rector
Process completed with exit code 2.
|