Remember method/static call expression as truthy/falsey alongside @phpstan-assert-if-true argument narrowing
#566
Annotations
10 errors
|
Build Issue Bot (../bin/phpstan)
Process completed with exit code 1.
|
|
Build Issue Bot (../bin/phpstan):
tests/PostGeneratorTest.php#L107
`@dataProvider` dataGeneratePosts related method must be static in PHPUnit 10 and newer.
|
|
Build Issue Bot (../bin/phpstan):
tests/PostGeneratorTest.php#L87
Generator expects value type array{string, list<PHPStan\IssueBot\Playground\PlaygroundResultTab>, list<PHPStan\IssueBot\Playground\PlaygroundResultTab>, array<PHPStan\IssueBot\Comment\BotComment>, string|null}, array{'abc-def', array{PHPStan\IssueBot\Playground\PlaygroundResultTab}, array{PHPStan\IssueBot\Playground\PlaygroundResultTab}, array{}, null, null} given.
|
|
Build Issue Bot (../bin/phpstan):
tests/PostGeneratorTest.php#L72
Generator expects value type array{string, list<PHPStan\IssueBot\Playground\PlaygroundResultTab>, list<PHPStan\IssueBot\Playground\PlaygroundResultTab>, array<PHPStan\IssueBot\Comment\BotComment>, string|null}, array{'abc-def', array{PHPStan\IssueBot\Playground\PlaygroundResultTab}, array{PHPStan\IssueBot\Playground\PlaygroundResultTab}, array{PHPStan\IssueBot\Comment\BotComment}, null, null} given.
|
|
Build Issue Bot (../bin/phpstan):
tests/PostGeneratorTest.php#L57
Generator expects value type array{string, list<PHPStan\IssueBot\Playground\PlaygroundResultTab>, list<PHPStan\IssueBot\Playground\PlaygroundResultTab>, array<PHPStan\IssueBot\Comment\BotComment>, string|null}, array{'abc-def', array{PHPStan\IssueBot\Playground\PlaygroundResultTab}, array{PHPStan\IssueBot\Playground\PlaygroundResultTab}, array{PHPStan\IssueBot\Comment\BotComment}, "@@ @@\n-1: abc\n+1:…", "| Line | Error |\n|-…"} given.
|
|
Build Issue Bot (../bin/phpstan):
tests/PostGeneratorTest.php#L44
Generator expects value type array{string, list<PHPStan\IssueBot\Playground\PlaygroundResultTab>, list<PHPStan\IssueBot\Playground\PlaygroundResultTab>, array<PHPStan\IssueBot\Comment\BotComment>, string|null}, array{'abc-def', array{PHPStan\IssueBot\Playground\PlaygroundResultTab}, array{PHPStan\IssueBot\Playground\PlaygroundResultTab}, array{}, "@@ @@\n-1: abc\n+1:…", "| Line | Error |\n|-…"} given.
|
|
Build Issue Bot (../bin/phpstan):
tests/PostGeneratorTest.php#L31
Generator expects value type array{string, list<PHPStan\IssueBot\Playground\PlaygroundResultTab>, list<PHPStan\IssueBot\Playground\PlaygroundResultTab>, array<PHPStan\IssueBot\Comment\BotComment>, string|null}, array{'abc-def', array{PHPStan\IssueBot\Playground\PlaygroundResultTab}, array{PHPStan\IssueBot\Playground\PlaygroundResultTab}, array{}, null, null} given.
|
|
Build Issue Bot (../bin/phpstan):
tests/Playground/TabCreatorTest.php#L116
`@dataProvider` dataCreate related method must be static in PHPUnit 10 and newer.
|
|
Build Issue Bot (../bin/phpstan):
tests/Comment/BotCommentParserResultTest.php#L38
`@dataProvider` dataParse related method must be static in PHPUnit 10 and newer.
|
|
Build Issue Bot (../bin/phpstan):
src/Console/RunCommand.php#L235
Method PHPStan\IssueBot\Console\RunCommand::analyseHash() should return React\Promise\PromiseInterface<list<PHPStan\IssueBot\Playground\PlaygroundError>> but returns React\Promise\PromiseInterface<list<PHPStan\IssueBot\Playground\PlaygroundError>|void>.
|