diff options
author | Máté Szabó <mszabo@fandom.com> | 2022-07-29 02:45:09 +0200 |
---|---|---|
committer | Máté Szabó <mszabo@fandom.com> | 2022-07-29 02:45:09 +0200 |
commit | 36dd10f9def24ade083048944e7c9d2f76e63c74 (patch) | |
tree | 4909c9f5c1d86b6308c9ee0016ac795cefb9f78b /tests/phpunit/unit/includes/exception/MWExceptionHandlerTest.php | |
parent | 1e18bb3cf6b70cc4acfaf0cf0f382cba33901b11 (diff) | |
download | mediawikicore-36dd10f9def24ade083048944e7c9d2f76e63c74.tar.gz mediawikicore-36dd10f9def24ade083048944e7c9d2f76e63c74.zip |
Migrate use of ${var}-style string interpolation
The "${var}" and "${expr}" style string interpolations are deprecated in
PHP 8.2. Migrate usages in core to "{$var}" as appropriate.
Bug: T314096
Change-Id: I269bad3d4a68c2b251b3e71a066289d4ad9fd496
Diffstat (limited to 'tests/phpunit/unit/includes/exception/MWExceptionHandlerTest.php')
-rw-r--r-- | tests/phpunit/unit/includes/exception/MWExceptionHandlerTest.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/phpunit/unit/includes/exception/MWExceptionHandlerTest.php b/tests/phpunit/unit/includes/exception/MWExceptionHandlerTest.php index 0074d5ffb108..d017621e8286 100644 --- a/tests/phpunit/unit/includes/exception/MWExceptionHandlerTest.php +++ b/tests/phpunit/unit/includes/exception/MWExceptionHandlerTest.php @@ -46,11 +46,11 @@ class MWExceptionHandlerTest extends \MediaWikiUnitTestCase { $dummyFile = TestThrowerDummy::getFile(); $dummyClass = TestThrowerDummy::class; $expected = <<<TEXT -from ${dummyFile}(17) -#0 ${dummyFile}(13): ${dummyClass}->getQuux() -#1 ${dummyFile}(9): ${dummyClass}->getBar() -#2 ${dummyFile}(5): ${dummyClass}->doFoo() -#3 ${startFile}($startLine): ${dummyClass}->main() +from {$dummyFile}(17) +#0 {$dummyFile}(13): {$dummyClass}->getQuux() +#1 {$dummyFile}(9): {$dummyClass}->getBar() +#2 {$dummyFile}(5): {$dummyClass}->doFoo() +#3 {$startFile}($startLine): {$dummyClass}->main() TEXT; // Trim up until our call() |