mirror of
https://gitee.com/hyperf/hyperf.git
synced 2024-12-02 11:48:08 +08:00
Fixed ci (#5440)
This commit is contained in:
parent
e78f538b47
commit
0ac1d5e807
@ -117,6 +117,8 @@ class Client implements ClientInterface
|
||||
private function getSecurityCredentialsWithEcsRamRole(string $ecsRamRole): ?array
|
||||
{
|
||||
$securityCredentials = $this->cachedSecurityCredentials[$ecsRamRole] ?? null;
|
||||
|
||||
/* @phpstan-ignore-next-line */
|
||||
if (! empty($securityCredentials) && time() > strtotime($securityCredentials['Expiration']) - 60) {
|
||||
$securityCredentials = null;
|
||||
}
|
||||
|
@ -84,10 +84,8 @@ class RoutesCommand extends HyperfCommand
|
||||
$action = $handler->callback[0] . '::' . $handler->callback[1];
|
||||
} elseif (is_string($handler->callback)) {
|
||||
$action = $handler->callback;
|
||||
} elseif (is_callable($handler->callback)) {
|
||||
$action = 'Closure';
|
||||
} else {
|
||||
$action = (string) $handler->callback;
|
||||
$action = 'Closure';
|
||||
}
|
||||
$unique = "{$serverName}|{$uri}|{$action}";
|
||||
if (isset($data[$unique])) {
|
||||
|
Loading…
Reference in New Issue
Block a user