File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -86,6 +86,7 @@ public function asJSON() {
86
86
* @param mixed $offset An Argument object or the name of the argument.
87
87
* @return bool
88
88
*/
89
+ #[\ReturnTypeWillChange]
89
90
public function offsetExists ($ offset ) {
90
91
if ($ offset instanceOf Argument) {
91
92
$ offset = $ offset ->key ;
@@ -100,6 +101,7 @@ public function offsetExists($offset) {
100
101
* @param mixed $offset An Argument object or the name of the argument.
101
102
* @return mixed
102
103
*/
104
+ #[\ReturnTypeWillChange]
103
105
public function offsetGet ($ offset ) {
104
106
if ($ offset instanceOf Argument) {
105
107
$ offset = $ offset ->key ;
@@ -116,6 +118,7 @@ public function offsetGet($offset) {
116
118
* @param mixed $offset An Argument object or the name of the argument.
117
119
* @param mixed $value The value to set
118
120
*/
121
+ #[\ReturnTypeWillChange]
119
122
public function offsetSet ($ offset , $ value ) {
120
123
if ($ offset instanceOf Argument) {
121
124
$ offset = $ offset ->key ;
@@ -129,6 +132,7 @@ public function offsetSet($offset, $value) {
129
132
*
130
133
* @param mixed $offset An Argument object or the name of the argument.
131
134
*/
135
+ #[\ReturnTypeWillChange]
132
136
public function offsetUnset ($ offset ) {
133
137
if ($ offset instanceOf Argument) {
134
138
$ offset = $ offset ->key ;
Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ public function raw() {
77
77
* @return bool
78
78
*/
79
79
public function isLong () {
80
- return (0 == strncmp ($ this ->_raw , '-- ' , 2 ));
80
+ return (0 == strncmp (( string ) $ this ->_raw , '-- ' , 2 ));
81
81
}
82
82
83
83
/**
@@ -86,7 +86,7 @@ public function isLong() {
86
86
* @return bool
87
87
*/
88
88
public function isShort () {
89
- return !$ this ->isLong && (0 == strncmp ($ this ->_raw , '- ' , 1 ));
89
+ return !$ this ->isLong && (0 == strncmp (( string ) $ this ->_raw , '- ' , 1 ));
90
90
}
91
91
92
92
/**
You can’t perform that action at this time.
0 commit comments