保留指示符“@”不能启动普通标量

The reserved indicator "@" cannot start a plain scalar

将 PHPUnit 5.2.3 与 Symfony 2.6.11 和 php 5.6.18 一起使用时,出现错误

The reserved indicator "@" cannot start a plain scalar

我的 yaml 文件用引号很好地转义了。
我的项目的许多依赖项都会发生这种情况。

关注 我必须更新 and/or 提交 PR。

我是否必须对所有依赖项都执行此操作?有没有办法避免这种情况?

我在 Symfony 2.3 中遇到了同样的错误。

不要使用项目目录中的 php phpunit.phar,而是使用供应商 ./vendor/bin/phpunit 中的那个。

或者,您可以使用 phpunit-old.pharversion 4.8。此版本对配置文件中的引号不太严格。

来源:iget-master 评论on this page.