isPluginAdmin(); } self::warnStaticPolicyResolutionFailure( 'plugin admin access policy resolution failed because admin_access_policy is unavailable.' ); return false; } catch (\Throwable $e) { self::warnStaticPolicyResolutionFailure('plugin admin access policy resolution failed', $e); return false; } } private static function warnStaticPolicyResolutionFailure(string $message, ?\Throwable $throwable = null): void { if (function_exists('abj404_logRuntimeWarning')) { abj404_logRuntimeWarning($message, $throwable); return; } $line = $message; if ($throwable !== null) { $line .= ' (code ' . (string)$throwable->getCode() . ') at ' . $throwable->getFile() . ':' . (string)$throwable->getLine() . ': ' . $throwable->getMessage(); } abj404_logPhpFallback('service-resolution-fallback', $line); } }