Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2628655
D25584.1732033700.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
D25584.1732033700.diff
View Options
diff --git a/src/applications/conduit/management/PhabricatorConduitCallManagementWorkflow.php b/src/applications/conduit/management/PhabricatorConduitCallManagementWorkflow.php
--- a/src/applications/conduit/management/PhabricatorConduitCallManagementWorkflow.php
+++ b/src/applications/conduit/management/PhabricatorConduitCallManagementWorkflow.php
@@ -41,19 +41,19 @@
$viewer = $this->getViewer();
$method = $args->getArg('method');
- if (!strlen($method)) {
+ if (!phutil_nonempty_string($method)) {
throw new PhutilArgumentUsageException(
pht('Specify a method to call with "--method".'));
}
$input = $args->getArg('input');
- if (!strlen($input)) {
+ if (!phutil_nonempty_string($input)) {
throw new PhutilArgumentUsageException(
pht('Specify a file to read parameters from with "--input".'));
}
$as = $args->getArg('as');
- if (strlen($as)) {
+ if (phutil_nonempty_string($as)) {
$actor = id(new PhabricatorPeopleQuery())
->setViewer($viewer)
->withUsernames(array($as))
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Nov 19, 16:28 (20 h, 7 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
978004
Default Alt Text
D25584.1732033700.diff (1 KB)
Attached To
Mode
D25584: Fix PHP 8.1 "strlen(null)" exception for "/bin/conduit call" without parameter
Attached
Detach File
Event Timeline
Log In to Comment