Skip to content

Commit 1b7cca4

Browse files
committed
Fixed issue where is_dir() is called with multiple arguments in the console kernel.
1 parent d09f591 commit 1b7cca4

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## v1.13.2
9+
10+
### Fixed
11+
12+
- Fixed issue where `is_dir()` is called with multiple arguments in the console kernel.
13+
814
## v1.13.1
915

1016
### Fixed

rector.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,5 @@
121121
CatchExceptionNameMatchingTypeRector::class,
122122
EncapsedStringsToSprintfRector::class,
123123
FlipTypeControlToUseExclusiveTypeRector::class,
124-
FunctionLikeToFirstClassCallableRector::class => [
125-
__DIR__ . '/src/mantle/database/query/class-database-query-builder.php',
126-
__DIR__ . '/src/mantle/testing',
127-
],
124+
FunctionLikeToFirstClassCallableRector::class,
128125
] );

src/mantle/framework/console/class-kernel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ protected function load( ...$paths ) {
229229

230230
$this->commands = collect( $paths )
231231
->unique()
232-
->filter( is_dir( ... ) )
232+
->filter( fn ( string $path ) => is_dir( $path ) )
233233
->map( fn ( string $path ) => $this->classes_from_path( $path, $namespace . '\Console' ) )
234234
->flatten()
235235
->filter(

0 commit comments

Comments
 (0)