Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b5cf7fb

Browse files
Merge branch '6.0' into 6.1
* 6.0: CS fixes Bump Symfony version to 6.0.11 Update VERSION for 6.0.10 Update CHANGELOG for 6.0.10 Bump Symfony version to 5.4.11 Update VERSION for 5.4.10 Update CHANGELOG for 5.4.10 Bump Symfony version to 4.4.44 Update VERSION for 4.4.43 Update CONTRIBUTORS for 4.4.43 Update CHANGELOG for 4.4.43
2 parents 7a86c1c + 5eb6fb3 commit b5cf7fb

File tree

5 files changed

+7
-8
lines changed

5 files changed

+7
-8
lines changed

Helper/Table.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -674,7 +674,7 @@ private function fillNextRows(array $rows, int $line): array
674674
{
675675
$unmergedRows = [];
676676
foreach ($rows[$line] as $column => $cell) {
677-
if (null !== $cell && !$cell instanceof TableCell && !is_scalar($cell) && !$cell instanceof \Stringable) {
677+
if (null !== $cell && !$cell instanceof TableCell && !\is_scalar($cell) && !$cell instanceof \Stringable) {
678678
throw new InvalidArgumentException(sprintf('A cell must be a TableCell, a scalar or an object implementing "__toString()", "%s" given.', get_debug_type($cell)));
679679
}
680680
if ($cell instanceof TableCell && $cell->getRowspan() > 1) {

Logger/ConsoleLogger.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ private function interpolate(string $message, array $context): string
106106

107107
$replacements = [];
108108
foreach ($context as $key => $val) {
109-
if (null === $val || is_scalar($val) || $val instanceof \Stringable) {
109+
if (null === $val || \is_scalar($val) || $val instanceof \Stringable) {
110110
$replacements["{{$key}}"] = $val;
111111
} elseif ($val instanceof \DateTimeInterface) {
112112
$replacements["{{$key}}"] = $val->format(\DateTime::RFC3339);

Style/SymfonyStyle.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -422,18 +422,18 @@ private function autoPrependBlock(): void
422422
$chars = substr(str_replace(\PHP_EOL, "\n", $this->bufferedOutput->fetch()), -2);
423423

424424
if (!isset($chars[0])) {
425-
$this->newLine(); //empty history, so we should start with a new line.
425+
$this->newLine(); // empty history, so we should start with a new line.
426426

427427
return;
428428
}
429-
//Prepend new line for each non LF chars (This means no blank line was output before)
429+
// Prepend new line for each non LF chars (This means no blank line was output before)
430430
$this->newLine(2 - substr_count($chars, "\n"));
431431
}
432432

433433
private function autoPrependText(): void
434434
{
435435
$fetched = $this->bufferedOutput->fetch();
436-
//Prepend new line if last char isn't EOL:
436+
// Prepend new line if last char isn't EOL:
437437
if (!str_ends_with($fetched, "\n")) {
438438
$this->newLine();
439439
}

Tests/Command/CompleteCommandTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ public function configure(): void
139139
$this->setName('hello')
140140
->setAliases(['ahoy'])
141141
->addArgument('name', InputArgument::REQUIRED)
142-
;
142+
;
143143
}
144144

145145
public function complete(CompletionInput $input, CompletionSuggestions $suggestions): void

Tests/Tester/CommandTesterTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,8 +237,7 @@ public function testErrorOutput()
237237
$command->addArgument('foo');
238238
$command->setCode(function ($input, $output) {
239239
$output->getErrorOutput()->write('foo');
240-
}
241-
);
240+
});
242241

243242
$tester = new CommandTester($command);
244243
$tester->execute(

0 commit comments

Comments
 (0)