mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-19 13:24:51 +08:00
fix crash on windoof
This commit is contained in:
parent
1791b443bc
commit
9d75265e25
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user