Method ReflectionParameter::getClass() 解决方法

Deprecated: Method ReflectionParameter::getClass() is deprecated in /Applications/MAMP/htdocs/tools/package/factory/ProductFactory.php on line 37

PHP8 放弃getClass()方法

$className = $depandency->getClass()->name; 

替换:

$className = $depandency->getType()->getName();
本作品采用《CC 协议》,转载必须注明作者和本文链接
讨论数量: 0
(= ̄ω ̄=)··· 暂无内容!

讨论应以学习和精进为目的。请勿发布不友善或者负能量的内容,与人为善,比聪明更重要!