php中关于新引入object的坑
PHP7.2中引入了新的数据类型object,在官方文档中说,object可以作为任何对象的参数、返回值的类型。如果当前的PHP环境低于7.2,那么PHP就会报
Return value must be an instance of Symfony\Component\DomCrawler\object, instance of Symfony\Component\DomCrawler\Crawler returned
PHP7.2中引入了新的数据类型object,在官方文档中说,object可以作为任何对象的参数、返回值的类型。如果当前的PHP环境低于7.2,那么PHP就会报
Return value must be an instance of Symfony\Component\DomCrawler\object, instance of Symfony\Component\DomCrawler\Crawler returned