Skip to content

Commit b010e8d

Browse files
author
Kirill Nesmeyanov
committed
Allow negative offset/limit for Name::slice() method
1 parent 5e3f654 commit b010e8d

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/Node/Name.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,10 +105,6 @@ public function isBuiltin(): bool
105105
return $this->isSimple() && $first->isBuiltin();
106106
}
107107

108-
/**
109-
* @param int<0, max> $offset
110-
* @param int<0, max>|null $length
111-
*/
112108
public function slice(int $offset = 0, int $length = null): self
113109
{
114110
return new static(\array_slice($this->parts, $offset, $length));

0 commit comments

Comments
 (0)