mirror of
http://124.126.16.154:8888/singularity/hyperf-admin.git
synced 2026-01-15 03:35:07 +08:00
perf: upcode
This commit is contained in:
@@ -44,7 +44,7 @@ class ProviderConfig
|
||||
|
||||
$providers = array_values($package);
|
||||
usort($providers, function ($a, $b) {
|
||||
return $a['weight'] > $b['weight'];
|
||||
return intval($a['weight'] > $b['weight']);
|
||||
});
|
||||
$providers = array_column($providers, 'provider');
|
||||
static::$providerConfigs = static::loadProviders($providers);
|
||||
|
||||
Reference in New Issue
Block a user