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.x deprecation warnings (#1960) #1961

Open
wants to merge 5 commits into
base: qa/2.x
Choose a base branch
from

Conversation

anvit
Copy link
Contributor

@anvit anvit commented Mar 19, 2025

  • Add ReturnTypeWillChange attribute to all offset Get/Set/Unset/Exists methods
  • Fix deprecation warnings for call_user_func_array calls
  • Fix instances of strlen and strtolower in sfEadPlugin, BaseActor, and
    BaseProperty that could run with null values and generate deprecation
    warnings, since PHP 8 expects strlen and strtolower to only accept
    strings.
  • Add missing property to sfEadPlugin.class.php since dynamically creating
    properties is deprecated in PHP 8.

- Add ReturnTypeWillChange attribute to all offset Get/Set/Unset/Exists
  methods
@anvit anvit added work-in-progress php Pull requests that update Php code labels Mar 19, 2025
@anvit anvit self-assigned this Mar 19, 2025
@anvit anvit linked an issue Mar 19, 2025 that may be closed by this pull request
@anvit anvit force-pushed the dev/issue-1960-deprecation-warnings branch from a9463f5 to 9ddc26e Compare March 19, 2025 20:51
anvit added 3 commits March 19, 2025 14:02
Fix deprecation warnings for call_user_func_array calls that use $this
in the callable which isn't required and has been deprecated in PHP 8.2
Add missing property to sfEadPlugin.class.php since dynamically creating
properties is deprecated in PHP 8.
Fix instances of strlen and strtolower in sfEadPlugin, BaseActor, and
BaseProperty that could run with null values and generate deprecation
warnings, since PHP 8 expects strlen and strtolower to only accept
strings.
@anvit anvit force-pushed the dev/issue-1960-deprecation-warnings branch from 2fd70fa to 3c10c88 Compare March 19, 2025 21:03
@anvit anvit requested a review from a team March 26, 2025 16:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
php Pull requests that update Php code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Problem: PHP 8.x Deprecation warnings in AtoM logs
1 participant