Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
命令:php -l <filename>
php -l <filename>
结果:在 C:\example\path\file.php 中未检测到语法错误
跑步:
事情已经检查:
config.json
如果您使用的是短标签short_open_tag=On,则解决方案php.ini设置为Off需要On<? vs <?php才能使 linter 捕获错误。
short_open_tag=On
php.ini
<? vs <?php
希望这对其他人有帮助。