Skip to content

PHPStan types#4

Merged
Tobion merged 2 commits intoTobion:masterfrom
cs278:phpstan-types
Mar 8, 2026
Merged

PHPStan types#4
Tobion merged 2 commits intoTobion:masterfrom
cs278:phpstan-types

Conversation

@cs278
Copy link
Copy Markdown
Contributor

@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
@Tobion Tobion merged commit 88b09aa into Tobion:master Mar 8, 2026
@Tobion
Copy link
Copy Markdown
Owner

Tobion commented Mar 8, 2026

Thank you @cs278

Comment thread src/RetryConfigurator.php
@cs278 cs278 deleted the phpstan-types branch March 16, 2026 12:29
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.

2 participants