Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

laravel PDO::ATTR_STATEMENT_CLASS requires format array(classname, array(ctor_args)); the classname must be a string specifying an existing class

Tags:

php

laravel

i was working on a laravel project then i installed a new package using composer and i found this error

PDO::ATTR_STATEMENT_CLASS requires format array(classname, array(ctor_args)); the classname must be a string specifying an existing class

i tried to :-

  1. revert to previous commit on git
  2. remove vendor folder and composer.lock and reinstall all with no results

screenshot

like image 560
Mohamed Magdy Avatar asked Feb 24 '18 20:02

Mohamed Magdy


2 Answers

Had the same problem here. Downgrading to composer require doctrine/dbal=2.6.3 did the trick so far.

like image 94
Jose Gratereaux Avatar answered Nov 18 '22 08:11

Jose Gratereaux


I had same problem. After downgrading doctrine/dbal 2.7 to 2.6.*, the problem was resolved.

like image 5
S.Sasaki Avatar answered Nov 18 '22 07:11

S.Sasaki