Skip to content

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

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 #289

Triggered via pull request February 11, 2025 11:35
Status Failure
Total duration 35s
Artifacts

integrate.yaml

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

Annotations

8 errors
Static Code Analysis (7.4, 9.1.0, locked): test/StaticAnalysis/Test/ObjectProphecy/WillExtendTest.php#L1
Ignored error pattern #^Property JanGregor\\Prophecy\\Test\\StaticAnalysis\\Test\\ObjectProphecy\\WillExtendTest\:\:\$prophecy \(Prophecy\\Prophecy\\ObjectProphecy\<JanGregor\\Prophecy\\Test\\StaticAnalysis\\Src\\Baz\>\) does not accept \$this\(JanGregor\\Prophecy\\Test\\StaticAnalysis\\Test\\ObjectProphecy\\WillExtendTest\)\.$# (assign.propertyType) in path /home/runner/work/phpstan-prophecy/phpstan-prophecy/test/StaticAnalysis/Test/ObjectProphecy/WillExtendTest.php was not matched in reported errors.
Static Code Analysis (7.4, 9.1.0, locked): test/StaticAnalysis/Test/ObjectProphecy/WillExtendTest.php#L1
Ignored error pattern #^Property JanGregor\\Prophecy\\Test\\StaticAnalysis\\Test\\ObjectProphecy\\WillExtendTest\:\:\$prophecyOnlyClass \(Prophecy\\Prophecy\\ObjectProphecy\<JanGregor\\Prophecy\\Test\\StaticAnalysis\\Src\\Baz\>\) does not accept \$this\(JanGregor\\Prophecy\\Test\\StaticAnalysis\\Test\\ObjectProphecy\\WillExtendTest\)\.$# (assign.propertyType) in path /home/runner/work/phpstan-prophecy/phpstan-prophecy/test/StaticAnalysis/Test/ObjectProphecy/WillExtendTest.php was not matched in reported errors.
Static Code Analysis (7.4, 9.1.0, locked): test/StaticAnalysis/Test/ObjectProphecy/WillExtendTest.php#L1
Ignored error pattern #^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 \$this\(JanGregor\\Prophecy\\Test\\StaticAnalysis\\Test\\ObjectProphecy\\WillExtendTest\)\.$# (assign.propertyType) in path /home/runner/work/phpstan-prophecy/phpstan-prophecy/test/StaticAnalysis/Test/ObjectProphecy/WillExtendTest.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 #^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 \$this\(JanGregor\\Prophecy\\Test\\StaticAnalysis\\Test\\ObjectProphecy\\WillImplementTest\)\.$# (assign.propertyType) 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 #^Property JanGregor\\Prophecy\\Test\\StaticAnalysis\\Test\\ObjectProphecy\\WillImplementTest\:\:\$prophecyBar \(Prophecy\\Prophecy\\ObjectProphecy\<JanGregor\\Prophecy\\Test\\StaticAnalysis\\Src\\Bar\>\) does not accept \$this\(JanGregor\\Prophecy\\Test\\StaticAnalysis\\Test\\ObjectProphecy\\WillImplementTest\)\.$# (assign.propertyType) 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 #^Property JanGregor\\Prophecy\\Test\\StaticAnalysis\\Test\\ObjectProphecy\\WillImplementTest\:\:\$prophecyFoo \(Prophecy\\Prophecy\\ObjectProphecy\<JanGregor\\Prophecy\\Test\\StaticAnalysis\\Src\\Foo\>\) does not accept \$this\(JanGregor\\Prophecy\\Test\\StaticAnalysis\\Test\\ObjectProphecy\\WillImplementTest\)\.$# (assign.propertyType) 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 #^Property JanGregor\\Prophecy\\Test\\StaticAnalysis\\Test\\ObjectProphecy\\WillImplementTest\:\:\$prophecyOnlyInterface \(Prophecy\\Prophecy\\ObjectProphecy\<JanGregor\\Prophecy\\Test\\StaticAnalysis\\Src\\Bar\>\) does not accept \$this\(JanGregor\\Prophecy\\Test\\StaticAnalysis\\Test\\ObjectProphecy\\WillImplementTest\)\.$# (assign.propertyType) 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)
Process completed with exit code 1.