Skip to content

PHPStan types#4

Open
cs278 wants to merge 2 commits intoTobion:masterfrom
cs278:phpstan-types
Open

PHPStan types#4
cs278 wants to merge 2 commits intoTobion:masterfrom
cs278:phpstan-types

Conversation

@cs278
Copy link

@cs278 cs278 commented Nov 17, 2025

Improve type information for PHPStan.

Tests pass:

$ vendor/bin/simple-phpunit 
PHPUnit 9.6.29 by Sebastian Bergmann and contributors.

Runtime:       PHP 8.4.14
Configuration: /home/chris.smith/src/retry/phpunit.xml
Warning:       Your XML configuration validates against a deprecated schema.
Suggestion:    Migrate your XML configuration using "--migrate-configuration"!

Testing 
..........                                                        10 / 10 (100%)

Time: 00:01.007, Memory: 6.00 MB

OK (10 tests, 18 assertions)

Primary motivation is to allow PHPStan to understand the return type
of a decorated callable.
@cs278 cs278 marked this pull request as ready for review November 17, 2025 16:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant