Skip to content

Commit 61f46fc

Browse files
committed
Cleanup
1 parent 7c237fb commit 61f46fc

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

lib/PhpParser/ParserAbstract.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1229,12 +1229,15 @@ private function isSimpleExit(array $args): bool {
12291229
return false;
12301230
}
12311231

1232-
protected function isMultiline(array $attributes): bool {
1233-
if (!isset($attributes['startLine']) || !isset($attributes['endLine'])) {
1232+
/**
1233+
* @param array{startLine?:int, endLine?: int} $attrs
1234+
*/
1235+
protected function isMultiline(array $attrs): bool {
1236+
if (!isset($attrs['startLine']) || !isset($attrs['endLine'])) {
12341237
return false;
12351238
}
12361239

1237-
return $attributes['startLine'] !== $attributes['endLine'];
1240+
return $attrs['startLine'] !== $attrs['endLine'];
12381241
}
12391242

12401243
/**

0 commit comments

Comments
 (0)