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: Suppress PHP 8.1 and 8.2 deprecation warnings #314

Merged
merged 2 commits into from
Sep 29, 2023

Conversation

Adnan-cds
Copy link
Contributor

@Adnan-cds Adnan-cds commented Sep 22, 2023

Callable names like static::foo are now deprecated. So are use of undeclared dynamic object properties.

@see https://www.php.net/releases/8.1/en.php#first_class_callable_syntax
@see https://www.php.net/releases/8.2/en.php#deprecate_dynamic_properties

The contrib facets module is also flooding Drupal logs with deprecation notices about dynamic property usage. There's even a ticket for it. Not sure when that'll be merged. It doesn't help that the patch is for facets:3.x whereas localgov_directories relies on facets:2.x which is also the stable branch.

@Adnan-cds Adnan-cds marked this pull request as ready for review September 22, 2023 16:00
Copy link
Member

@stephen-cox stephen-cox left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests all pass. I'm happy with this.

@Adnan-cds
Copy link
Contributor Author

Thanks a lot for the approval. Merging...

@Adnan-cds Adnan-cds merged commit a71cd6a into 3.x Sep 29, 2023
4 checks passed
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.

None yet

2 participants