Hello @anga30
It would be better if you share the code snippet to check for actual errors instead of the error message.
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▕ }
Share some screenshots of your code to better understand the problem and provide you some solution if possible.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community