tidy #8
Annotations
11 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#L127
Parameter #1 $namespace of method TomasVotruba\Lines\Collector::addNamespace() expects string, bool|string given.
|
PHPStan:
src/Analyser.php#L140
Parameter #1 $namespace of method TomasVotruba\Lines\Analyser::getClassName() expects string, string|true given.
|
PHPStan:
src/Analyser.php#L178
Parameter #2 $start of method TomasVotruba\Lines\Analyser::getNextNonWhitespaceTokenPos() expects int, bool|int given.
|
PHPStan:
src/Analyser.php#L209
Offset 0 on array{int, string, int} in isset() always exists and is not nullable.
|
PHPStan:
src/Analyser.php#L321
Parameter #2 $start of method TomasVotruba\Lines\Analyser::getNextNonWhitespaceTokenPos() expects int, bool|int given.
|
PHPStan:
src/Analyser.php#L346
Method TomasVotruba\Lines\Analyser::getNamespaceName() has parameter $tokens with no value type specified in iterable type array.
|
PHPStan:
src/Analyser.php#L365
Method TomasVotruba\Lines\Analyser::getClassName() has parameter $tokens with no value type specified in iterable type array.
|
PHPStan:
src/Analyser.php#L388
Method TomasVotruba\Lines\Analyser::isTestClass() is unused.
|
Rector
Process completed with exit code 2.
|