Skip to content
This repository was archived by the owner on Dec 30, 2024. It is now read-only.
This repository was archived by the owner on Dec 30, 2024. It is now read-only.

Errors when using Laravel v8 #2

@MikeSamv

Description

@MikeSamv

I am trying to use this package with an application that's using laravel/framework: ^8.58 and get the following error:

PHP Fatal error:  Declaration of Illuminate\Database\PDO\Concerns\ConnectsToDatabase::connect(array $params) must be compatible with Doctrine\DBAL\Driver::connect(array $params, $username = null, $password = null, array $driverOptions = []) in /app/vendor/laravel/framework/src/Illuminate/Database/PDO/Concerns/ConnectsToDatabase.php on line 19
In ConnectsToDatabase.php line 19:
                                                                                
Declaration of Illuminate\Database\PDO\Concerns\ConnectsToDatabase::connect(array $params) must be compatible with Doctrine\DBAL\Driver::connect(array $params, $username = null, $password = null, array $driverOptions = [])     

I assume upgrading to Laravel v9 would fix this, but would love to know if there's an easier way I could get around this.

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