diff --git a/dictionaries/CallMap.php b/dictionaries/CallMap.php index 9549b6b53..23c454b35 100644 --- a/dictionaries/CallMap.php +++ b/dictionaries/CallMap.php @@ -2,7 +2,7 @@ namespace Phan\Language\Internal; /** - * CURRENT PHP TARGET VERSION: 8.2 + * CURRENT PHP TARGET VERSION: 8.3 * The version above has to match Psalm\Internal\Codebase\InternalCallMapHandler::PHP_(MAJOR|MINOR)_VERSION * * Format @@ -2951,7 +2951,7 @@ return [ 'gc_enable' => ['void'], 'gc_enabled' => ['bool'], 'gc_mem_caches' => ['int'], -'gc_status' => ['array{runs:int,collected:int,threshold:int,roots:int}'], +'gc_status' => ['array{runs:int,collected:int,threshold:int,roots:int,running:bool,protected:bool,full:bool,buffer_size:int}'], 'gd_info' => ['array'], 'gearman_bugreport' => [''], 'gearman_client_add_options' => ['', 'client_object'=>'', 'option'=>''], @@ -6162,6 +6162,7 @@ return [ 'json_encode' => ['non-empty-string|false', 'value'=>'mixed', 'flags='=>'int', 'depth='=>'int'], 'json_last_error' => ['int'], 'json_last_error_msg' => ['string'], +'json_validate' => ['bool', 'json'=>'string', 'depth='=>'positive-int', 'flags='=>'int'], 'JsonException::__clone' => ['void'], 'JsonException::__construct' => ['void'], 'JsonException::__toString' => ['string'], diff --git a/dictionaries/CallMap_83_delta.php b/dictionaries/CallMap_83_delta.php new file mode 100644 index 000000000..2d27020dd --- /dev/null +++ b/dictionaries/CallMap_83_delta.php @@ -0,0 +1,32 @@ + [ + 'json_validate' => ['bool', 'json'=>'string', 'depth='=>'positive-int', 'flags='=>'int'], + ], + + 'changed' => [ + 'gc_status' => [ + 'old' => ['array{runs:int,collected:int,threshold:int,roots:int}'], + 'new' => ['array{runs:int,collected:int,threshold:int,roots:int,running:bool,protected:bool,full:bool,buffer_size:int}'], + ], + ], + + 'removed' => [ + ], +]; diff --git a/src/Psalm/Internal/Codebase/InternalCallMapHandler.php b/src/Psalm/Internal/Codebase/InternalCallMapHandler.php index f25840dc1..f0cf35261 100644 --- a/src/Psalm/Internal/Codebase/InternalCallMapHandler.php +++ b/src/Psalm/Internal/Codebase/InternalCallMapHandler.php @@ -36,7 +36,7 @@ use function version_compare; class InternalCallMapHandler { private const PHP_MAJOR_VERSION = 8; - private const PHP_MINOR_VERSION = 2; + private const PHP_MINOR_VERSION = 3; private const LOWEST_AVAILABLE_DELTA = 71; private static ?int $loaded_php_major_version = null;