Skip to content

Commit ae91653

Browse files
committed
Fixing installer after recent changes in composer
cakephp/app@68cfee9
1 parent 6fd1048 commit ae91653

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cake-3.0/src/Console/Installer.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,16 +41,16 @@ public static function postInstall(Event $event)
4141

4242
// ask if the permissions should be changed
4343
if ($io->isInteractive()) {
44-
$validator = (function ($arg) {
44+
$validator = function ($arg) {
4545
if (in_array($arg, ['Y', 'y', 'N', 'n'])) {
4646
return $arg;
4747
}
4848
throw new Exception('This is not a valid answer. Please choose Y or n.');
49-
});
49+
};
5050
$setFolderPermissions = $io->askAndValidate(
5151
'<info>Set Folder Permissions ? (Default to Y)</info> [<comment>Y,n</comment>]? ',
5252
$validator,
53-
false,
53+
10,
5454
'Y'
5555
);
5656

0 commit comments

Comments
 (0)