Skip to content

Add better handling for willImplement and willExtend call to fix issues with PHPStan 2.1.3 and 2.1.4 #279

Add better handling for willImplement and willExtend call to fix issues with PHPStan 2.1.3 and 2.1.4

Add better handling for willImplement and willExtend call to fix issues with PHPStan 2.1.3 and 2.1.4 #279

Triggered via pull request February 10, 2025 12:41
Status Failure
Total duration 48s
Artifacts

integrate.yaml

on: pull_request
Matrix: Coding Standards
Matrix: Static Code Analysis
Matrix: Tests
Fit to window
Zoom out
Zoom in

Annotations

26 errors
Static Code Analysis (8.3, 11.0, highest): 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>.
Static Code Analysis (8.3, 11.0, highest): 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>.
Static Code Analysis (8.3, 11.0, highest)
Process completed with exit code 1.
Static Code Analysis (8.2, 10.0, highest): 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>.
Static Code Analysis (8.2, 10.0, highest): 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>.
Static Code Analysis (8.2, 10.0, highest)
Process completed with exit code 1.
Static Code Analysis (8.4, 11.0, highest): 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>.
Static Code Analysis (8.4, 11.0, highest): 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>.
Static Code Analysis (8.4, 11.0, highest)
Process completed with exit code 1.
Coding Standards (7.4, locked)
Process completed with exit code 8.
Static Code Analysis (8.1, 10.0, highest): 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>.
Static Code Analysis (8.1, 10.0, highest): 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>.
Static Code Analysis (8.1, 10.0, highest)
Process completed with exit code 1.
Static Code Analysis (7.4, 9.1.0, locked): 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.
Static Code Analysis (7.4, 9.1.0, locked): 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.
Static Code Analysis (7.4, 9.1.0, locked): 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().
Static Code Analysis (7.4, 9.1.0, locked): 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.
Static Code Analysis (7.4, 9.1.0, locked): 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.
Static Code Analysis (7.4, 9.1.0, locked): 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().
Static Code Analysis (7.4, 9.1.0, locked): 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.
Static Code Analysis (7.4, 9.1.0, locked): 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.
Static Code Analysis (8.0, 9.6.0, highest): 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>.
Static Code Analysis (8.0, 9.6.0, highest): 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>.
Static Code Analysis (8.0, 9.6.0, highest)
Process completed with exit code 1.