Skip to content

Composer Warnings when installing pest-plugin-laravel #481

@eleftrik

Description

@eleftrik

Bran new Laravel Zero app.
I try to add pest-plugin-laravel:

composer create-project --prefer-dist laravel-zero/laravel-zero movie-cli
cd movie-cli
composer require --dev pestphp/pest-plugin-laravel

I got a lot of messages like this:

Warning: Ambiguous class resolution, "Illuminate\Foundation\Application" was found in both "/private/tmp/movie-cli/vendor/laravel-zero/foundation/src/Illuminate/Foundation/Application.php" and "/private/tmp/movie-cli/vendor/laravel/framework/src/Illuminate/Foundation/Application.php", the first will be used.

Warning: Ambiguous class resolution, "Illuminate\Foundation\Vite" was found in both "/private/tmp/movie-cli/vendor/laravel-zero/foundation/src/Illuminate/Foundation/Vite.php" and "/private/tmp/movie-cli/vendor/laravel/framework/src/Illuminate/Foundation/Vite.php", the first will be used.

...

I got same warnings on each composer dump-autoload.

Despite these warnings, I can use the plugin (for example, artisan helper inside a test is working).

Is there a way to avoid these warnings? Am I doing anything wrong?

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions