diff --git a/src/Pointers/Pointer.php b/src/Pointers/Pointer.php index 401e96d..0aac41d 100644 --- a/src/Pointers/Pointer.php +++ b/src/Pointers/Pointer.php @@ -114,7 +114,7 @@ class Pointer implements Stringable } return (($firstNest = array_search('-', $this->referenceTokens)) !== false) - && array_slice($this->referenceTokens, 0, $firstNest) == array_slice($tree->original(), 0, $firstNest); + && array_slice($this->referenceTokens, 0, $firstNest) === array_slice($tree->original(), 0, $firstNest); } /**