Support the ongoing development of Laravel.io →
Configuration

Hello Everyone,

I need your help as my phpstorm editor indicates that I am having error in autoload_static.php. In this file it says "Member has private access". It is coming for all 4 variables of $loader variable.

$loader->prefixLengthsPsr4 = ComposerStaticInit9e37d49afdb5085d0b1c78a265ac469c::$prefixLengthsPsr4; $loader->prefixDirsPsr4 = ComposerStaticInit9e37d49afdb5085d0b1c78a265ac469c::$prefixDirsPsr4; $loader->prefixesPsr0 = ComposerStaticInit9e37d49afdb5085d0b1c78a265ac469c::$prefixesPsr0; $loader->classMap = ComposerStaticInit9e37d49afdb5085d0b1c78a265ac469c::$classMap;

I wanted to delete one controller which I just added for testing. While deleting it gave me a warning that my controller has references in autoload_static.php. So I manually deleted the references and since then it shows error for above variables. I tried to debug and rollback changes but it not going.

Although, my project is working fine and I am not facing any issue but still it shows in my editor that my project has 4 errors which are bugging me everytime. Any help would be appreciated.

Thanks !!

Last updated 3 years ago.
0

any suggestions please !!

0

Hi deepeshmittal!

This problem is fully reproducible on my PHPStorm as well. Here is what I see:

The code fragment you referring to is inside a call to the function \Closure::bind() . Last parameter in this call is ClassLoader::class . That last parameter description is:

     * @param mixed $newscope The class scope to which associate the closure is to be associated, or 'static' to keep the current one.
     * If an object is given, the type of the object will be used instead.
     * This determines the visibility of protected and private methods of the bound object.

So the conclusion is - PHPStorm does false-positive error reportig here.

What I suggest to you:

  1. Using this recommendation turn off analysis for aparticular file;
  2. be so kind to find a time and report problem to JetBrains, with link to the current thread.

Hope to hear from you soon! Dennis

0

Getting the same issue phpStorm, any updates ?

0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.