File tree 2 files changed +3
-7
lines changed
2 files changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -123,13 +123,13 @@ public function bind(InputDefinition $definition): void
123
123
if ($ this ->currentIndex >= \count ($ this ->tokens )) {
124
124
if (!isset ($ this ->arguments [$ argumentName ]) || $ this ->definition ->getArgument ($ argumentName )->isArray ()) {
125
125
$ this ->completionName = $ argumentName ;
126
- $ this ->completionValue = '' ;
127
126
} else {
128
127
// we've reached the end
129
128
$ this ->completionType = self ::TYPE_NONE ;
130
129
$ this ->completionName = null ;
131
- $ this ->completionValue = '' ;
132
130
}
131
+
132
+ $ this ->completionValue = '' ;
133
133
}
134
134
}
135
135
Original file line number Diff line number Diff line change @@ -151,11 +151,7 @@ public function testContextReplacement()
151
151
152
152
public function testObjectCastToString ()
153
153
{
154
- if (method_exists ($ this , 'createPartialMock ' )) {
155
- $ dummy = $ this ->createPartialMock (DummyTest::class, ['__toString ' ]);
156
- } else {
157
- $ dummy = $ this ->createPartialMock (DummyTest::class, ['__toString ' ]);
158
- }
154
+ $ dummy = $ this ->createPartialMock (DummyTest::class, ['__toString ' ]);
159
155
$ dummy ->method ('__toString ' )->willReturn ('DUMMY ' );
160
156
161
157
$ this ->getLogger ()->warning ($ dummy );
You can’t perform that action at this time.
0 commit comments