Z
Z
Zimaell2019-05-20 18:22:11
PhantomJS
Zimaell, 2019-05-20 18:22:11

How to properly connect PhantomJS?

I do everything according to the instructions, jonnnnyw.github.io/php-phantomjs/4.0/2-installation
PHP code looks like this

require '/var/www/html/vendor/autoload.php';
use JonnyW\PhantomJs\Client;
$client = Client::getInstance();

gives an error in response
Warning: Declaration of JonnyW\PhantomJs\DependencyInjection\ServiceContainer::load() should be compatible with Symfony\Component\DependencyInjection\Container::load($file) in /var/www/html/vendor/jonnyw/php-phantomjs/ src/JonnyW/PhantomJs/DependencyInjection/ServiceContainer.php on line 20

updated the system, php 7.3, according to the advice in composer.json indicated version 7.2, the error still remains.
Tell me who faced what can be done?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question