Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2869578
D25400.1736710710.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
1 KB
Referenced Files
None
Subscribers
None
D25400.1736710710.diff
View Options
diff --git a/src/applications/repository/storage/PhabricatorRepositoryCommit.php b/src/applications/repository/storage/PhabricatorRepositoryCommit.php
--- a/src/applications/repository/storage/PhabricatorRepositoryCommit.php
+++ b/src/applications/repository/storage/PhabricatorRepositoryCommit.php
@@ -478,7 +478,7 @@
}
$author = $this->getRawAuthorStringForDisplay();
- if (strlen($author)) {
+ if (phutil_nonempty_string($author)) {
return DiffusionView::renderName($author);
}
@@ -493,7 +493,7 @@
}
$committer = $this->getRawCommitterStringForDisplay();
- if (strlen($committer)) {
+ if (phutil_nonempty_string($committer)) {
return DiffusionView::renderName($committer);
}
diff --git a/src/applications/repository/storage/PhabricatorRepositoryCommitData.php b/src/applications/repository/storage/PhabricatorRepositoryCommitData.php
--- a/src/applications/repository/storage/PhabricatorRepositoryCommitData.php
+++ b/src/applications/repository/storage/PhabricatorRepositoryCommitData.php
@@ -131,7 +131,7 @@
$ref = $this->getCommitRef();
$committer = $ref->getCommitter();
- if (strlen($committer)) {
+ if (phutil_nonempty_string($committer)) {
return $committer;
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Jan 12, 19:38 (5 d, 14 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1112883
Default Alt Text
D25400.1736710710.diff (1 KB)
Attached To
Mode
D25400: Fix a PHP 8.1 deprecated use of strlen with a NULL argument
Attached
Detach File
Event Timeline
Log In to Comment