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

Fix PHP 8.4 deprecation notices #1459

Open
wants to merge 2 commits into
base: 8.4.x
Choose a base branch
from

Conversation

Hlavtox
Copy link

@Hlavtox Hlavtox commented Nov 20, 2024

Is it possible to do a patch release on 8.x branch after merge? :-) Thanks!

@crynobone
Copy link

Maybe we should update styleci.yml and automate the fixes

@Sephster
Copy link
Member

@Hlavtox is there something blocking you from upgrading to 9?

@crynobone
Copy link

crynobone commented Nov 21, 2024

in .styleci.yml add nullable_type_declarations

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

@jolelievre
Copy link

Hi @Sephster

we have a dependency on your repository at https://github.com/PrestaShop/PrestaShop that is what motivated this contribution.
But I guess we can try and upgrade to your v9 once the patch for PHP 8.4 is released indeed 😉

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?

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.

4 participants