Closed ArYaNsH closed 8 years ago
Hello,
this error seems to be related to using namespaces; I guess you are trying to extend \Arachnid\Crawler
class and override extractTitleInfo()
method without using the proper namespace, try place the following line at the beginning of your class - after your namespace line -
use Symfony\Component\DomCrawler\Crawler as DomCrawler;
I already have this line, however my namespace is different it that a problem?
Can you provide the code sample you are using to trace?
closed, due to lack of response
I'm getting this error while running the code:
Catchable fatal error: Argument 1 passed to Front\simpleCrawler::extractTitleInfo() must be an instance of Front\DomCrawler, instance of Symfony\Component\DomCrawler\Crawler given, called in C:\xampp\htdocs\webAN\src\Front\FrontController.php on line 336 and defined in C:\xampp\htdocs\webAN\src\Front\FrontController.php on line 453