Skip to content

Add default_post_types property to Zoninator class#86

Merged
sjinks merged 1 commit intoAutomattic:mainfrom
attackant:main
Oct 20, 2023
Merged

Add default_post_types property to Zoninator class#86
sjinks merged 1 commit intoAutomattic:mainfrom
attackant:main

Conversation

@attackant
Copy link
Contributor

Declare the default_post_types property to ensure PHP 8.2 compatibility without throwing a Deprecated: Creation of dynamic property notice by defining the property upon class instantiation rather than at runtime.

Background on the change in PHP: https://php.watch/versions/8.2/dynamic-properties-deprecated

Declare the default_post_types property to ensure PHP 8.2 compatibility without throwing a *Deprecated: Creation of dynamic property* notice by defining the property upon class instantiation rather than at runtime.
@sjinks sjinks merged commit ac677d5 into Automattic:main Oct 20, 2023
@GaryJones GaryJones added this to the 0.9 milestone Dec 14, 2025
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.

3 participants