Leverage strict comparison

This commit is contained in:
Andrea Marco Sartori 2022-12-21 19:28:54 +10:00
parent 1f34de5e2b
commit e2a28ba93d

View File

@ -114,7 +114,7 @@ class Pointer implements Stringable
} }
return (($firstNest = array_search('-', $this->referenceTokens)) !== false) 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);
} }
/** /**