We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 95858fb commit 1ac927fCopy full SHA for 1ac927f
src/Utils/Formatter.php
@@ -454,7 +454,7 @@ public function formatList($list)
454
// Checking if this clause ended.
455
$isClause = static::isClause($curr);
456
457
- if ($isClause) {
+ if ($isClause !== false) {
458
if (
459
($isClause === 2 || $this->options['clause_newline'])
460
&& empty(self::$SHORT_CLAUSES[$lastClause])
@@ -766,7 +766,8 @@ public static function getGroupLength($list)
766
*
767
* @param Token $token the token to be checked
768
769
- * @return int|bool
+ * @return int|false
770
+ * @psalm-return 1|2|false
771
*/
772
public static function isClause($token)
773
{
0 commit comments