-
Notifications
You must be signed in to change notification settings - Fork 72
Could not get class storage for illuminate\support\facades\ratelimiter #134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Looks like duplicate for #110 |
Here is a list of 1262 keys that Original order
Alphabetical order
Only three facades are in the storage: 🤔
|
Stacktrace:
Here is the state: // Psalm\Codebase->scanFiles()
$threads = 1;
$has_changes = true;
// Psalm\Internal\Codebase\Populator->populateCodebase()
$class_storage->name = "Illuminate\Support\Facades\Facade";
$class_storage->dependent_classlikes = [
'illuminate\support\facades\date' => true,
'helldar\laravelsupport\facades\dumper' => true,
'illuminate\support\facades\auth' => true,
'illuminate\support\facades\db' => true,
'illuminate\support\facades\broadcast' => true,
'illuminate\support\facades\route' => true,
'illuminate\support\facades\ratelimiter' => true,
'illuminate\support\facades\storage' => true,
'illuminate\support\facades\app' => true,
'illuminate\support\facades\validator' => true,
'illuminate\support\facades\hash' => true,
'illuminate\support\facades\event' => true,
'illuminate\support\facades\gate' => true,
'illuminate\support\facades\password' => true,
'illuminate\support\facades\crypt' => true,
]; |
That's actually not the right stacktrace, because at Here's the right stacktrace:
State: // ClassLikeStorageProvider->get(), line 43
$fq_classlike_name = 'illuminate\\support\\facades\\ratelimiter';
$fq_classlike_name_lc = 'illuminate\\support\\facades\\ratelimiter';
$this->storage = [
// 1595 elements
];
$this->new_storage = [
// 709 elements
];
// ClassLikeNodeScanner->start(), line 198
$class_name = "Facade";
$dependant_name_lc = "illuminate\support\facades\ratelimiter";
$fq_classlike_name = "Illuminate\Support\Facades\Facade";
$name_location->file_name = "vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php";
$storage->name = 'Illuminate\Support\Facades\Facade';
$storage->dependent_classlikes = [
'illuminate\support\facades\date' => true,
'helldar\laravelsupport\facades\dumper' => true,
'illuminate\support\facades\auth' => true,
'illuminate\support\facades\db' => true,
'illuminate\support\facades\broadcast' => true,
'illuminate\support\facades\route' => true,
'illuminate\support\facades\ratelimiter' => true,
'illuminate\support\facades\storage' => true,
'illuminate\support\facades\app' => true,
'illuminate\support\facades\validator' => true,
'illuminate\support\facades\hash' => true,
'illuminate\support\facades\event' => true,
'illuminate\support\facades\gate' => true,
'illuminate\support\facades\password' => true,
'illuminate\support\facades\crypt' => true,
]; |
Both By the way, @mr-feek Does this help in any way to track down the issue? |
I have another theory: We use Dependabot to update our dependencies on a daily basis. This also means that |
Here's an important difference of the This also means it won't be listed in the |
Uh oh!
There was an error while loading. Please reload this page.
When running psalm, often an error occurs with the message: Could not get class storage for illuminate\support\facades\ratelimiter
InvalidArgumentException
Could not get class storage for illuminate\support\facades\ratelimiter
at vendor/vimeo/psalm/src/Psalm/Internal/Provider/ClassLikeStorageProvider.php:42
38▕ public function get(string $fq_classlike_name): ClassLikeStorage
39▕ {
40▕ $fq_classlike_name_lc = strtolower($fq_classlike_name);
41▕ if (!isset(self::$storage[$fq_classlike_name_lc])) {
➜ 42▕ throw new \InvalidArgumentException('Could not get class storage for ' . $fq_classlike_name_lc);
43▕ }
44▕
45▕ return self::$storage[$fq_classlike_name_lc];
46▕ }
barryvdh/laravel-ide-helper v2.9.1
laravel/framework v8.33.1
psalm/plugin-laravel v1.4.2
vimeo/psalm 4.6.4
The text was updated successfully, but these errors were encountered: