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