Skip to content

Commit cd65e07

Browse files
committed
[TASK] Apply PHP-CS-Fixer rules to own codebase
1 parent 789c68b commit cd65e07

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Setup.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ final class Setup
6363
/**
6464
* @throws RuntimeException
6565
*/
66-
public function __construct(string $targetDir, StyleInterface $style = null)
66+
public function __construct(string $targetDir, ?StyleInterface $style = null)
6767
{
6868
if ($targetDir === '') {
6969
$targetDir = '.'; // @codeCoverageIgnore

tests/Console/Style/SimpleStyle.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ public function definitionList(...$list): void
251251
/**
252252
* @inheritDoc
253253
*/
254-
public function ask(string $question, string $default = null, callable $validator = null): mixed
254+
public function ask(string $question, ?string $default = null, ?callable $validator = null): mixed
255255
{
256256
$question = new Question($question, $default);
257257
$question->setValidator($validator);
@@ -262,7 +262,7 @@ public function ask(string $question, string $default = null, callable $validato
262262
/**
263263
* @inheritDoc
264264
*/
265-
public function askHidden(string $question, callable $validator = null): mixed
265+
public function askHidden(string $question, ?callable $validator = null): mixed
266266
{
267267
$question = new Question($question);
268268

@@ -445,7 +445,7 @@ private function writeBuffer(string $message, bool $newLine, int $type): void
445445
$this->bufferedOutput->write($message, $newLine, $type);
446446
}
447447

448-
private function createBlock(iterable $messages, string $type = null, string $style = null, string $prefix = ' ', bool $padding = false, bool $escape = false): array
448+
private function createBlock(iterable $messages, ?string $type = null, ?string $style = null, string $prefix = ' ', bool $padding = false, bool $escape = false): array
449449
{
450450
$indentLength = 0;
451451
$prefixLength = Helper::removeDecoration($this->getFormatter(), $prefix);

0 commit comments

Comments
 (0)