summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Utils/Formatter.php9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/Utils/Formatter.php b/src/Utils/Formatter.php
index 865393b..7c138de 100644
--- a/src/Utils/Formatter.php
+++ b/src/Utils/Formatter.php
@@ -322,7 +322,7 @@ class Formatter
/**
* Previously parsed token.
*
- * @var Token
+ * @var Token|null
*/
$prev = null;
@@ -349,12 +349,9 @@ class Formatter
}
// Checking if pointers were initialized.
- /**
- * Previous Token.
- *
- * @var Token $prev
- */
if ($prev !== null) {
+ /** @var Token $prev */
+
// Checking if a new clause started.
if (static::isClause($prev) !== false) {
$lastClause = $prev->value;