PhpStorm:不推荐使用 class 名称的调用
PhpStorm: Invocation with class name is deprecated
当我尝试 运行 在我的 PhpStorm 中进行测试时,我看到了这个:
PHPUnit 8.5.2 by Sebastian Bergmann and contributors.
Warning: Invocation with class name is deprecated
这可能是 PhpStorm 如何处理 PHPUnit 自动加载器脚本并期望文件名与测试相同的问题。
有转机吗?
这是一个警告,您可以暂时忽略它(至少对于 PHPUnit 8。5.x)。
https://youtrack.jetbrains.com/issue/WI-50201 -- 它已针对下一个 PhpStorm 版本修复(下一个次要版本 2019.3.x 和下一个主要版本 2020.1)。
当我尝试 运行 在我的 PhpStorm 中进行测试时,我看到了这个:
PHPUnit 8.5.2 by Sebastian Bergmann and contributors.
Warning: Invocation with class name is deprecated
这可能是 PhpStorm 如何处理 PHPUnit 自动加载器脚本并期望文件名与测试相同的问题。
有转机吗?
这是一个警告,您可以暂时忽略它(至少对于 PHPUnit 8。5.x)。
https://youtrack.jetbrains.com/issue/WI-50201 -- 它已针对下一个 PhpStorm 版本修复(下一个次要版本 2019.3.x 和下一个主要版本 2020.1)。