【发布时间】:2013-01-05 06:38:49
【问题描述】:
嗯,我从 PHPCS 收到了一个非常奇怪的错误:
<?xml version="1.0" encoding="UTF-8"?>
<checkstyle version="1.2.2">
<file name="/var/lib/hudson/jobs/Goals/workspace/Goals/controllers/UserActivation.class.php">
<error line="1" column="1" severity="error" message="An error occurred during processing; checking has been aborted. The error message was: $stackPtr is not a class member var" source="unknownSniff"/>
</file>
</checkstyle>
关于这里发生了什么的任何提示? PEAR 的错误报告中提到了类似的东西,但它看起来像是在 2009 年修复的。我正在运行最新版本的 PHPCS,所以不知道该怎么想。
【问题讨论】:
-
能否把代码贴在 UserActivation.class.php 中?
-
同意的 php 错误通常含糊不清,可能有多种含义。介意发布实际文件吗?
标签: php codesniffer