perf: upcode

This commit is contained in:
daodao97
2021-08-14 16:08:56 +08:00
parent c8a049faeb
commit a1c0372828

View File

@@ -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);