[wp-trac] [WordPress Trac] #56620: Deprecated: strncmp(): Passing null to parameter #1 ($string1) of type string is deprecated
WordPress Trac
noreply at wordpress.org
Wed Sep 28 14:23:36 UTC 2022
#56620: Deprecated: strncmp(): Passing null to parameter #1 ($string1) of type
string is deprecated
--------------------------------------------+---------------------
Reporter: imadarshakshat | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 6.1
Component: Formatting | Version: trunk
Severity: minor | Resolution:
Keywords: php81 has-patch has-unit-tests | Focuses:
--------------------------------------------+---------------------
Comment (by jrf):
For the record, the backtrace of these errors is along the lines of the
below:
{{{
`1)
Tests_Blocks_Editor::test_get_block_editor_settings_theme_json_settings
strncmp(): Passing null to parameter #1 ($string1) of type string is
deprecated
/var/www/src/wp-includes/class-wp-theme-json.php:1762
/var/www/src/wp-includes/class-wp-theme-json.php:1649
/var/www/src/wp-includes/class-wp-theme-json.php:2074
/var/www/src/wp-includes/class-wp-theme-json.php:1010
/var/www/src/wp-includes/class-wp-theme-json.php:906
/var/www/src/wp-includes/global-styles-and-settings.php:140
/var/www/src/wp-includes/block-editor.php:421
/var/www/tests/phpunit/tests/blocks/editor.php:388
/var/www/vendor/bin/phpunit:123
22)
Tests_Theme_wpThemeJson::test_remove_insecure_properties_removes_unsafe_styles_sub_properties
strncmp(): Passing null to parameter #1 ($string1) of type string is
deprecated
/var/www/src/wp-includes/class-wp-theme-json.php:1762
/var/www/src/wp-includes/class-wp-theme-json.php:1649
/var/www/src/wp-includes/class-wp-theme-json.php:2633
/var/www/src/wp-includes/class-wp-theme-json.php:2512
/var/www/tests/phpunit/tests/theme/wpThemeJson.php:2011
/var/www/vendor/bin/phpunit:123
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/56620#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list