Add better handling for willImplement and willExtend call to fix issues with PHPStan 2.1.3 and 2.1.4 #279
Annotations
3 errors
Run phpstan/phpstan with extension:
test/StaticAnalysis/Test/ObjectProphecy/WillExtendTest.php#L43
Property JanGregor\Prophecy\Test\StaticAnalysis\Test\ObjectProphecy\WillExtendTest::$prophecyWithInterface (Prophecy\Prophecy\ObjectProphecy<JanGregor\Prophecy\Test\StaticAnalysis\Src\Bar&JanGregor\Prophecy\Test\StaticAnalysis\Src\Baz>) does not accept Prophecy\Prophecy\ObjectProphecy<JanGregor\Prophecy\Test\StaticAnalysis\Src\Baz>.
|
Run phpstan/phpstan with extension:
test/StaticAnalysis/Test/ObjectProphecy/WillImplementTest.php#L36
Property JanGregor\Prophecy\Test\StaticAnalysis\Test\ObjectProphecy\WillImplementTest::$prophecy (Prophecy\Prophecy\ObjectProphecy<JanGregor\Prophecy\Test\StaticAnalysis\Src\Bar&JanGregor\Prophecy\Test\StaticAnalysis\Src\Foo>) does not accept Prophecy\Prophecy\ObjectProphecy<JanGregor\Prophecy\Test\StaticAnalysis\Src\Bar>.
|
Run phpstan/phpstan with extension
Process completed with exit code 1.
|
Loading