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::
217
217
// where files and dirs can be found
218
218
$foundFilesAndDirs = @scandir($inputPath) ?: [];
219
219
220
- return array_map(function (string $dirOrFile) use ($inputPath): void {
220
+ return array_map(function (string $dirOrFile) use ($inputPath): string {
221
221
return $inputPath.$dirOrFile;
222
222
}, $foundFilesAndDirs);
223
223
};
@@ -462,7 +462,7 @@ You can also use a validator with a hidden question::
462
462
$question->setNormalizer(function (?string $value): string {
463
463
return $value ?? '';
464
464
});
465
- $question->setValidator(function (string $value): void {
465
+ $question->setValidator(function (string $value): string {
466
466
if ('' === trim($value)) {
467
467
throw new \Exception('The password cannot be empty');
468
468
}
You can’t perform that action at this time.
0 commit comments