我使用PHP Coding Standards Fixer的崇高文本2插件。它工作正常,除了它认为命名空间无效的事实(它实际上是无效的,我对它没有问题)。此错误会阻止脚本纠正文件的其余部分。我收到以下错误:我该如何让PHP CodeSniffer Fixer忽略名称空间声明?
! The namespace Application\Controllers\Admin in <filepath> does not match the file path according to PSR-0 rules.
如何告诉脚本忽略命名空间约束。命令行参数和Sublime text 2用户设置都可以更改。
谢谢,这帮了我很多! –