Skip to content

Commit 24380c5

Browse files
authored
Fix PHPStan error when unpacking mapped sources in make-json (#508)
1 parent 2f8df3f commit 24380c5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/MakeJsonCommand.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ static function ( $reference ) use ( &$map ) {
340340
// this is now an array of arrays of sources, translate to array of sources
341341
$references = [];
342342
foreach ( $temp as $sources ) {
343-
if ( is_null( $sources ) ) {
343+
if ( ! is_array( $sources ) ) {
344344
continue;
345345
}
346346
array_push( $references, ...$sources );

0 commit comments

Comments
 (0)