1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2025-02-23 20:19:03 +01:00
phorge-phorge/src/view/layout
Andre Klapper 8f669ea082 Fix PHP 8.1 "strlen(null)" exceptions which block rendering the People page
Summary:
`strlen()` was used in Phabricator to check if a generic value is a non-empty string.
This behavior is deprecated since PHP 8.1. Phorge adopts `phutil_nonempty_string()` as
a general replacement.

Note: this may highlight other absurd input values that might be worth correcting
instead of just ignoring. If phutil_nonempty_string() throws an exception in your
instance, report it to Phorge to evaluate and fix that specific corner case.

Use `phutil_nonempty_scalar()` instead in `PhabricatorSearchDateField.php` as
input could only be integer instead of string.

Closes T15297

Test Plan: Applied these four changes (on top of D25144, D25145, D25146) and `/people/` finally rendered in web browser.

Reviewers: O1 Blessed Committers, valerio.bozzolan

Reviewed By: O1 Blessed Committers, valerio.bozzolan

Subscribers: speck, tobiaswiese, valerio.bozzolan, Matthew, Cigaryno

Maniphest Tasks: T15297

Differential Revision: https://we.phorge.it/D25147
2023-05-01 22:31:28 +02:00
..
__tests__ Mark some strings for translation 2015-06-09 23:06:52 +10:00
AphrontListFilterView.php Separate button CSS classes 2017-06-05 20:14:34 +00:00
AphrontMoreView.php phtize all the things 2015-05-22 21:16:39 +10:00
AphrontMultiColumnView.php phtize all the things 2015-05-22 21:16:39 +10:00
AphrontSideNavFilterView.php Fix PHP 8.1 "strlen(null)" exceptions which block rendering the People page 2023-05-01 22:31:28 +02:00
PhabricatorActionListView.php Add an "Advanced/Developer..." action item for viewing object handle details and hovercards 2019-11-08 16:47:05 -08:00
PhabricatorActionView.php Allow users to be approved from the profile "Manage" page, alongside other similar actions 2019-02-07 15:04:23 -08:00
PhabricatorAnchorView.php Remove all calls to renderSingleView() and deprecate it 2013-03-09 13:52:41 -08:00
PhabricatorFileLinkView.php Add a PDF document "rendering" engine 2018-03-23 07:14:17 -07:00
PhabricatorSourceCodeView.php Restore coverage reporting to Diffusion browse UI 2018-04-17 14:51:47 -07:00
PHUIApplicationMenuView.php Allow profile menus to be collapsed and expanded 2016-01-19 13:16:54 -08:00
PHUICurtainPanelView.php Introduce "Curtain" views, panels, and extensions 2016-03-06 09:27:55 -08:00
PHUICurtainView.php Put application curtain panels above extension curtain panels 2020-05-01 09:11:04 -07:00