From 72a1e5dc49dc2c1a0e85f141be27880a064b377a Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 6 Oct 2026 07:54:13 +0000 Subject: [PATCH] Fix PHPStan error when unpacking mapped sources Only unpack mapped sources that are actually arrays. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01HsH4o5pKmm1Qd5cqwAm7vB --- src/MakeJsonCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MakeJsonCommand.php b/src/MakeJsonCommand.php index 25bdec4..54e375a 100644 --- a/src/MakeJsonCommand.php +++ b/src/MakeJsonCommand.php @@ -340,7 +340,7 @@ static function ( $reference ) use ( &$map ) { // this is now an array of arrays of sources, translate to array of sources $references = []; foreach ( $temp as $sources ) { - if ( is_null( $sources ) ) { + if ( ! is_array( $sources ) ) { continue; } array_push( $references, ...$sources );