We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36a124c commit d4750b7Copy full SHA for d4750b7
lib/cli/arguments/Argument.php
@@ -77,7 +77,7 @@ public function raw() {
77
* @return bool
78
*/
79
public function isLong() {
80
- return (0 == strncmp($this->_raw, '--', 2));
+ return (0 == strncmp((string)$this->_raw, '--', 2));
81
}
82
83
/**
@@ -86,7 +86,7 @@ public function isLong() {
86
87
88
public function isShort() {
89
- return !$this->isLong && (0 == strncmp($this->_raw, '-', 1));
+ return !$this->isLong && (0 == strncmp((string)$this->_raw, '-', 1));
90
91
92
0 commit comments