-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Fix PHP 8.4 deprecation notices #1459
Conversation
Maybe we should update styleci.yml and automate the fixes |
@Hlavtox is there something blocking you from upgrading to 9? |
in preset: psr12
risky: true
enabled:
- blank_line_before_return
- fully_qualified_strict_types
- hash_to_slash_comment
- include
- method_separation
- native_function_casing
- no_blank_lines_between_uses
- no_duplicate_semicolons
- no_multiline_whitespace_before_semicolons
- no_php4_constructor
- no_short_bool_cast
- no_singleline_whitespace_before_semicolons
- no_trailing_comma_in_singleline_array
- no_unused_imports
- no_whitespace_before_comma_in_array
+ - nullable_type_declarations
- ordered_imports
- phpdoc_align
- phpdoc_indent
- phpdoc_inline_tag
- phpdoc_no_access
- phpdoc_no_simplified_null_return
- phpdoc_property
- phpdoc_scalar
- phpdoc_separation
- phpdoc_to_comment
- phpdoc_trim
- phpdoc_type_to_var
- phpdoc_types
- phpdoc_var_without_name
- print_to_echo
- short_array_syntax
- single_quote
- spaces_cast
- standardize_not_equal
- trailing_comma_in_multiline_array
- trim_array_spaces
- whitespace_after_comma_in_array |
Hi @Sephster we have a dependency on your repository at https://github.com/PrestaShop/PrestaShop that is what motivated this contribution. Just to anticipate the timing, do you think the next patch that includes this compatibility will be released soon or will we have to wait a few weeks or more? |
Hi @Sephster, I added the config to the linter. :-) Yes, as @jolelievre said, we wanted to avoid as many major updates as we can. Get it working, stabilized, then get on the major updates if we have time. |
Yep, anyway it may still be useful for other projects |
Happy to merge this but currently failing because of dependencies. Are you able to fix this? If not, I'll see if I can get some time later today. Thank you and thanks for letting me know about PrestaShop. Always nice to hear about down stream systems! Looks a great product |
The |
We can also consider removing + - name: Remove Security Advisories on obsolete PHP versions
+ run: composer remove "roave/security-advisories" --dev --no-update
+. if: matrix.php <= 7.4
- name: Install dependencies
run: composer update --${{ matrix.stability }} --prefer-dist --no-interaction --no-progress |
@Sephster There is for us: #1456. The broken client credentials grant for the Symfony bundle prevents us from upgrading to v9. Upgrading to PHP 8.4 on v8 starts throwing deprecation warnings. Targeting v8 or backporting would help anyone using Best way forward to remove this block would be to have #1456 sorted out, though. That way the Symfony + client credentials applications can upgrade to v9 too. |
@Hlavtox are you able to continue working on this? |
Hi guys, sorry, but I will close it for now. We upgraded to v9 eventually. 👍 |
Is it possible to do a patch release on 8.x branch after merge? :-) Thanks!