mirror of
https://github.com/cerbero90/json-parser.git
synced 2025-01-17 21:18:41 +01:00
Leverage strict comparison
This commit is contained in:
parent
1f34de5e2b
commit
e2a28ba93d
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user