Skip to content

Commit

Permalink
Merge pull request #14 from ergebnis/fix/unused
Browse files Browse the repository at this point in the history
Fix: Remove unused variable
  • Loading branch information
localheinz authored Jan 29, 2022
2 parents 57677b0 + d0dec82 commit 0d0b4c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/JsonPointer.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ private function __construct(ReferenceToken ...$referenceTokens)
*/
public static function fromJsonString(string $value): self
{
if (1 !== \preg_match('/^(\/(?P<referenceToken>((?P<unescaped>[\x00-\x2E]|[\x30-\x7D]|[\x7F-\x{10FFFF}])|(?P<escaped>~[01]))*))*$/u', $value, $matches)) {
if (1 !== \preg_match('/^(\/(?P<referenceToken>((?P<unescaped>[\x00-\x2E]|[\x30-\x7D]|[\x7F-\x{10FFFF}])|(?P<escaped>~[01]))*))*$/u', $value)) {
throw Exception\InvalidJsonPointer::fromJsonString($value);
}

Expand Down

0 comments on commit 0d0b4c2

Please sign in to comment.