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 !!
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:
Hope to hear from you soon! Dennis
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community