Support the ongoing development of Laravel.io →
Configuration
Last updated 2 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.

© 2024 Laravel.io - All rights reserved.