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

Adding fix for REST_Block_Type_Controller_Test::test_get_item_invalid() #4068

Closed
wants to merge 1 commit into from
Closed

Adding fix for REST_Block_Type_Controller_Test::test_get_item_invalid() #4068

wants to merge 1 commit into from

Conversation

tanjimTC
Copy link

Added fix for REST_Block_Type_Controller_Test::test_get_item_invalid() which was throwing a PHP warning due to an incorrect data type in the 'styles' property of the WP_Block_Type.

This PR Fixes a PHP Warning in the test caused by the 'styles' property not being an array. The proposed fix sets the 'styles' property to an empty array().

Could you please review the changes and let me know if anything needs to be updated or changed? I would really appreciate your feedback.
Thank you for taking the time to review this.

Trac ticket: https://core.trac.wordpress.org/ticket/57706

Copy link
Contributor

@hellofromtonya hellofromtonya left a comment

Choose a reason for hiding this comment

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

Reviewed the PHPUnit CI jobs. This PR fixes the PHP Warning that was previously being thrown from this test.

Ready for commit 👍

@hellofromtonya
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants