Framework: Error in vendor>composer>autoload_static.php - Laravel 5.3.26

Created on 9 Dec 2016  路  9Comments  路  Source: laravel/framework

  • Laravel Version: 5.3.26
  • PHP Version: 5.6.28
  • Database Driver & Version: MySQl

Description: Error in vendor>composer>autoload_static.php - Laravel 5.3.26

public static function getInitializer(ClassLoader $loader)
    {
        return \Closure::bind(function () use ($loader) {
            $loader->prefixLengthsPsr4 = ComposerStaticInit03e973073eea0174c457e95793a7c992::$prefixLengthsPsr4;
            $loader->prefixDirsPsr4 = ComposerStaticInit03e973073eea0174c457e95793a7c992::$prefixDirsPsr4;
            $loader->prefixesPsr0 = ComposerStaticInit03e973073eea0174c457e95793a7c992::$prefixesPsr0;
            $loader->classMap = ComposerStaticInit03e973073eea0174c457e95793a7c992::$classMap;

        }, null, ClassLoader::class);
    }

15326254_1909838442586240_8481580461390228856_o

How to fix this issues.

Most helpful comment

File >> Invalidate Caches/Restart >> Invalidate and Restart

All 9 comments

What's the actual error you're getting?

Delete your vendor folder and run composer install again to start fresh and see if this issue persists.

@dwightwatson I have included the screen shot

@dwightwatson several times i ran composer dump-autoload command then also the error remains same

kindly remove your vendor folder and run composer install again. Also you would need to run the composer install as Administrator in Windows.

The warning says "Member has private access" since those properties are private. However, they are accessed within a closure that's bound to the ClassLoader type, making it valid.

This isn't Laravel's code, it's part of composer and autoloading. Configure your IDE to ignore the vendor folder (or just ignore code inspections within it)

File >> Invalidate Caches/Restart >> Invalidate and Restart

@moe70 Thank you! :D

@moe70 what local I like this stesp?

The warning says "Member has private access" since those properties are private. However, they are accessed within a closure that's bound to the ClassLoader type, making it valid.

This isn't Laravel's code, it's part of composer and autoloading. Configure your IDE to ignore the vendor folder (or just ignore code inspections within it)

remove the vendor and composer install again.
Do not open the file again is a better options instead of ignoring the vendor folder

Was this page helpful?
0 / 5 - 0 ratings

Related issues

gabriellimo picture gabriellimo  路  3Comments

fideloper picture fideloper  路  3Comments

SachinAgarwal1337 picture SachinAgarwal1337  路  3Comments

PhiloNL picture PhiloNL  路  3Comments

ghost picture ghost  路  3Comments