mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-14 12:25:36 +08:00
Merge remote-tracking branch 'origin/v3' into feat/pgo-v3
This commit is contained in:
@@ -499,6 +499,7 @@ class PackageLoader
|
||||
throw new RegistryException('Package name must not be empty when no package context is available for BeforeStage attribute.');
|
||||
}
|
||||
$package_name = $method_instance->package_name === '' ? $pkg->getName() : $method_instance->package_name;
|
||||
|
||||
$conditionals = array_map(
|
||||
fn (\ReflectionAttribute $a) => $a->newInstance()->class,
|
||||
[...$method->getDeclaringClass()->getAttributes(ConditionalOn::class), ...$method->getAttributes(ConditionalOn::class)],
|
||||
@@ -529,6 +530,7 @@ class PackageLoader
|
||||
throw new RegistryException('Package name must not be empty when no package context is available for AfterStage attribute.');
|
||||
}
|
||||
$package_name = $method_instance->package_name === '' ? $pkg->getName() : $method_instance->package_name;
|
||||
|
||||
$conditionals = array_map(
|
||||
fn (\ReflectionAttribute $a) => $a->newInstance()->class,
|
||||
[...$method->getDeclaringClass()->getAttributes(ConditionalOn::class), ...$method->getAttributes(ConditionalOn::class)],
|
||||
|
||||
Reference in New Issue
Block a user