mirror of
https://github.com/phabelio/PHP-Parser.git
synced 2024-11-26 20:14:46 +01:00
[CS] Space before casting
This commit is contained in:
parent
e6e52abae7
commit
e0a2043089
@ -153,7 +153,7 @@ class Lexer
|
||||
$nextFilePos = strpos($this->code, $tokenValue, $filePos);
|
||||
$this->handleInvalidCharacterRange(
|
||||
$filePos, $nextFilePos, $line, $errorHandler);
|
||||
$filePos = (int)$nextFilePos;
|
||||
$filePos = (int) $nextFilePos;
|
||||
}
|
||||
|
||||
$filePos += $tokenLen;
|
||||
|
@ -445,9 +445,9 @@ EOC;
|
||||
$classStmt = $stmts[0];
|
||||
$methodStmt = $classStmt->stmts[0]->stmts[0];
|
||||
|
||||
$this->assertSame('SELF', (string)$methodStmt->stmts[0]->expr->class);
|
||||
$this->assertSame('PARENT', (string)$methodStmt->stmts[1]->expr->class);
|
||||
$this->assertSame('STATIC', (string)$methodStmt->stmts[2]->expr->class);
|
||||
$this->assertSame('SELF', (string) $methodStmt->stmts[0]->expr->class);
|
||||
$this->assertSame('PARENT', (string) $methodStmt->stmts[1]->expr->class);
|
||||
$this->assertSame('STATIC', (string) $methodStmt->stmts[2]->expr->class);
|
||||
}
|
||||
|
||||
public function testAddOriginalNames() {
|
||||
|
Loading…
Reference in New Issue
Block a user