Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP 8.4 support #262

Open
leewillis77 opened this issue Oct 14, 2024 · 1 comment
Open

PHP 8.4 support #262

leewillis77 opened this issue Oct 14, 2024 · 1 comment

Comments

@leewillis77
Copy link

Hi;

I'm just wondering if the 4.x branch will provide support for PHP 8.4 when available. Currently v4.2.2 generates a number of warnings due to the deprecation of implicitly null types (https://wiki.php.net/rfc/deprecate-implicitly-nullable-types).

List of identified issues:

FILE: vendor/league/container/src/Container.php
----------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 4 WARNINGS AFFECTING 4 LINES
----------------------------------------------------------------------------------------------------------------------------------------------------
  43 | WARNING | Implicitly marking a parameter as nullable is deprecated since PHP 8.4. Update the type to be explicitly nullable instead. Found
     |         | implicitly nullable parameter: $definitions.
  44 | WARNING | Implicitly marking a parameter as nullable is deprecated since PHP 8.4. Update the type to be explicitly nullable instead. Found
     |         | implicitly nullable parameter: $providers.
  45 | WARNING | Implicitly marking a parameter as nullable is deprecated since PHP 8.4. Update the type to be explicitly nullable instead. Found
     |         | implicitly nullable parameter: $inflectors.
 156 | WARNING | Implicitly marking a parameter as nullable is deprecated since PHP 8.4. Update the type to be explicitly nullable instead. Found
     |         | implicitly nullable parameter: $callback.
----------------------------------------------------------------------------------------------------------------------------------------------------


FILE: vendor/league/container/src/Argument/LiteralArgument.php
----------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------------------------------------------------------
 27 | WARNING | Implicitly marking a parameter as nullable is deprecated since PHP 8.4. Update the type to be explicitly nullable instead. Found
    |         | implicitly nullable parameter: $type.
----------------------------------------------------------------------------------------------------------------------------------------------------


FILE: vendor/league/container/src/DefinitionContainerInterface.php
----------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------------------------------------------------------
 19 | WARNING | Implicitly marking a parameter as nullable is deprecated since PHP 8.4. Update the type to be explicitly nullable instead. Found
    |         | implicitly nullable parameter: $callback.
----------------------------------------------------------------------------------------------------------------------------------------------------


FILE: vendor/league/container/src/Inflector/InflectorAggregate.php
----------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------------------------------------------------------
 19 | WARNING | Implicitly marking a parameter as nullable is deprecated since PHP 8.4. Update the type to be explicitly nullable instead. Found
    |         | implicitly nullable parameter: $callback.
----------------------------------------------------------------------------------------------------------------------------------------------------


FILE: vendor/league/container/src/Inflector/InflectorAggregateInterface.php
----------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------------------------------------------------------
 12 | WARNING | Implicitly marking a parameter as nullable is deprecated since PHP 8.4. Update the type to be explicitly nullable instead. Found
    |         | implicitly nullable parameter: $callback.
----------------------------------------------------------------------------------------------------------------------------------------------------


FILE: vendor/league/container/src/Inflector/Inflector.php
----------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------------------------------------------------------
 36 | WARNING | Implicitly marking a parameter as nullable is deprecated since PHP 8.4. Update the type to be explicitly nullable instead. Found
    |         | implicitly nullable parameter: $callback.
----------------------------------------------------------------------------------------------------------------------------------------------------

I'm happy to provide a patch, but wanted to check if the intention was that 4.x would support PHP 8.4 (I'm hoping so).

@philipobenito
Copy link
Member

philipobenito commented Oct 14, 2024 via email

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 a pull request may close this issue.

2 participants