From 9d75265e253d2b0c9ac9484df8b0fef9c97dcb3b Mon Sep 17 00:00:00 2001 From: DubbleClick Date: Sun, 23 Mar 2025 16:11:03 +0700 Subject: [PATCH] fix crash on windoof --- src/SPC/command/BuildPHPCommand.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/SPC/command/BuildPHPCommand.php b/src/SPC/command/BuildPHPCommand.php index ceeaca34..3a5c17a4 100644 --- a/src/SPC/command/BuildPHPCommand.php +++ b/src/SPC/command/BuildPHPCommand.php @@ -116,6 +116,9 @@ class BuildPHPCommand extends BuildCommand $a = explode('\\', $class); return end($a) === $ext; }); + if (!$extension) { + return false; + } $reflector = new \ReflectionClass($extension); $attributes = $reflector->getAttributes(); return array_find($attributes, fn ($attr) => $attr->getName() === DynamicExt::class) !== null;