Page MenuHomePhabricator

Improve some PHP 8.1 behavior in "bin/auth recover"
ClosedPublic

Authored by epriestley on Apr 19 2022, 9:48 PM.
Tags
None
Referenced Files
F13274367: D21757.diff
Fri, May 31, 3:37 AM
F13270176: D21757.diff
Wed, May 29, 9:15 AM
F13260410: D21757.diff
Sun, May 26, 11:52 PM
F13247778: D21757.id51866.diff
Thu, May 23, 10:25 PM
F13244610: D21757.diff
Thu, May 23, 5:11 AM
F13196230: D21757.diff
Sun, May 12, 11:05 PM
F13181630: D21757.id51867.diff
Thu, May 9, 1:54 PM
Unknown Object (File)
Fri, May 3, 3:29 AM
Subscribers
None

Details

Summary

Ref T13588. Fix a couple of argument parsing issues here.

Test Plan

Ran "bin/auth recover" under PHP 8.1.

Diff Detail

Repository
rP Phabricator
Branch
php1
Lint
Lint Passed
Unit
Test Failures
Build Status
Buildable 25641
Build 35469: arc lint + arc unit

Unit TestsFailed

TimeTest
14 msPhabricatorAuthSSHKeyTestCase::testRevokeSSHKey
EXCEPTION (RuntimeException): strlen(): Passing null to parameter #1 ($string) of type string is deprecated #0 /Users/epriestley/dev/core/lib/phabricator/src/applications/transactions/editor/PhabricatorApplicationTransactionEditor.php(2923): PhutilErrorHandler::handleError(8192, 'strlen(): Passi...', '/Users/epriestl...', 2923) #1 /Users/epriestley/dev/core/lib/phabricator/src/applications/auth/editor/PhabricatorAuthSSHKeyEditor.php(112): PhabricatorApplicationTransactionEditor->validateIsEmptyTextField(NULL, Array)
383 msPhabricatorAuthPasswordTestCase::testCompare
2 assertions passed.
35 msPhabricatorAuthPasswordTestCase::testPasswordBlocklisting
15 assertions passed.
1,634 msPhabricatorAuthPasswordTestCase::testPasswordEngine
20 assertions passed.
320 msPhabricatorAuthPasswordTestCase::testPasswordUpgrade
9 assertions passed.
View Full Test Results (1 Failed · 11 Passed)