mirror of
https://github.com/cerbero90/json-parser.git
synced 2025-01-17 21:18:41 +01:00
Make the error callback callable
This commit is contained in:
parent
4e33e5d247
commit
d2b8a8f6be
@ -6,7 +6,6 @@ use Cerbero\JsonParser\Decoders\ArrayDecoder;
|
||||
use Cerbero\JsonParser\Decoders\DecodedValue;
|
||||
use Cerbero\JsonParser\Decoders\Decoder;
|
||||
use Cerbero\JsonParser\Pointers\Pointer;
|
||||
use Closure;
|
||||
|
||||
/**
|
||||
* The configuration.
|
||||
@ -38,9 +37,9 @@ class Config
|
||||
/**
|
||||
* The callback to run during a parsing error.
|
||||
*
|
||||
* @var Closure
|
||||
* @var callable
|
||||
*/
|
||||
public Closure $onError;
|
||||
public callable $onError;
|
||||
|
||||
/**
|
||||
* Instantiate the class
|
||||
|
Loading…
x
Reference in New Issue
Block a user