Page MenuHomePhabricator

Fix a PHP 8.1 unit test failure in Projects
ClosedPublic

Authored by epriestley on Apr 1 2022, 7:08 PM.
Tags
None
Referenced Files
F15570959: D21752.id.diff
Mon, May 5, 1:59 AM
F15518070: D21752.id51851.diff
Sat, Apr 19, 10:40 AM
F15518069: D21752.id51858.diff
Sat, Apr 19, 10:40 AM
F15518068: D21752.id.diff
Sat, Apr 19, 10:40 AM
F15518067: D21752.id51850.diff
Sat, Apr 19, 10:39 AM
F15518019: D21752.diff
Sat, Apr 19, 10:14 AM
F15496815: D21752.id51850.diff
Sun, Apr 13, 8:13 AM
F15496766: D21752.id51858.diff
Sun, Apr 13, 7:57 AM
Subscribers
None

Details

Summary

Ref T13588. This field may be "null" (and is probably never the empty string, but that's a more ambitious fix).

Test Plan

Ran unit tests, got a pass.

Diff Detail

Repository
rP Phabricator
Branch
phameint5
Lint
Lint Passed
Unit
Test Failures
Build Status
Buildable 25635
Build 35463: arc lint + arc unit

Unit TestsFailed

TimeTest
3 msPhabricatorProjectCoreTestCase::testAncestorMembers
EXCEPTION (RuntimeException): strlen(): Passing null to parameter #1 ($string) of type string is deprecated #0 /Users/epriestley/dev/core/lib/phabricator/src/applications/project/storage/PhabricatorProject.php(414): PhutilErrorHandler::handleError(8192, 'strlen(): Passi...', '/Users/epriestl...', 414) #1 /Users/epriestley/dev/core/lib/phabricator/src/applications/transactions/editor/PhabricatorApplicationTransactionEditor.php(1178): PhabricatorProject->save()
2 msPhabricatorProjectCoreTestCase::testAncestryQueries
EXCEPTION (RuntimeException): strlen(): Passing null to parameter #1 ($string) of type string is deprecated #0 /Users/epriestley/dev/core/lib/phabricator/src/applications/project/storage/PhabricatorProject.php(414): PhutilErrorHandler::handleError(8192, 'strlen(): Passi...', '/Users/epriestl...', 414) #1 /Users/epriestley/dev/core/lib/phabricator/src/applications/transactions/editor/PhabricatorApplicationTransactionEditor.php(1178): PhabricatorProject->save()
6 msPhabricatorProjectCoreTestCase::testApplicationPolicy
EXCEPTION (RuntimeException): strlen(): Passing null to parameter #1 ($string) of type string is deprecated #0 /Users/epriestley/dev/core/lib/phabricator/src/applications/project/storage/PhabricatorProject.php(414): PhutilErrorHandler::handleError(8192, 'strlen(): Passi...', '/Users/epriestl...', 414) #1 /Users/epriestley/dev/core/lib/phabricator/src/applications/transactions/editor/PhabricatorApplicationTransactionEditor.php(1178): PhabricatorProject->save()
7 msPhabricatorProjectCoreTestCase::testBoardMoves
EXCEPTION (RuntimeException): strlen(): Passing null to parameter #1 ($string) of type string is deprecated #0 /Users/epriestley/dev/core/lib/phabricator/src/applications/project/storage/PhabricatorProject.php(414): PhutilErrorHandler::handleError(8192, 'strlen(): Passi...', '/Users/epriestl...', 414) #1 /Users/epriestley/dev/core/lib/phabricator/src/applications/transactions/editor/PhabricatorApplicationTransactionEditor.php(1178): PhabricatorProject->save()
2 msPhabricatorProjectCoreTestCase::testColumnExtendedPolicies
EXCEPTION (RuntimeException): strlen(): Passing null to parameter #1 ($string) of type string is deprecated #0 /Users/epriestley/dev/core/lib/phabricator/src/applications/project/storage/PhabricatorProject.php(414): PhutilErrorHandler::handleError(8192, 'strlen(): Passi...', '/Users/epriestl...', 414) #1 /Users/epriestley/dev/core/lib/phabricator/src/applications/transactions/editor/PhabricatorApplicationTransactionEditor.php(1178): PhabricatorProject->save()
View Full Test Results (23 Failed · 7 Passed)

Event Timeline

epriestley created this revision.
This revision was not accepted when it landed; it landed in state Needs Review.Apr 1 2022, 7:53 PM
This revision was automatically updated to reflect the committed changes.