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 70b3c4f commit 17caaf4Copy full SHA for 17caaf4
src/Commands/Services/StatusCommand.php
@@ -15,6 +15,7 @@
15
use Symfony\Component\Console\Input\InputInterface;
16
use Symfony\Component\Console\Output\OutputInterface;
17
use function array_key_exists;
18
+use function dump;
19
use function explode;
20
use function implode;
21
use function parse_url;
@@ -150,8 +151,11 @@ private function getLabelsFromString(string $string): MutableCollection
150
151
$labels = new MutableCollection();
152
153
foreach (explode(',', $string) as $label) {
- [$key, $value] = explode('=', $label);
154
- $labels->set($key, $value);
+ if (false !== strpos($label, '=')) {
155
+ [$key, $value] = explode('=', $label);
156
+
157
+ $labels->set($key, $value);
158
+ }
159
}
160
161
return $labels;
0 commit comments