File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
components/console/helpers Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -217,7 +217,7 @@ provide a callback function to dynamically generate suggestions::
217217 // where files and dirs can be found
218218 $foundFilesAndDirs = @scandir($inputPath) ?: [];
219219
220- return array_map(function (string $dirOrFile) use ($inputPath): void {
220+ return array_map(function (string $dirOrFile) use ($inputPath): string {
221221 return $inputPath.$dirOrFile;
222222 }, $foundFilesAndDirs);
223223 };
@@ -462,7 +462,7 @@ You can also use a validator with a hidden question::
462462 $question->setNormalizer(function (?string $value): string {
463463 return $value ?? '';
464464 });
465- $question->setValidator(function (string $value): void {
465+ $question->setValidator(function (string $value): string {
466466 if ('' === trim($value)) {
467467 throw new \Exception('The password cannot be empty');
468468 }
You can’t perform that action at this time.
0 commit comments