Skip to content

Commit 9523e73

Browse files
committed
Merge branch '4.4' into 5.3
* 4.4: [DependencyInjection] only allow `ReflectionNamedType` for `ServiceSubscriberTrait` Fix CS
2 parents e003460 + 329b3a7 commit 9523e73

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Input/ArgvInput.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ private function parseLongOption(string $token)
134134
$name = substr($token, 2);
135135

136136
if (false !== $pos = strpos($name, '=')) {
137-
if (0 === \strlen($value = substr($name, $pos + 1))) {
137+
if ('' === $value = substr($name, $pos + 1)) {
138138
array_unshift($this->parsed, $value);
139139
}
140140
$this->addLongOption(substr($name, 0, $pos), $value);

Output/TrimmedBufferOutput.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ class TrimmedBufferOutput extends Output
2424
private $maxLength;
2525
private $buffer = '';
2626

27-
public function __construct(int $maxLength, ?int $verbosity = self::VERBOSITY_NORMAL, bool $decorated = false, OutputFormatterInterface $formatter = null) {
27+
public function __construct(int $maxLength, ?int $verbosity = self::VERBOSITY_NORMAL, bool $decorated = false, OutputFormatterInterface $formatter = null)
28+
{
2829
if ($maxLength <= 0) {
2930
throw new InvalidArgumentException(sprintf('"%s()" expects a strictly positive maxLength. Got %d.', __METHOD__, $maxLength));
3031
}

0 commit comments

Comments
 (0)