Skip to content

Commit 7173f67

Browse files
author
Marcin Kurczewski
committed
Fixed problem with PHP5.5 ::class syntax
1 parent 7935d22 commit 7173f67

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)