Skip to content

Commit cf8bb4d

Browse files
authored
Merge pull request #207 from alexander-schranz/enhancement/php-8-1-issues
Fix some php 8.1 issues
2 parents 6b5db33 + 13ec127 commit cf8bb4d

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/PHPCR/Util/CND/Scanner/TokenQueue.php

+1
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ public function next()
6565
return next($this->tokens);
6666
}
6767

68+
#[\ReturnTypeWillChange]
6869
public function getIterator()
6970
{
7071
return new \ArrayIterator($this->tokens);

src/PHPCR/Util/NodeHelper.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public static function createPath(SessionInterface $session, $path)
5353
{
5454
$current = $session->getRootNode();
5555

56-
$segments = preg_split('#/#', $path, null, PREG_SPLIT_NO_EMPTY);
56+
$segments = preg_split('#/#', $path, -1, PREG_SPLIT_NO_EMPTY);
5757
foreach ($segments as $segment) {
5858
if ($current->hasNode($segment)) {
5959
$current = $current->getNode($segment);

0 commit comments

Comments
 (0)