Page MenuHomePhorge

arc unit --everything: error "Creation of dynamic property is deprecated"
Closed, DuplicatePublic

Description

When running this command:

arc unit --everything

In PHP 8.2 the error "the creation of dynamic properties is deprecated" is shown.

Example:

   FAIL  PhabricatorAuthPasswordTestCase::testPasswordBlocklisting
EXCEPTION (RuntimeException): Creation of dynamic property PhabricatorAuthPasswordException::$confirmError is deprecated
#0 /var/www/phorge/src/applications/auth/password/PhabricatorAuthPasswordException.php(15): PhutilErrorHandler::handleError(8192, '...', '...', 15)
#1 /var/www/phorge/src/applications/auth/engine/PhabricatorAuthPasswordEngine.php(70): PhabricatorAuthPasswordException->__construct('...', '...')
#2 /var/www/phorge/src/applications/auth/__tests__/PhabricatorAuthPasswordTestCase.php(166): PhabricatorAuthPasswordEngine->checkNewPassword(Object(PhutilOpaqueEnvelope), Object(PhutilOpaqueEnvelope))
#3 /var/www/phorge/src/applications/auth/__tests__/PhabricatorAuthPasswordTestCase.php(152): PhabricatorAuthPasswordTestCase->assertBlocklistedPassword(Object(PhabricatorAuthPasswordEngine), '', false)
#4 /var/www/arcanist/src/unit/engine/phutil/PhutilTestCase.php(634): PhabricatorAuthPasswordTestCase->testPasswordBlocklisting()
#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}

Strategies to fix this:

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 created this task.
valerio.bozzolan created this object in space S1 Public.
valerio.bozzolan renamed this task from PHP 8.2: Creation of dynamic property is deprecated to arc unit --everything: error "Creation of dynamic property is deprecated".Mar 27 2023, 05:34
valerio.bozzolan updated the task description. (Show Details)