mirror of
git://develop.git.wordpress.org/
synced 2025-01-17 21:08:44 +01:00
HTML API: Fix "${var} in strings" deprecation notice in html5lib test.
Changeset [58712] introduced the following compile time PHP deprecation notice on >= PHP 8.2 test runs: {{{ Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /var/www/tests/phpunit/tests/html-api/wpHtmlProcessorHtml5lib.php on line 257 PHPUnit 9.6.20 by Sebastian Bergmann and contributors. }}} The `${` syntax for string interpolation was deprecated in PHP 8.2 and should not be used anymore. Ref: https://wiki.php.net/rfc/deprecate_dollar_brace_string_interpolation Follow-up to [58712]. Props jrf. See #61530, #59654, #61576. git-svn-id: https://develop.svn.wordpress.org/trunk@58733 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
606fcbd725
commit
36ac310d82
@ -254,7 +254,7 @@ class Tests_HtmlApi_Html5lib extends WP_UnitTestCase {
|
||||
}
|
||||
|
||||
if ( '' !== $text_node ) {
|
||||
$output .= "${text_node}\"\n";
|
||||
$output .= "{$text_node}\"\n";
|
||||
}
|
||||
|
||||
// Tests always end with a trailing newline.
|
||||
|
Loading…
x
Reference in New Issue
Block a user