php-phantomjs icon indicating copy to clipboard operation
php-phantomjs copied to clipboard

Laravel Error

Open gokhan17 opened this issue 7 years ago • 5 comments

Hello, I'm getting an error message. (Version : Laravel 5.4)

"Declaration of JonnyW\PhantomJs\DependencyInjection\ServiceContainer::load() should be compatible with Symfony\Component\DependencyInjection\Container::load($file)"

How can I fix?

gokhan17 avatar Dec 10 '17 17:12 gokhan17

\vendor\jonnyw\php-phantomjs\src\JonnyW\PhantomJs\DependencyInjection\ServiceContainer.php at your load() function change it to load($file = null)

szabizs avatar Dec 13 '17 20:12 szabizs

hey @szabizs .. you are suggesting to update the vendor library? Is there a proper fix for this?

Thanks

nicgutierrez avatar Mar 22 '18 13:03 nicgutierrez

If no new release was made, yes, this is your fix.

szabizs avatar Mar 22 '18 13:03 szabizs

Alright.. Well I pulled the latest copy and the error is still there so.. Unfortunately updating the vendor folder doesn't work for me or anyone using a deployment tool. I'll see if I can work something out.

Thanks

nicgutierrez avatar Mar 22 '18 13:03 nicgutierrez

@nicgutierrez sorry to hear that...

szabizs avatar Mar 22 '18 13:03 szabizs