Page MenuHomePhorge

PHP 8.2: using ${var} in strings is deprecated
Closed, ResolvedPublic

Description

I see that there are various cases of this specific error "Using ${var} in strings is deprecated, use {$var} instead" in PHP 8.2.

Example:

$ arc unit --everything
Done.                                                                         
   PASS  302ms   PhabricatorLibraryTestCase::testLibraryMap                   
   FAIL  PhabricatorLibraryTestCase::testEverythingImplemented
EXCEPTION (Exception): Error while loading file "/var/www/phorge/src/applications/herald/phid/HeraldTranscriptPHIDType.php": Using ${var} in strings is deprecated, use {$var} instead
#0 /var/www/arcanist/src/init/lib/PhutilBootloader.php(211): PhutilBootloader->executeInclude('...')
#1 /var/www/arcanist/src/symbols/PhutilSymbolLoader.php(423): PhutilBootloader->loadLibrarySource('...', '...')
#2 /var/www/arcanist/src/symbols/PhutilSymbolLoader.php(277): PhutilSymbolLoader->loadSymbol(Array)
#3 /var/www/arcanist/src/__tests__/PhutilLibraryTestCase.php(16): PhutilSymbolLoader->selectAndLoadSymbols()
#4 /var/www/arcanist/src/unit/engine/phutil/PhutilTestCase.php(634): PhutilLibraryTestCase->testEverythingImplemented()
#5 /var/www/arcanist/src/unit/engine/PhutilUnitTestEngine.php(69): PhutilTestCase->run()
#6 /var/www/arcanist/src/unit/engine/ArcanistConfigurationDrivenUnitTestEngine.php(148): PhutilUnitTestEngine->run()
#7 /var/www/arcanist/src/workflow/ArcanistUnitWorkflow.php(170): ArcanistConfigurationDrivenUnitTestEngine->run()
#8 /var/www/arcanist/scripts/arcanist.php(427): ArcanistUnitWorkflow->run()
#9 {main}

Related Objects

View Standalone Graph
This task is connected to more than 200 other tasks. Only direct parents and subtasks are shown here. Use View Standalone Graph to show more of the graph.

Event Timeline

valerio.bozzolan triaged this task as High priority.
valerio.bozzolan created this object in space S1 Public.
valerio.bozzolan renamed this task from Using ${var} in strings is deprecated, use {$var} instead to PHP 8.2: using ${var} in strings is deprecated.Mar 26 2023, 12:29

Wow. Probably there was only one case. Let's stay ready to reopen, but probably we are OK.