Add better handling for willImplement and willExtend call to fix issues with PHPStan 2.1.3 and 2.1.4 #279
Annotations
10 errors
Run phpstan/phpstan without extension:
test/StaticAnalysis/Test/ObjectProphecy/WillExtendTest.php#L48
Ignored error pattern #^Cannot call method shouldBeCalled\(\) on mixed\.$# (method.nonObject) in path /home/runner/work/phpstan-prophecy/phpstan-prophecy/test/StaticAnalysis/Test/ObjectProphecy/WillExtendTest.php is expected to occur 3 times, but occurred 4 times.
|
Run phpstan/phpstan without extension:
test/StaticAnalysis/Test/ObjectProphecy/WillExtendTest.php#L48
Ignored error pattern #^Cannot call method willReturn\(\) on mixed\.$# (method.nonObject) in path /home/runner/work/phpstan-prophecy/phpstan-prophecy/test/StaticAnalysis/Test/ObjectProphecy/WillExtendTest.php is expected to occur 3 times, but occurred 4 times.
|
Run phpstan/phpstan without extension:
test/StaticAnalysis/Test/ObjectProphecy/WillExtendTest.php#L60
Call to an undefined method Prophecy\Prophecy\ObjectProphecy<JanGregor\Prophecy\Test\StaticAnalysis\Src\Bar&JanGregor\Prophecy\Test\StaticAnalysis\Src\Baz>::bar().
|
Run phpstan/phpstan without extension:
test/StaticAnalysis/Test/ObjectProphecy/WillExtendTest.php#L88
Cannot call method shouldBeCalled() on mixed.
|
Run phpstan/phpstan without extension:
test/StaticAnalysis/Test/ObjectProphecy/WillExtendTest.php#L88
Cannot call method willReturn() on mixed.
|
Run phpstan/phpstan without extension:
test/StaticAnalysis/Test/ObjectProphecy/WillImplementTest.php#L1
Ignored error pattern #^Call to an undefined method Prophecy\\Prophecy\\ObjectProphecy\<JanGregor\\Prophecy\\Test\\StaticAnalysis\\Src\\Bar\>\:\:bar\(\)\.$# (method.notFound) in path /home/runner/work/phpstan-prophecy/phpstan-prophecy/test/StaticAnalysis/Test/ObjectProphecy/WillImplementTest.php was not matched in reported errors.
|
Run phpstan/phpstan without extension:
test/StaticAnalysis/Test/ObjectProphecy/WillImplementTest.php#L1
Ignored error pattern #^Method JanGregor\\Prophecy\\Test\\StaticAnalysis\\Test\\ObjectProphecy\\WillImplementTest\:\:createProphecy\(\) should return Prophecy\\Prophecy\\ObjectProphecy\<JanGregor\\Prophecy\\Test\\StaticAnalysis\\Src\\Bar\> but returns Prophecy\\Prophecy\\ObjectProphecy\<JanGregor\\Prophecy\\Test\\StaticAnalysis\\Src\\Foo\>\.$# (return.type) in path /home/runner/work/phpstan-prophecy/phpstan-prophecy/test/StaticAnalysis/Test/ObjectProphecy/WillImplementTest.php was not matched in reported errors.
|
Run phpstan/phpstan without extension:
test/StaticAnalysis/Test/ObjectProphecy/WillImplementTest.php#L42
Call to an undefined method Prophecy\Prophecy\ObjectProphecy<JanGregor\Prophecy\Test\StaticAnalysis\Src\Bar&JanGregor\Prophecy\Test\StaticAnalysis\Src\Foo>::bar().
|
Run phpstan/phpstan without extension:
test/StaticAnalysis/Test/ObjectProphecy/WillImplementTest.php#L42
Ignored error pattern #^Cannot call method shouldBeCalled\(\) on mixed\.$# (method.nonObject) in path /home/runner/work/phpstan-prophecy/phpstan-prophecy/test/StaticAnalysis/Test/ObjectProphecy/WillImplementTest.php is expected to occur 4 times, but occurred 5 times.
|
Run phpstan/phpstan without extension:
test/StaticAnalysis/Test/ObjectProphecy/WillImplementTest.php#L42
Ignored error pattern #^Cannot call method willReturn\(\) on mixed\.$# (method.nonObject) in path /home/runner/work/phpstan-prophecy/phpstan-prophecy/test/StaticAnalysis/Test/ObjectProphecy/WillImplementTest.php is expected to occur 4 times, but occurred 5 times.
|
Loading