Skip to content

Conversation

jamesmorrison
Copy link
Member

@jamesmorrison jamesmorrison commented Sep 17, 2025

Requires wp-framework 2.0.0 / develop

Description of the Change

Add explicit return type declarations to PHP methods for WP Framework compatibility
Adds strict types to all PHP classes

Closes #

How to test the Change

  1. Create a site using the WP Scaffold
  2. Run composer install; npm install; npm run build for:
  • The MU plugin: mu-plugins/10up-plugin
  • The 10up theme: themes/10up-theme
  • The 10up block theme: themes/10up-block-theme
  1. Confirm there is no fatal error in WP Admin
  2. Activate the 10up theme; confirm no fatal errors
  3. Activate the 10up block theme; confirm no fatal errors

Changelog Entry

Added: explicit return type declarations to PHP methods for WP Framework compatibility

Credits

Props @jamesmorrison

Checklist:

@darylldoyle darylldoyle added this to the 2.0.0 milestone Sep 17, 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.

2 participants