fix crash on windoof

This commit is contained in:
DubbleClick 2025-03-23 16:11:03 +07:00
parent 1791b443bc
commit 9d75265e25

View File

@ -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;