Skip to content

Commit 1596216

Browse files
committed
Merge pull request #39 from rr-/double_colon_class
Fixed problem with PHP5.5 ::class syntax
2 parents 6d26d8a + 7173f67 commit 1596216

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/PHPCheckstyle/PHPCheckstyle.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2202,6 +2202,11 @@ private function _processInterfaceStatement() {
22022202
* Process a class declaration statement.
22032203
*/
22042204
private function _processClassStatement() {
2205+
$isAfterScopeResolutionOperator = $this->tokenizer->checkPreviousToken(T_DOUBLE_COLON);
2206+
if ($isAfterScopeResolutionOperator) {
2207+
return;
2208+
}
2209+
22052210
// Check PHPDoc presence
22062211
$this->_checkDocExists(T_CLASS);
22072212

0 commit comments

Comments
 (0)