Move pointer

This commit is contained in:
Andrea Marco Sartori 2022-09-19 00:32:43 +02:00
parent bccb085814
commit ff2d11d7da
3 changed files with 5 additions and 3 deletions

View File

@ -4,6 +4,7 @@ namespace Cerbero\JsonParser;
use Cerbero\JsonParser\Decoders\ArrayDecoder;
use Cerbero\JsonParser\Decoders\Decoder;
use Cerbero\JsonParser\Pointers\Pointer;
use Closure;
/**
@ -36,9 +37,9 @@ class Config
/**
* The callback to run during a parsing error.
*
* @var Closure|null
* @var Closure
*/
public ?Closure $onError = null;
public Closure $onError;
/**
* Instantiate the class

View File

@ -4,6 +4,7 @@ namespace Cerbero\JsonParser;
use Cerbero\JsonParser\Decoders\Decoder;
use Cerbero\JsonParser\Decoders\ObjectDecoder;
use Cerbero\JsonParser\Pointers\Pointer;
use Cerbero\JsonParser\Sources\Source;
use IteratorAggregate;
use Traversable;

View File

@ -1,6 +1,6 @@
<?php
namespace Cerbero\JsonParser;
namespace Cerbero\JsonParser\Pointers;
use Stringable;