Support the ongoing development of Laravel.io →
posted 3 months ago
Laravel
0

Hello @anga30

It would be better if you share the code snippet to check for actual errors instead of the error message.

0

i have the same issue any update?

0

PHP Fatal error: Declaration of Illuminate\Database\PDO\Concerns\ConnectsToDatabase::connect(array $params) must be compatible with Doctrine\DBAL\Driver::connect(array $params): Doctrine\DBAL\Driver\Connection in /home/forge/dian.contapp.com.co/vendor/laravel/framework/src/Illuminate/Database/PDO/Concerns/ConnectsToDatabase.php on line 19

Symfony\Component\ErrorHandler\Error\FatalError

Declaration of Illuminate\Database\PDO\Concerns\ConnectsToDatabase::connect(array $params) must be compatible with Doctrine\DBAL\Driver::connect(array $params): Doctrine\DBAL\Driver\Connection

at vendor/laravel/framework/src/Illuminate/Database/PDO/Concerns/ConnectsToDatabase.php:19 15▕ * @return \Illuminate\Database\PDO\Connection 16▕ * 17▕ * @throws \InvalidArgumentException 18▕ */ ➜ 19▕ public function connect(array $params) 20▕ { 21▕ if (! isset($params['pdo']) || ! $params['pdo'] instanceof PDO) { 22▕ throw new InvalidArgumentException('Laravel requires the "pdo" property to be set and be a PDO instance.'); 23▕ }

Whoops\Exception\ErrorException

Declaration of Illuminate\Database\PDO\Concerns\ConnectsToDatabase::connect(array $params) must be compatible with Doctrine\DBAL\Driver::connect(array $params): Doctrine\DBAL\Driver\Connection

at vendor/laravel/framework/src/Illuminate/Database/PDO/Concerns/ConnectsToDatabase.php:19 15▕ * @return \Illuminate\Database\PDO\Connection 16▕ * 17▕ * @throws \InvalidArgumentException 18▕ */ ➜ 19▕ public function connect(array $params) 20▕ { 21▕ if (! isset($params['pdo']) || ! $params['pdo'] instanceof PDO) { 22▕ throw new InvalidArgumentException('Laravel requires the "pdo" property to be set and be a PDO instance.'); 23▕ }

0

@mauroziux

Share some screenshots of your code to better understand the problem and provide you some solution if possible.

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.