Skip to content

Support PHP 8.4+ - #20

Merged
Crell merged 2 commits into
php-fig:masterfrom
outboardphp:master
Jun 25, 2026
Merged

Crell merged 2 commits into
php-fig:masterfrom
outboardphp:master

Conversation

@garrettw

@garrettw garrettw commented Jun 1, 2026

Copy link
Copy Markdown
Contributor

Updated the codebase to add compatibility through PHP 8.5.

What changed

  • DelegatingProvider.php
    Added explicit null type for the optional default provider to silence deprecation warnings.
  • ParameterDeriverTrait.php
    Adjusted reflection handling to avoid PHP 8.x-specific ReflectionNamedType assumptions.
    Uses a series of checks to derive a single object parameter type.
    Rejects builtin types and unsupported union/intersection parameter types explicitly.

Comment thread src/ParameterDeriverTrait.php Outdated
Comment thread src/ParameterDeriverTrait.php Outdated
@Jean85 Jean85 added the enhancement New feature or request label Jun 3, 2026
@garrettw
garrettw requested a review from Crell June 10, 2026 00:00
@Crell
Crell merged commit 595b8fa into php-fig:master Jun 25, 2026
6 checks passed
@Crell

Crell commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants