From fb8c0eb14b3fdf8a6d07d398c2dbbe2f73efcee0 Mon Sep 17 00:00:00 2001 From: Markus Staab Date: Thu, 14 Nov 2024 15:54:16 +0100 Subject: [PATCH 1/2] Re-record --- .phpstan-dba-mysqli.cache | 531 +------ .phpstan-dba-pdo-mysql.cache | 55 +- .../config/.phpunit-phpstan-dba-mysqli.cache | 489 ------ .../.phpunit-phpstan-dba-pdo-mysql.cache | 489 ------ .../config/.phpunit-phpstan-dba-mysqli.cache | 1385 +---------------- .../.phpunit-phpstan-dba-pdo-mysql.cache | 1385 +---------------- .../config/.phpunit-phpstan-dba-mysqli.cache | 1160 +++++++++++--- .../.phpunit-phpstan-dba-pdo-mysql.cache | 1160 +++++++++++--- 8 files changed, 2075 insertions(+), 4579 deletions(-) diff --git a/.phpstan-dba-mysqli.cache b/.phpstan-dba-mysqli.cache index 3e51ab96a..b2017766d 100644 --- a/.phpstan-dba-mysqli.cache +++ b/.phpstan-dba-mysqli.cache @@ -1,211 +1,8 @@ 'v12-new-major', - 'schemaHash' => 'f94fe2b38e193ad685009d3f4942f476', + 'schemaHash' => '6132e9e3b6fb27d2953badea4154109f', 'records' => array ( - 'SELECT - coalesce(COLUMN_NAME, \'\') as COLUMN_NAME, - coalesce(EXTRA, \'\') as EXTRA, - COLUMN_TYPE - FROM information_schema.columns - WHERE table_name = \'1970-01-01\' AND table_schema = DATABASE()' => - array ( - 'result' => - array ( - 5 => - \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( - 'itemType' => - \PHPStan\Type\StringType::__set_state(array( - )), - 'keyType' => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 0, - )), - 1 => - \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 1, - )), - 2 => - \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 2, - )), - 3 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'COLUMN_NAME', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'COLUMN_NAME', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'COLUMN_NAME', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - )), - )), - 4 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'COLUMN_TYPE', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'COLUMN_TYPE', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'COLUMN_TYPE', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - )), - )), - 5 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'EXTRA', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'EXTRA', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'EXTRA', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - )), - )), - ), - 'normalized' => false, - 'sortedTypes' => true, - 'cachedDescriptions' => - array ( - 2 => '0|1|2|\'COLUMN_NAME\'|\'COLUMN_TYPE\'|\'EXTRA\'', - ), - )), - 'keyTypes' => - array ( - 0 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'COLUMN_NAME', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'COLUMN_NAME', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'COLUMN_NAME', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - )), - )), - 1 => - \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 0, - )), - 2 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'EXTRA', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'EXTRA', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'EXTRA', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - )), - )), - 3 => - \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 1, - )), - 4 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'COLUMN_TYPE', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'COLUMN_TYPE', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'COLUMN_TYPE', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - )), - )), - 5 => - \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 2, - )), - ), - 'valueTypes' => - array ( - 0 => - \PHPStan\Type\StringType::__set_state(array( - )), - 1 => - \PHPStan\Type\StringType::__set_state(array( - )), - 2 => - \PHPStan\Type\StringType::__set_state(array( - )), - 3 => - \PHPStan\Type\StringType::__set_state(array( - )), - 4 => - \PHPStan\Type\StringType::__set_state(array( - )), - 5 => - \PHPStan\Type\StringType::__set_state(array( - )), - ), - 'optionalKeys' => - array ( - ), - 'isList' => - \PHPStan\TrinaryLogic::__set_state(array( - 'value' => -1, - )), - 'allArrays' => NULL, - 'nextAutoIndexes' => - array ( - 0 => 3, - ), - )), - ), - ), 'SELECT MD5( GROUP_CONCAT( @@ -242,7 +39,9 @@ \PHPStan\Type\StringType::__set_state(array( )), 1 => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), 2 => \PHPStan\Type\NullType::__set_state(array( @@ -327,9 +126,10 @@ )), ), 'normalized' => true, - 'sortedTypes' => false, + 'sortedTypes' => true, 'cachedDescriptions' => array ( + 2 => 'string|null', ), )), 1 => @@ -344,16 +144,22 @@ )), ), 'normalized' => true, - 'sortedTypes' => false, + 'sortedTypes' => true, 'cachedDescriptions' => array ( + 3 => 'string|null', + 2 => 'string|null', ), )), 2 => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), 3 => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), ), 'optionalKeys' => @@ -369,313 +175,6 @@ 0 => 2, ), )), - 3 => - \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( - 'itemType' => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\StringType::__set_state(array( - )), - 1 => - \PHPStan\Type\IntegerType::__set_state(array( - )), - 2 => - \PHPStan\Type\NullType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), - )), - 'keyType' => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'dbsignature', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - 1 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'grouper', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - ), - 'normalized' => false, - 'sortedTypes' => true, - 'cachedDescriptions' => - array ( - 2 => '\'dbsignature\'|\'grouper\'', - ), - )), - 'keyTypes' => - array ( - 0 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'dbsignature', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - 1 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'grouper', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - ), - 'valueTypes' => - array ( - 0 => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\StringType::__set_state(array( - )), - 1 => - \PHPStan\Type\NullType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), - )), - 1 => - \PHPStan\Type\IntegerType::__set_state(array( - )), - ), - 'optionalKeys' => - array ( - ), - 'isList' => - \PHPStan\TrinaryLogic::__set_state(array( - 'value' => -1, - )), - 'allArrays' => NULL, - 'nextAutoIndexes' => - array ( - 0 => 0, - ), - )), - ), - ), - 'SELECT column_name, column_default, is_nullable - FROM information_schema.columns - WHERE table_name = \'1970-01-01\'' => - array ( - 'result' => - array ( - 5 => - \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( - 'itemType' => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\StringType::__set_state(array( - )), - 1 => - \PHPStan\Type\NullType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), - )), - 'keyType' => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 0, - )), - 1 => - \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 1, - )), - 2 => - \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 2, - )), - 3 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'COLUMN_DEFAULT', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'COLUMN_DEFAULT', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - )), - 4 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'COLUMN_NAME', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'COLUMN_NAME', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - )), - 5 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'IS_NULLABLE', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'IS_NULLABLE', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - )), - ), - 'normalized' => false, - 'sortedTypes' => true, - 'cachedDescriptions' => - array ( - 2 => '0|1|2|\'COLUMN_DEFAULT\'|\'COLUMN_NAME\'|\'IS_NULLABLE\'', - ), - )), - 'keyTypes' => - array ( - 0 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'COLUMN_NAME', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'COLUMN_NAME', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - )), - 1 => - \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 0, - )), - 2 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'COLUMN_DEFAULT', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'COLUMN_DEFAULT', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - )), - 3 => - \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 1, - )), - 4 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'IS_NULLABLE', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'IS_NULLABLE', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - )), - 5 => - \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 2, - )), - ), - 'valueTypes' => - array ( - 0 => - \PHPStan\Type\StringType::__set_state(array( - )), - 1 => - \PHPStan\Type\StringType::__set_state(array( - )), - 2 => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\StringType::__set_state(array( - )), - 1 => - \PHPStan\Type\NullType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), - )), - 3 => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\StringType::__set_state(array( - )), - 1 => - \PHPStan\Type\NullType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), - )), - 4 => - \PHPStan\Type\StringType::__set_state(array( - )), - 5 => - \PHPStan\Type\StringType::__set_state(array( - )), - ), - 'optionalKeys' => - array ( - ), - 'isList' => - \PHPStan\TrinaryLogic::__set_state(array( - 'value' => -1, - )), - 'allArrays' => NULL, - 'nextAutoIndexes' => - array ( - 0 => 3, - ), - )), ), ), ), diff --git a/.phpstan-dba-pdo-mysql.cache b/.phpstan-dba-pdo-mysql.cache index 28acabdc3..24cc16d69 100644 --- a/.phpstan-dba-pdo-mysql.cache +++ b/.phpstan-dba-pdo-mysql.cache @@ -1,6 +1,6 @@ 'v12-new-major', - 'schemaHash' => NULL, + 'schemaHash' => '6132e9e3b6fb27d2953badea4154109f', 'records' => array ( 'SELECT @@ -242,7 +242,9 @@ \PHPStan\Type\StringType::__set_state(array( )), 1 => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), 2 => \PHPStan\Type\NullType::__set_state(array( @@ -327,9 +329,10 @@ )), ), 'normalized' => true, - 'sortedTypes' => false, + 'sortedTypes' => true, 'cachedDescriptions' => array ( + 2 => 'string|null', ), )), 1 => @@ -344,16 +347,22 @@ )), ), 'normalized' => true, - 'sortedTypes' => false, + 'sortedTypes' => true, 'cachedDescriptions' => array ( + 3 => 'string|null', + 2 => 'string|null', ), )), 2 => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), 3 => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), ), 'optionalKeys' => @@ -379,7 +388,9 @@ \PHPStan\Type\StringType::__set_state(array( )), 1 => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), 2 => \PHPStan\Type\NullType::__set_state(array( @@ -454,7 +465,9 @@ ), )), 1 => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), ), 'optionalKeys' => @@ -515,12 +528,12 @@ )), 3 => \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'COLUMN_DEFAULT', + 'value' => 'column_default', 'isClassString' => false, 'objectType' => NULL, 'arrayKeyType' => \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'COLUMN_DEFAULT', + 'value' => 'column_default', 'isClassString' => false, 'objectType' => NULL, 'arrayKeyType' => NULL, @@ -528,12 +541,12 @@ )), 4 => \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'COLUMN_NAME', + 'value' => 'column_name', 'isClassString' => false, 'objectType' => NULL, 'arrayKeyType' => \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'COLUMN_NAME', + 'value' => 'column_name', 'isClassString' => false, 'objectType' => NULL, 'arrayKeyType' => NULL, @@ -541,12 +554,12 @@ )), 5 => \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'IS_NULLABLE', + 'value' => 'is_nullable', 'isClassString' => false, 'objectType' => NULL, 'arrayKeyType' => \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'IS_NULLABLE', + 'value' => 'is_nullable', 'isClassString' => false, 'objectType' => NULL, 'arrayKeyType' => NULL, @@ -557,19 +570,19 @@ 'sortedTypes' => true, 'cachedDescriptions' => array ( - 2 => '0|1|2|\'COLUMN_DEFAULT\'|\'COLUMN_NAME\'|\'IS_NULLABLE\'', + 2 => '0|1|2|\'column_default\'|\'column_name\'|\'is_nullable\'', ), )), 'keyTypes' => array ( 0 => \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'COLUMN_NAME', + 'value' => 'column_name', 'isClassString' => false, 'objectType' => NULL, 'arrayKeyType' => \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'COLUMN_NAME', + 'value' => 'column_name', 'isClassString' => false, 'objectType' => NULL, 'arrayKeyType' => NULL, @@ -581,12 +594,12 @@ )), 2 => \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'COLUMN_DEFAULT', + 'value' => 'column_default', 'isClassString' => false, 'objectType' => NULL, 'arrayKeyType' => \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'COLUMN_DEFAULT', + 'value' => 'column_default', 'isClassString' => false, 'objectType' => NULL, 'arrayKeyType' => NULL, @@ -598,12 +611,12 @@ )), 4 => \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'IS_NULLABLE', + 'value' => 'is_nullable', 'isClassString' => false, 'objectType' => NULL, 'arrayKeyType' => \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'IS_NULLABLE', + 'value' => 'is_nullable', 'isClassString' => false, 'objectType' => NULL, 'arrayKeyType' => NULL, diff --git a/tests/default/config/.phpunit-phpstan-dba-mysqli.cache b/tests/default/config/.phpunit-phpstan-dba-mysqli.cache index a8e1c91b4..65bee927e 100644 --- a/tests/default/config/.phpunit-phpstan-dba-mysqli.cache +++ b/tests/default/config/.phpunit-phpstan-dba-mysqli.cache @@ -4472,100 +4472,6 @@ FROM ada' => )), ), ), - 'SELECT adaid, email FROM ada' => - array ( - 'result' => - array ( - 3 => - \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( - 'itemType' => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 1 => - \PHPStan\Type\StringType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), - )), - 'keyType' => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - 1 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - ), - 'normalized' => false, - 'sortedTypes' => true, - 'cachedDescriptions' => - array ( - 2 => '\'adaid\'|\'email\'', - ), - )), - 'keyTypes' => - array ( - 0 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - 1 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - ), - 'valueTypes' => - array ( - 0 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 1 => - \PHPStan\Type\StringType::__set_state(array( - )), - ), - 'optionalKeys' => - array ( - ), - 'isList' => - \PHPStan\TrinaryLogic::__set_state(array( - 'value' => -1, - )), - 'allArrays' => NULL, - 'nextAutoIndexes' => - array ( - 0 => 0, - ), - )), - ), - ), 'SELECT akid FROM ak WHERE eadavk>1.0' => array ( 'result' => @@ -4718,99 +4624,6 @@ FROM ada' => )), ), ), - 'SELECT c_datetime FROM typemix' => - array ( - 'result' => - array ( - 3 => - \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( - 'itemType' => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\ObjectType::__set_state(array( - 'className' => 'DateTimeImmutable', - 'classReflection' => NULL, - 'subtractedType' => NULL, - 'cachedParent' => NULL, - 'cachedInterfaces' => NULL, - 'currentAncestors' => - array ( - ), - 'cachedDescription' => NULL, - )), - 1 => - \PHPStan\Type\NullType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), - )), - 'keyType' => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'c_datetime', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - 'keyTypes' => - array ( - 0 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'c_datetime', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - ), - 'valueTypes' => - array ( - 0 => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\ObjectType::__set_state(array( - 'className' => 'DateTimeImmutable', - 'classReflection' => NULL, - 'subtractedType' => NULL, - 'cachedParent' => NULL, - 'cachedInterfaces' => NULL, - 'currentAncestors' => - array ( - ), - 'cachedDescription' => NULL, - )), - 1 => - \PHPStan\Type\NullType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), - )), - ), - 'optionalKeys' => - array ( - ), - 'isList' => - \PHPStan\TrinaryLogic::__set_state(array( - 'value' => -1, - )), - 'allArrays' => NULL, - 'nextAutoIndexes' => - array ( - 0 => 0, - ), - )), - ), - ), 'SELECT count(*) FROM typemix WHERE c_date = \'1970-01-01\'' => array ( 'result' => @@ -5208,47 +5021,6 @@ FROM ada' => 0 => 1, ), )), - 3 => - \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( - 'itemType' => - \PHPStan\Type\StringType::__set_state(array( - )), - 'keyType' => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - 'keyTypes' => - array ( - 0 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - ), - 'valueTypes' => - array ( - 0 => - \PHPStan\Type\StringType::__set_state(array( - )), - ), - 'optionalKeys' => - array ( - ), - 'isList' => - \PHPStan\TrinaryLogic::__set_state(array( - 'value' => -1, - )), - 'allArrays' => NULL, - 'nextAutoIndexes' => - array ( - 0 => 0, - ), - )), ), ), 'SELECT email adaid WHERE gesperrt freigabe1u1 FROM ada' => @@ -5375,94 +5147,6 @@ FROM ada' => 0 => 2, ), )), - 3 => - \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( - 'itemType' => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\StringType::__set_state(array( - )), - 1 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), - )), - 'keyType' => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - 1 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - ), - 'normalized' => false, - 'sortedTypes' => true, - 'cachedDescriptions' => - array ( - 2 => '\'adaid\'|\'email\'', - ), - )), - 'keyTypes' => - array ( - 0 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - 1 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - ), - 'valueTypes' => - array ( - 0 => - \PHPStan\Type\StringType::__set_state(array( - )), - 1 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - ), - 'optionalKeys' => - array ( - ), - 'isList' => - \PHPStan\TrinaryLogic::__set_state(array( - 'value' => -1, - )), - 'allArrays' => NULL, - 'nextAutoIndexes' => - array ( - 0 => 0, - ), - )), ), ), 'SELECT email, adaid FROM ada LIMIT 1' => @@ -7677,100 +7361,6 @@ FROM ada' => )), ), ), - 'SELECT email, adaid FROM ada where adaid = \'1\'' => - array ( - 'result' => - array ( - 3 => - \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( - 'itemType' => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\StringType::__set_state(array( - )), - 1 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), - )), - 'keyType' => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - 1 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - ), - 'normalized' => false, - 'sortedTypes' => true, - 'cachedDescriptions' => - array ( - 2 => '\'adaid\'|\'email\'', - ), - )), - 'keyTypes' => - array ( - 0 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - 1 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - ), - 'valueTypes' => - array ( - 0 => - \PHPStan\Type\StringType::__set_state(array( - )), - 1 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - ), - 'optionalKeys' => - array ( - ), - 'isList' => - \PHPStan\TrinaryLogic::__set_state(array( - 'value' => -1, - )), - 'allArrays' => NULL, - 'nextAutoIndexes' => - array ( - 0 => 0, - ), - )), - ), - ), 'SELECT email, adaid, "xy" as b FROM ada WHERE adaid = \'1970-01-01\'' => array ( 'result' => @@ -8135,85 +7725,6 @@ FROM ada' => )), ), ), - 'SELECT max(adaid) FROM ada' => - array ( - 'result' => - array ( - 3 => - \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( - 'itemType' => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 1 => - \PHPStan\Type\NullType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), - )), - 'keyType' => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'max(adaid)', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - 'keyTypes' => - array ( - 0 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'max(adaid)', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - ), - 'valueTypes' => - array ( - 0 => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 1 => - \PHPStan\Type\NullType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), - )), - ), - 'optionalKeys' => - array ( - ), - 'isList' => - \PHPStan\TrinaryLogic::__set_state(array( - 'value' => -1, - )), - 'allArrays' => NULL, - 'nextAutoIndexes' => - array ( - 0 => 0, - ), - )), - ), - ), ), 'runtimeConfig' => array ( diff --git a/tests/default/config/.phpunit-phpstan-dba-pdo-mysql.cache b/tests/default/config/.phpunit-phpstan-dba-pdo-mysql.cache index 816dee886..973f6620a 100644 --- a/tests/default/config/.phpunit-phpstan-dba-pdo-mysql.cache +++ b/tests/default/config/.phpunit-phpstan-dba-pdo-mysql.cache @@ -4472,100 +4472,6 @@ FROM ada' => )), ), ), - 'SELECT adaid, email FROM ada' => - array ( - 'result' => - array ( - 3 => - \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( - 'itemType' => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 1 => - \PHPStan\Type\StringType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), - )), - 'keyType' => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - 1 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - ), - 'normalized' => false, - 'sortedTypes' => true, - 'cachedDescriptions' => - array ( - 2 => '\'adaid\'|\'email\'', - ), - )), - 'keyTypes' => - array ( - 0 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - 1 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - ), - 'valueTypes' => - array ( - 0 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 1 => - \PHPStan\Type\StringType::__set_state(array( - )), - ), - 'optionalKeys' => - array ( - ), - 'isList' => - \PHPStan\TrinaryLogic::__set_state(array( - 'value' => -1, - )), - 'allArrays' => NULL, - 'nextAutoIndexes' => - array ( - 0 => 0, - ), - )), - ), - ), 'SELECT akid FROM ak WHERE eadavk>1.0' => array ( 'result' => @@ -4718,99 +4624,6 @@ FROM ada' => )), ), ), - 'SELECT c_datetime FROM typemix' => - array ( - 'result' => - array ( - 3 => - \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( - 'itemType' => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\ObjectType::__set_state(array( - 'className' => 'DateTimeImmutable', - 'classReflection' => NULL, - 'subtractedType' => NULL, - 'cachedParent' => NULL, - 'cachedInterfaces' => NULL, - 'currentAncestors' => - array ( - ), - 'cachedDescription' => NULL, - )), - 1 => - \PHPStan\Type\NullType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), - )), - 'keyType' => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'c_datetime', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - 'keyTypes' => - array ( - 0 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'c_datetime', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - ), - 'valueTypes' => - array ( - 0 => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\ObjectType::__set_state(array( - 'className' => 'DateTimeImmutable', - 'classReflection' => NULL, - 'subtractedType' => NULL, - 'cachedParent' => NULL, - 'cachedInterfaces' => NULL, - 'currentAncestors' => - array ( - ), - 'cachedDescription' => NULL, - )), - 1 => - \PHPStan\Type\NullType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), - )), - ), - 'optionalKeys' => - array ( - ), - 'isList' => - \PHPStan\TrinaryLogic::__set_state(array( - 'value' => -1, - )), - 'allArrays' => NULL, - 'nextAutoIndexes' => - array ( - 0 => 0, - ), - )), - ), - ), 'SELECT count(*) FROM typemix WHERE c_date = \'1970-01-01\'' => array ( 'result' => @@ -5208,47 +5021,6 @@ FROM ada' => 0 => 1, ), )), - 3 => - \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( - 'itemType' => - \PHPStan\Type\StringType::__set_state(array( - )), - 'keyType' => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - 'keyTypes' => - array ( - 0 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - ), - 'valueTypes' => - array ( - 0 => - \PHPStan\Type\StringType::__set_state(array( - )), - ), - 'optionalKeys' => - array ( - ), - 'isList' => - \PHPStan\TrinaryLogic::__set_state(array( - 'value' => -1, - )), - 'allArrays' => NULL, - 'nextAutoIndexes' => - array ( - 0 => 0, - ), - )), ), ), 'SELECT email adaid WHERE gesperrt freigabe1u1 FROM ada' => @@ -5375,94 +5147,6 @@ FROM ada' => 0 => 2, ), )), - 3 => - \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( - 'itemType' => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\StringType::__set_state(array( - )), - 1 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), - )), - 'keyType' => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - 1 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - ), - 'normalized' => false, - 'sortedTypes' => true, - 'cachedDescriptions' => - array ( - 2 => '\'adaid\'|\'email\'', - ), - )), - 'keyTypes' => - array ( - 0 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - 1 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - ), - 'valueTypes' => - array ( - 0 => - \PHPStan\Type\StringType::__set_state(array( - )), - 1 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - ), - 'optionalKeys' => - array ( - ), - 'isList' => - \PHPStan\TrinaryLogic::__set_state(array( - 'value' => -1, - )), - 'allArrays' => NULL, - 'nextAutoIndexes' => - array ( - 0 => 0, - ), - )), ), ), 'SELECT email, adaid FROM ada LIMIT 1' => @@ -7677,100 +7361,6 @@ FROM ada' => )), ), ), - 'SELECT email, adaid FROM ada where adaid = \'1\'' => - array ( - 'result' => - array ( - 3 => - \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( - 'itemType' => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\StringType::__set_state(array( - )), - 1 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), - )), - 'keyType' => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - 1 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - ), - 'normalized' => false, - 'sortedTypes' => true, - 'cachedDescriptions' => - array ( - 2 => '\'adaid\'|\'email\'', - ), - )), - 'keyTypes' => - array ( - 0 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - 1 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - ), - 'valueTypes' => - array ( - 0 => - \PHPStan\Type\StringType::__set_state(array( - )), - 1 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - ), - 'optionalKeys' => - array ( - ), - 'isList' => - \PHPStan\TrinaryLogic::__set_state(array( - 'value' => -1, - )), - 'allArrays' => NULL, - 'nextAutoIndexes' => - array ( - 0 => 0, - ), - )), - ), - ), 'SELECT email, adaid, "xy" as b FROM ada WHERE adaid = \'1970-01-01\'' => array ( 'result' => @@ -8135,85 +7725,6 @@ FROM ada' => )), ), ), - 'SELECT max(adaid) FROM ada' => - array ( - 'result' => - array ( - 3 => - \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( - 'itemType' => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 1 => - \PHPStan\Type\NullType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), - )), - 'keyType' => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'max(adaid)', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - 'keyTypes' => - array ( - 0 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'max(adaid)', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - ), - 'valueTypes' => - array ( - 0 => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 1 => - \PHPStan\Type\NullType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), - )), - ), - 'optionalKeys' => - array ( - ), - 'isList' => - \PHPStan\TrinaryLogic::__set_state(array( - 'value' => -1, - )), - 'allArrays' => NULL, - 'nextAutoIndexes' => - array ( - 0 => 0, - ), - )), - ), - ), ), 'runtimeConfig' => array ( diff --git a/tests/rules/config/.phpunit-phpstan-dba-mysqli.cache b/tests/rules/config/.phpunit-phpstan-dba-mysqli.cache index 1db9f3ae4..5852e8194 100644 --- a/tests/rules/config/.phpunit-phpstan-dba-mysqli.cache +++ b/tests/rules/config/.phpunit-phpstan-dba-mysqli.cache @@ -11,16 +11,6 @@ 'code' => 1146, )), ), - 'EXPLAIN INSERT INTO `ada` SET email="test" WHERE adaid = 1' => - array ( - 'error' => - \staabm\PHPStanDba\Error::__set_state(array( - 'message' => 'You have an error in your SQL syntax; check the manual that corresponds to your MySQL/MariaDB server version for the right syntax to use near \'WHERE adaid = 1\' at line 1 - -Simulated query: EXPLAIN INSERT INTO `ada` SET email="test" WHERE adaid = 1', - 'code' => 1064, - )), - ), 'EXPLAIN INSERT into adasfd SET email="sdf"' => array ( 'error' => @@ -29,16 +19,6 @@ Simulated query: EXPLAIN INSERT INTO `ada` SET email="test" WHERE adaid = 1', 'code' => 1146, )), ), - 'EXPLAIN REPLACE INTO `ada` SET email="test" WHERE adaid = 1' => - array ( - 'error' => - \staabm\PHPStanDba\Error::__set_state(array( - 'message' => 'You have an error in your SQL syntax; check the manual that corresponds to your MySQL/MariaDB server version for the right syntax to use near \'WHERE adaid = 1\' at line 1 - -Simulated query: EXPLAIN REPLACE INTO `ada` SET email="test" WHERE adaid = 1', - 'code' => 1064, - )), - ), 'EXPLAIN REPLACE into adasfd SET email="sdf"' => array ( 'error' => @@ -91,11 +71,11 @@ Simulated query: SELECT * FROM 1 LIMIT 0', 'code' => 1064, )), ), - 'SELECT * FROM `ada` WHERE adaid = 1' => + 'SELECT * FROM ada' => array ( 'result' => array ( - 5 => + 3 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => \PHPStan\Type\UnionType::__set_state(array( @@ -121,225 +101,27 @@ Simulated query: SELECT * FROM 1 LIMIT 0', 'types' => array ( 0 => - \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 0, - )), - 1 => - \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 1, - )), - 2 => - \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 2, - )), - 3 => - \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 3, - )), - 4 => \PHPStan\Type\Constant\ConstantStringType::__set_state(array( 'value' => 'adaid', 'isClassString' => false, 'objectType' => NULL, 'arrayKeyType' => NULL, )), - 5 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - 6 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'freigabe1u1', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - 7 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - ), - 'normalized' => false, - 'sortedTypes' => true, - 'cachedDescriptions' => - array ( - 2 => '0|1|2|3|\'adaid\'|\'email\'|\'freigabe1u1\'|\'gesperrt\'', - ), - )), - 'keyTypes' => - array ( - 0 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - 1 => - \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 0, - )), - 2 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - 3 => - \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 1, - )), - 4 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - 5 => - \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 2, - )), - 6 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'freigabe1u1', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - 7 => - \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 3, - )), - ), - 'valueTypes' => - array ( - 0 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 1 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 2 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 3 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 4 => - \PHPStan\Type\StringType::__set_state(array( - )), - 5 => - \PHPStan\Type\StringType::__set_state(array( - )), - 6 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 7 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - ), - 'optionalKeys' => - array ( - ), - 'isList' => - \PHPStan\TrinaryLogic::__set_state(array( - 'value' => -1, - )), - 'allArrays' => NULL, - 'nextAutoIndexes' => - array ( - 0 => 4, - ), - )), - ), - ), - 'SELECT * FROM `ada` WHERE email = \'test@example.com\';' => - array ( - 'result' => - array ( - 5 => - \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( - 'itemType' => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 1 => - \PHPStan\Type\StringType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), - )), - 'keyType' => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 0, - )), 1 => - \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 1, - )), - 2 => - \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 2, - )), - 3 => - \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 3, - )), - 4 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - 5 => \PHPStan\Type\Constant\ConstantStringType::__set_state(array( 'value' => 'email', 'isClassString' => false, 'objectType' => NULL, 'arrayKeyType' => NULL, )), - 6 => + 2 => \PHPStan\Type\Constant\ConstantStringType::__set_state(array( 'value' => 'freigabe1u1', 'isClassString' => false, 'objectType' => NULL, 'arrayKeyType' => NULL, )), - 7 => + 3 => \PHPStan\Type\Constant\ConstantStringType::__set_state(array( 'value' => 'gesperrt', 'isClassString' => false, @@ -351,7 +133,7 @@ Simulated query: SELECT * FROM 1 LIMIT 0', 'sortedTypes' => true, 'cachedDescriptions' => array ( - 2 => '0|1|2|3|\'adaid\'|\'email\'|\'freigabe1u1\'|\'gesperrt\'', + 2 => '\'adaid\'|\'email\'|\'freigabe1u1\'|\'gesperrt\'', ), )), 'keyTypes' => @@ -364,926 +146,26 @@ Simulated query: SELECT * FROM 1 LIMIT 0', 'arrayKeyType' => NULL, )), 1 => - \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 0, - )), - 2 => \PHPStan\Type\Constant\ConstantStringType::__set_state(array( 'value' => 'gesperrt', 'isClassString' => false, 'objectType' => NULL, 'arrayKeyType' => NULL, )), - 3 => - \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 1, - )), - 4 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - 5 => - \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 2, - )), - 6 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'freigabe1u1', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - 7 => - \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 3, - )), - ), - 'valueTypes' => - array ( - 0 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 1 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 2 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 3 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 4 => - \PHPStan\Type\StringType::__set_state(array( - )), - 5 => - \PHPStan\Type\StringType::__set_state(array( - )), - 6 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 7 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - ), - 'optionalKeys' => - array ( - ), - 'isList' => - \PHPStan\TrinaryLogic::__set_state(array( - 'value' => -1, - )), - 'allArrays' => NULL, - 'nextAutoIndexes' => - array ( - 0 => 4, - ), - )), - ), - ), - 'SELECT * FROM ada' => - array ( - 'result' => - array ( - 3 => - \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( - 'itemType' => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 1 => - \PHPStan\Type\StringType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), - )), - 'keyType' => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - 1 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - 2 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'freigabe1u1', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - 3 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - ), - 'normalized' => false, - 'sortedTypes' => true, - 'cachedDescriptions' => - array ( - 2 => '\'adaid\'|\'email\'|\'freigabe1u1\'|\'gesperrt\'', - ), - )), - 'keyTypes' => - array ( - 0 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - 1 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - 2 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - 3 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'freigabe1u1', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - ), - 'valueTypes' => - array ( - 0 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 1 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 2 => - \PHPStan\Type\StringType::__set_state(array( - )), - 3 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - ), - 'optionalKeys' => - array ( - ), - 'isList' => - \PHPStan\TrinaryLogic::__set_state(array( - 'value' => -1, - )), - 'allArrays' => NULL, - 'nextAutoIndexes' => - array ( - 0 => 0, - ), - )), - ), - ), - 'SELECT * FROM ada GROUP BY doesNotExist' => - array ( - 'error' => - \staabm\PHPStanDba\Error::__set_state(array( - 'message' => 'Unknown column \'doesNotExist\' in \'group statement\'', - 'code' => 1054, - )), - ), - 'SELECT * FROM ada ORDER BY doesNotExist' => - array ( - 'error' => - \staabm\PHPStanDba\Error::__set_state(array( - 'message' => 'Unknown column \'doesNotExist\' in \'order clause\'', - 'code' => 1054, - )), - ), - 'SELECT * FROM ada WHERE adaid = \'1\'' => - array ( - 'result' => - array ( - 5 => - \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( - 'itemType' => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 1 => - \PHPStan\Type\StringType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), - )), - 'keyType' => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 0, - )), - 1 => - \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 1, - )), - 2 => - \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 2, - )), - 3 => - \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 3, - )), - 4 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - 5 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - 6 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'freigabe1u1', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - 7 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - ), - 'normalized' => false, - 'sortedTypes' => true, - 'cachedDescriptions' => - array ( - 2 => '0|1|2|3|\'adaid\'|\'email\'|\'freigabe1u1\'|\'gesperrt\'', - ), - )), - 'keyTypes' => - array ( - 0 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - 1 => - \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 0, - )), - 2 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - 3 => - \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 1, - )), - 4 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - 5 => - \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 2, - )), - 6 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'freigabe1u1', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - 7 => - \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 3, - )), - ), - 'valueTypes' => - array ( - 0 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 1 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 2 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 3 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 4 => - \PHPStan\Type\StringType::__set_state(array( - )), - 5 => - \PHPStan\Type\StringType::__set_state(array( - )), - 6 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 7 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - ), - 'optionalKeys' => - array ( - ), - 'isList' => - \PHPStan\TrinaryLogic::__set_state(array( - 'value' => -1, - )), - 'allArrays' => NULL, - 'nextAutoIndexes' => - array ( - 0 => 4, - ), - )), - ), - ), - 'SELECT * FROM ada WHERE doesNotExist=1' => - array ( - 'error' => - \staabm\PHPStanDba\Error::__set_state(array( - 'message' => 'Unknown column \'doesNotExist\' in \'where clause\'', - 'code' => 1054, - )), - ), - 'SELECT * FROM ada WHERE email = \'1970-01-01\'' => - array ( - 'result' => - array ( - 5 => - \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( - 'itemType' => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 1 => - \PHPStan\Type\StringType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), - )), - 'keyType' => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 0, - )), - 1 => - \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 1, - )), - 2 => - \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 2, - )), - 3 => - \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 3, - )), - 4 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - 5 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - 6 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'freigabe1u1', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - 7 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - ), - 'normalized' => false, - 'sortedTypes' => true, - 'cachedDescriptions' => - array ( - 2 => '0|1|2|3|\'adaid\'|\'email\'|\'freigabe1u1\'|\'gesperrt\'', - ), - )), - 'keyTypes' => - array ( - 0 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - 1 => - \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 0, - )), - 2 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - 3 => - \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 1, - )), - 4 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - 5 => - \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 2, - )), - 6 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'freigabe1u1', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - 7 => - \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 3, - )), - ), - 'valueTypes' => - array ( - 0 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 1 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 2 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 3 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 4 => - \PHPStan\Type\StringType::__set_state(array( - )), - 5 => - \PHPStan\Type\StringType::__set_state(array( - )), - 6 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 7 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - ), - 'optionalKeys' => - array ( - ), - 'isList' => - \PHPStan\TrinaryLogic::__set_state(array( - 'value' => -1, - )), - 'allArrays' => NULL, - 'nextAutoIndexes' => - array ( - 0 => 4, - ), - )), - ), - ), - 'SELECT * FROM ada WHERE email = \'1970-01-01\' LIMIT \'27\' OFFSET \'15\'' => - array ( - 'result' => - array ( - 5 => - \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( - 'itemType' => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 1 => - \PHPStan\Type\StringType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), - )), - 'keyType' => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 0, - )), - 1 => - \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 1, - )), - 2 => - \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 2, - )), - 3 => - \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 3, - )), - 4 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - 5 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - 6 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'freigabe1u1', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - 7 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - ), - 'normalized' => false, - 'sortedTypes' => true, - 'cachedDescriptions' => - array ( - 2 => '0|1|2|3|\'adaid\'|\'email\'|\'freigabe1u1\'|\'gesperrt\'', - ), - )), - 'keyTypes' => - array ( - 0 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - 1 => - \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 0, - )), - 2 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - 3 => - \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 1, - )), - 4 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - 5 => - \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 2, - )), - 6 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'freigabe1u1', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - 7 => - \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 3, - )), - ), - 'valueTypes' => - array ( - 0 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 1 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 2 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 3 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 4 => - \PHPStan\Type\StringType::__set_state(array( - )), - 5 => - \PHPStan\Type\StringType::__set_state(array( - )), - 6 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 7 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - ), - 'optionalKeys' => - array ( - ), - 'isList' => - \PHPStan\TrinaryLogic::__set_state(array( - 'value' => -1, - )), - 'allArrays' => NULL, - 'nextAutoIndexes' => - array ( - 0 => 4, - ), - )), - ), - ), - 'SELECT * FROM ada WHERE email = \'1970-01-01\' LIMIT 5 OFFSET 2' => - array ( - 'result' => - array ( - 5 => - \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( - 'itemType' => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 1 => - \PHPStan\Type\StringType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), - )), - 'keyType' => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 0, - )), - 1 => - \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 1, - )), - 2 => - \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 2, - )), - 3 => - \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 3, - )), - 4 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - 5 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - 6 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'freigabe1u1', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - 7 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - ), - 'normalized' => false, - 'sortedTypes' => true, - 'cachedDescriptions' => - array ( - 2 => '0|1|2|3|\'adaid\'|\'email\'|\'freigabe1u1\'|\'gesperrt\'', - ), - )), - 'keyTypes' => - array ( - 0 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - 1 => - \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 0, - )), - 2 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - 3 => - \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 1, - )), - 4 => + 2 => \PHPStan\Type\Constant\ConstantStringType::__set_state(array( 'value' => 'email', 'isClassString' => false, 'objectType' => NULL, 'arrayKeyType' => NULL, )), - 5 => - \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 2, - )), - 6 => + 3 => \PHPStan\Type\Constant\ConstantStringType::__set_state(array( 'value' => 'freigabe1u1', 'isClassString' => false, 'objectType' => NULL, 'arrayKeyType' => NULL, )), - 7 => - \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 3, - )), ), 'valueTypes' => array ( @@ -1293,32 +175,14 @@ Simulated query: SELECT * FROM 1 LIMIT 0', 'max' => 32767, )), 1 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 2 => \PHPStan\Type\IntegerRangeType::__set_state(array( 'min' => -128, 'max' => 127, )), - 3 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 4 => - \PHPStan\Type\StringType::__set_state(array( - )), - 5 => + 2 => \PHPStan\Type\StringType::__set_state(array( )), - 6 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 7 => + 3 => \PHPStan\Type\IntegerRangeType::__set_state(array( 'min' => -32768, 'max' => 32767, @@ -1334,11 +198,35 @@ Simulated query: SELECT * FROM 1 LIMIT 0', 'allArrays' => NULL, 'nextAutoIndexes' => array ( - 0 => 4, + 0 => 0, ), )), ), ), + 'SELECT * FROM ada GROUP BY doesNotExist' => + array ( + 'error' => + \staabm\PHPStanDba\Error::__set_state(array( + 'message' => 'Unknown column \'doesNotExist\' in \'group statement\'', + 'code' => 1054, + )), + ), + 'SELECT * FROM ada ORDER BY doesNotExist' => + array ( + 'error' => + \staabm\PHPStanDba\Error::__set_state(array( + 'message' => 'Unknown column \'doesNotExist\' in \'order clause\'', + 'code' => 1054, + )), + ), + 'SELECT * FROM ada WHERE doesNotExist=1' => + array ( + 'error' => + \staabm\PHPStanDba\Error::__set_state(array( + 'message' => 'Unknown column \'doesNotExist\' in \'where clause\'', + 'code' => 1054, + )), + ), 'SELECT * FROM ak' => array ( 'result' => @@ -2512,211 +1400,6 @@ Simulated query: SELECT * FROM 1 LIMIT 0', 'code' => 1146, )), ), - 'SELECT *,adaid FROM `ada` WHERE email = \'test@example.com\';' => - array ( - 'result' => - array ( - 5 => - \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( - 'itemType' => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 1 => - \PHPStan\Type\StringType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), - )), - 'keyType' => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 0, - )), - 1 => - \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 1, - )), - 2 => - \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 2, - )), - 3 => - \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 3, - )), - 4 => - \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 4, - )), - 5 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - 6 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - 7 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'freigabe1u1', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - 8 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - ), - 'normalized' => false, - 'sortedTypes' => true, - 'cachedDescriptions' => - array ( - 2 => '0|1|2|3|4|\'adaid\'|\'email\'|\'freigabe1u1\'|\'gesperrt\'', - ), - )), - 'keyTypes' => - array ( - 0 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - 1 => - \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 0, - )), - 2 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - 3 => - \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 1, - )), - 4 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - 5 => - \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 2, - )), - 6 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'freigabe1u1', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - 7 => - \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 3, - )), - 8 => - \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 4, - )), - ), - 'valueTypes' => - array ( - 0 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 1 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 2 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 3 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 4 => - \PHPStan\Type\StringType::__set_state(array( - )), - 5 => - \PHPStan\Type\StringType::__set_state(array( - )), - 6 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 7 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 8 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - ), - 'optionalKeys' => - array ( - ), - 'isList' => - \PHPStan\TrinaryLogic::__set_state(array( - 'value' => -1, - )), - 'allArrays' => NULL, - 'nextAutoIndexes' => - array ( - 0 => 5, - ), - )), - ), - ), - 'SELECT FROM WHERE' => - array ( - 'error' => - \staabm\PHPStanDba\Error::__set_state(array( - 'message' => 'You have an error in your SQL syntax; check the manual that corresponds to your MySQL/MariaDB server version for the right syntax to use near \'FROM WHERE LIMIT 0\' at line 1 - -Simulated query: SELECT FROM WHERE LIMIT 0', - 'code' => 1064, - )), - ), 'SELECT adaid FROM ada WHERE email=\'1970-01-01\'' => array ( 'result' => diff --git a/tests/rules/config/.phpunit-phpstan-dba-pdo-mysql.cache b/tests/rules/config/.phpunit-phpstan-dba-pdo-mysql.cache index e55f91551..a6572e363 100644 --- a/tests/rules/config/.phpunit-phpstan-dba-pdo-mysql.cache +++ b/tests/rules/config/.phpunit-phpstan-dba-pdo-mysql.cache @@ -32,16 +32,6 @@ 'code' => '42S02', )), ), - 'EXPLAIN INSERT INTO `ada` SET email="test" WHERE adaid = 1' => - array ( - 'error' => - \staabm\PHPStanDba\Error::__set_state(array( - 'message' => 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL/MariaDB server version for the right syntax to use near \'WHERE adaid = 1\' at line 1 - -Simulated query: EXPLAIN INSERT INTO `ada` SET email="test" WHERE adaid = 1', - 'code' => '42000', - )), - ), 'EXPLAIN INSERT into adasfd SET email="sdf"' => array ( 'error' => @@ -50,16 +40,6 @@ Simulated query: EXPLAIN INSERT INTO `ada` SET email="test" WHERE adaid = 1', 'code' => '42S02', )), ), - 'EXPLAIN REPLACE INTO `ada` SET email="test" WHERE adaid = 1' => - array ( - 'error' => - \staabm\PHPStanDba\Error::__set_state(array( - 'message' => 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL/MariaDB server version for the right syntax to use near \'WHERE adaid = 1\' at line 1 - -Simulated query: EXPLAIN REPLACE INTO `ada` SET email="test" WHERE adaid = 1', - 'code' => '42000', - )), - ), 'EXPLAIN REPLACE into adasfd SET email="sdf"' => array ( 'error' => @@ -112,11 +92,11 @@ Simulated query: SELECT * FROM 1 LIMIT 0', 'code' => '42000', )), ), - 'SELECT * FROM `ada` WHERE adaid = 1' => + 'SELECT * FROM ada' => array ( 'result' => array ( - 5 => + 3 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => \PHPStan\Type\UnionType::__set_state(array( @@ -142,225 +122,27 @@ Simulated query: SELECT * FROM 1 LIMIT 0', 'types' => array ( 0 => - \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 0, - )), - 1 => - \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 1, - )), - 2 => - \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 2, - )), - 3 => - \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 3, - )), - 4 => \PHPStan\Type\Constant\ConstantStringType::__set_state(array( 'value' => 'adaid', 'isClassString' => false, 'objectType' => NULL, 'arrayKeyType' => NULL, )), - 5 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - 6 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'freigabe1u1', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - 7 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - ), - 'normalized' => false, - 'sortedTypes' => true, - 'cachedDescriptions' => - array ( - 2 => '0|1|2|3|\'adaid\'|\'email\'|\'freigabe1u1\'|\'gesperrt\'', - ), - )), - 'keyTypes' => - array ( - 0 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - 1 => - \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 0, - )), - 2 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - 3 => - \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 1, - )), - 4 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - 5 => - \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 2, - )), - 6 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'freigabe1u1', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - 7 => - \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 3, - )), - ), - 'valueTypes' => - array ( - 0 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 1 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 2 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 3 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 4 => - \PHPStan\Type\StringType::__set_state(array( - )), - 5 => - \PHPStan\Type\StringType::__set_state(array( - )), - 6 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 7 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - ), - 'optionalKeys' => - array ( - ), - 'isList' => - \PHPStan\TrinaryLogic::__set_state(array( - 'value' => -1, - )), - 'allArrays' => NULL, - 'nextAutoIndexes' => - array ( - 0 => 4, - ), - )), - ), - ), - 'SELECT * FROM `ada` WHERE email = \'test@example.com\';' => - array ( - 'result' => - array ( - 5 => - \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( - 'itemType' => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 1 => - \PHPStan\Type\StringType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), - )), - 'keyType' => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 0, - )), 1 => - \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 1, - )), - 2 => - \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 2, - )), - 3 => - \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 3, - )), - 4 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - 5 => \PHPStan\Type\Constant\ConstantStringType::__set_state(array( 'value' => 'email', 'isClassString' => false, 'objectType' => NULL, 'arrayKeyType' => NULL, )), - 6 => + 2 => \PHPStan\Type\Constant\ConstantStringType::__set_state(array( 'value' => 'freigabe1u1', 'isClassString' => false, 'objectType' => NULL, 'arrayKeyType' => NULL, )), - 7 => + 3 => \PHPStan\Type\Constant\ConstantStringType::__set_state(array( 'value' => 'gesperrt', 'isClassString' => false, @@ -372,7 +154,7 @@ Simulated query: SELECT * FROM 1 LIMIT 0', 'sortedTypes' => true, 'cachedDescriptions' => array ( - 2 => '0|1|2|3|\'adaid\'|\'email\'|\'freigabe1u1\'|\'gesperrt\'', + 2 => '\'adaid\'|\'email\'|\'freigabe1u1\'|\'gesperrt\'', ), )), 'keyTypes' => @@ -385,926 +167,26 @@ Simulated query: SELECT * FROM 1 LIMIT 0', 'arrayKeyType' => NULL, )), 1 => - \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 0, - )), - 2 => \PHPStan\Type\Constant\ConstantStringType::__set_state(array( 'value' => 'gesperrt', 'isClassString' => false, 'objectType' => NULL, 'arrayKeyType' => NULL, )), - 3 => - \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 1, - )), - 4 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - 5 => - \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 2, - )), - 6 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'freigabe1u1', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - 7 => - \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 3, - )), - ), - 'valueTypes' => - array ( - 0 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 1 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 2 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 3 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 4 => - \PHPStan\Type\StringType::__set_state(array( - )), - 5 => - \PHPStan\Type\StringType::__set_state(array( - )), - 6 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 7 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - ), - 'optionalKeys' => - array ( - ), - 'isList' => - \PHPStan\TrinaryLogic::__set_state(array( - 'value' => -1, - )), - 'allArrays' => NULL, - 'nextAutoIndexes' => - array ( - 0 => 4, - ), - )), - ), - ), - 'SELECT * FROM ada' => - array ( - 'result' => - array ( - 3 => - \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( - 'itemType' => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 1 => - \PHPStan\Type\StringType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), - )), - 'keyType' => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - 1 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - 2 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'freigabe1u1', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - 3 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - ), - 'normalized' => false, - 'sortedTypes' => true, - 'cachedDescriptions' => - array ( - 2 => '\'adaid\'|\'email\'|\'freigabe1u1\'|\'gesperrt\'', - ), - )), - 'keyTypes' => - array ( - 0 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - 1 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - 2 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - 3 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'freigabe1u1', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - ), - 'valueTypes' => - array ( - 0 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 1 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 2 => - \PHPStan\Type\StringType::__set_state(array( - )), - 3 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - ), - 'optionalKeys' => - array ( - ), - 'isList' => - \PHPStan\TrinaryLogic::__set_state(array( - 'value' => -1, - )), - 'allArrays' => NULL, - 'nextAutoIndexes' => - array ( - 0 => 0, - ), - )), - ), - ), - 'SELECT * FROM ada GROUP BY doesNotExist' => - array ( - 'error' => - \staabm\PHPStanDba\Error::__set_state(array( - 'message' => 'SQLSTATE[42S22]: Column not found: 1054 Unknown column \'doesNotExist\' in \'group statement\'', - 'code' => '42S22', - )), - ), - 'SELECT * FROM ada ORDER BY doesNotExist' => - array ( - 'error' => - \staabm\PHPStanDba\Error::__set_state(array( - 'message' => 'SQLSTATE[42S22]: Column not found: 1054 Unknown column \'doesNotExist\' in \'order clause\'', - 'code' => '42S22', - )), - ), - 'SELECT * FROM ada WHERE adaid = \'1\'' => - array ( - 'result' => - array ( - 5 => - \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( - 'itemType' => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 1 => - \PHPStan\Type\StringType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), - )), - 'keyType' => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 0, - )), - 1 => - \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 1, - )), - 2 => - \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 2, - )), - 3 => - \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 3, - )), - 4 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - 5 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - 6 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'freigabe1u1', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - 7 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - ), - 'normalized' => false, - 'sortedTypes' => true, - 'cachedDescriptions' => - array ( - 2 => '0|1|2|3|\'adaid\'|\'email\'|\'freigabe1u1\'|\'gesperrt\'', - ), - )), - 'keyTypes' => - array ( - 0 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - 1 => - \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 0, - )), - 2 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - 3 => - \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 1, - )), - 4 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - 5 => - \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 2, - )), - 6 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'freigabe1u1', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - 7 => - \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 3, - )), - ), - 'valueTypes' => - array ( - 0 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 1 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 2 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 3 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 4 => - \PHPStan\Type\StringType::__set_state(array( - )), - 5 => - \PHPStan\Type\StringType::__set_state(array( - )), - 6 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 7 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - ), - 'optionalKeys' => - array ( - ), - 'isList' => - \PHPStan\TrinaryLogic::__set_state(array( - 'value' => -1, - )), - 'allArrays' => NULL, - 'nextAutoIndexes' => - array ( - 0 => 4, - ), - )), - ), - ), - 'SELECT * FROM ada WHERE doesNotExist=1' => - array ( - 'error' => - \staabm\PHPStanDba\Error::__set_state(array( - 'message' => 'SQLSTATE[42S22]: Column not found: 1054 Unknown column \'doesNotExist\' in \'where clause\'', - 'code' => '42S22', - )), - ), - 'SELECT * FROM ada WHERE email = \'1970-01-01\'' => - array ( - 'result' => - array ( - 5 => - \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( - 'itemType' => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 1 => - \PHPStan\Type\StringType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), - )), - 'keyType' => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 0, - )), - 1 => - \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 1, - )), - 2 => - \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 2, - )), - 3 => - \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 3, - )), - 4 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - 5 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - 6 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'freigabe1u1', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - 7 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - ), - 'normalized' => false, - 'sortedTypes' => true, - 'cachedDescriptions' => - array ( - 2 => '0|1|2|3|\'adaid\'|\'email\'|\'freigabe1u1\'|\'gesperrt\'', - ), - )), - 'keyTypes' => - array ( - 0 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - 1 => - \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 0, - )), - 2 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - 3 => - \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 1, - )), - 4 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - 5 => - \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 2, - )), - 6 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'freigabe1u1', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - 7 => - \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 3, - )), - ), - 'valueTypes' => - array ( - 0 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 1 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 2 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 3 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 4 => - \PHPStan\Type\StringType::__set_state(array( - )), - 5 => - \PHPStan\Type\StringType::__set_state(array( - )), - 6 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 7 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - ), - 'optionalKeys' => - array ( - ), - 'isList' => - \PHPStan\TrinaryLogic::__set_state(array( - 'value' => -1, - )), - 'allArrays' => NULL, - 'nextAutoIndexes' => - array ( - 0 => 4, - ), - )), - ), - ), - 'SELECT * FROM ada WHERE email = \'1970-01-01\' LIMIT \'27\' OFFSET \'15\'' => - array ( - 'result' => - array ( - 5 => - \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( - 'itemType' => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 1 => - \PHPStan\Type\StringType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), - )), - 'keyType' => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 0, - )), - 1 => - \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 1, - )), - 2 => - \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 2, - )), - 3 => - \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 3, - )), - 4 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - 5 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - 6 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'freigabe1u1', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - 7 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - ), - 'normalized' => false, - 'sortedTypes' => true, - 'cachedDescriptions' => - array ( - 2 => '0|1|2|3|\'adaid\'|\'email\'|\'freigabe1u1\'|\'gesperrt\'', - ), - )), - 'keyTypes' => - array ( - 0 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - 1 => - \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 0, - )), - 2 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - 3 => - \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 1, - )), - 4 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - 5 => - \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 2, - )), - 6 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'freigabe1u1', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - 7 => - \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 3, - )), - ), - 'valueTypes' => - array ( - 0 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 1 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 2 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 3 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 4 => - \PHPStan\Type\StringType::__set_state(array( - )), - 5 => - \PHPStan\Type\StringType::__set_state(array( - )), - 6 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 7 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - ), - 'optionalKeys' => - array ( - ), - 'isList' => - \PHPStan\TrinaryLogic::__set_state(array( - 'value' => -1, - )), - 'allArrays' => NULL, - 'nextAutoIndexes' => - array ( - 0 => 4, - ), - )), - ), - ), - 'SELECT * FROM ada WHERE email = \'1970-01-01\' LIMIT 5 OFFSET 2' => - array ( - 'result' => - array ( - 5 => - \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( - 'itemType' => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 1 => - \PHPStan\Type\StringType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), - )), - 'keyType' => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 0, - )), - 1 => - \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 1, - )), - 2 => - \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 2, - )), - 3 => - \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 3, - )), - 4 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - 5 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - 6 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'freigabe1u1', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - 7 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - ), - 'normalized' => false, - 'sortedTypes' => true, - 'cachedDescriptions' => - array ( - 2 => '0|1|2|3|\'adaid\'|\'email\'|\'freigabe1u1\'|\'gesperrt\'', - ), - )), - 'keyTypes' => - array ( - 0 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - 1 => - \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 0, - )), - 2 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - 3 => - \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 1, - )), - 4 => + 2 => \PHPStan\Type\Constant\ConstantStringType::__set_state(array( 'value' => 'email', 'isClassString' => false, 'objectType' => NULL, 'arrayKeyType' => NULL, )), - 5 => - \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 2, - )), - 6 => + 3 => \PHPStan\Type\Constant\ConstantStringType::__set_state(array( 'value' => 'freigabe1u1', 'isClassString' => false, 'objectType' => NULL, 'arrayKeyType' => NULL, )), - 7 => - \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 3, - )), ), 'valueTypes' => array ( @@ -1314,32 +196,14 @@ Simulated query: SELECT * FROM 1 LIMIT 0', 'max' => 32767, )), 1 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 2 => \PHPStan\Type\IntegerRangeType::__set_state(array( 'min' => -128, 'max' => 127, )), - 3 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 4 => - \PHPStan\Type\StringType::__set_state(array( - )), - 5 => + 2 => \PHPStan\Type\StringType::__set_state(array( )), - 6 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 7 => + 3 => \PHPStan\Type\IntegerRangeType::__set_state(array( 'min' => -32768, 'max' => 32767, @@ -1355,11 +219,35 @@ Simulated query: SELECT * FROM 1 LIMIT 0', 'allArrays' => NULL, 'nextAutoIndexes' => array ( - 0 => 4, + 0 => 0, ), )), ), ), + 'SELECT * FROM ada GROUP BY doesNotExist' => + array ( + 'error' => + \staabm\PHPStanDba\Error::__set_state(array( + 'message' => 'SQLSTATE[42S22]: Column not found: 1054 Unknown column \'doesNotExist\' in \'group statement\'', + 'code' => '42S22', + )), + ), + 'SELECT * FROM ada ORDER BY doesNotExist' => + array ( + 'error' => + \staabm\PHPStanDba\Error::__set_state(array( + 'message' => 'SQLSTATE[42S22]: Column not found: 1054 Unknown column \'doesNotExist\' in \'order clause\'', + 'code' => '42S22', + )), + ), + 'SELECT * FROM ada WHERE doesNotExist=1' => + array ( + 'error' => + \staabm\PHPStanDba\Error::__set_state(array( + 'message' => 'SQLSTATE[42S22]: Column not found: 1054 Unknown column \'doesNotExist\' in \'where clause\'', + 'code' => '42S22', + )), + ), 'SELECT * FROM ak' => array ( 'result' => @@ -2533,211 +1421,6 @@ Simulated query: SELECT * FROM 1 LIMIT 0', 'code' => '42S02', )), ), - 'SELECT *,adaid FROM `ada` WHERE email = \'test@example.com\';' => - array ( - 'result' => - array ( - 5 => - \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( - 'itemType' => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 1 => - \PHPStan\Type\StringType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), - )), - 'keyType' => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 0, - )), - 1 => - \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 1, - )), - 2 => - \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 2, - )), - 3 => - \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 3, - )), - 4 => - \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 4, - )), - 5 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - 6 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - 7 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'freigabe1u1', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - 8 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - ), - 'normalized' => false, - 'sortedTypes' => true, - 'cachedDescriptions' => - array ( - 2 => '0|1|2|3|4|\'adaid\'|\'email\'|\'freigabe1u1\'|\'gesperrt\'', - ), - )), - 'keyTypes' => - array ( - 0 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - 1 => - \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 0, - )), - 2 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - 3 => - \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 1, - )), - 4 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - 5 => - \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 2, - )), - 6 => - \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'freigabe1u1', - 'isClassString' => false, - 'objectType' => NULL, - 'arrayKeyType' => NULL, - )), - 7 => - \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 3, - )), - 8 => - \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 4, - )), - ), - 'valueTypes' => - array ( - 0 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 1 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 2 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 3 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 4 => - \PHPStan\Type\StringType::__set_state(array( - )), - 5 => - \PHPStan\Type\StringType::__set_state(array( - )), - 6 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 7 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 8 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - ), - 'optionalKeys' => - array ( - ), - 'isList' => - \PHPStan\TrinaryLogic::__set_state(array( - 'value' => -1, - )), - 'allArrays' => NULL, - 'nextAutoIndexes' => - array ( - 0 => 5, - ), - )), - ), - ), - 'SELECT FROM WHERE' => - array ( - 'error' => - \staabm\PHPStanDba\Error::__set_state(array( - 'message' => 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL/MariaDB server version for the right syntax to use near \'FROM WHERE LIMIT 0\' at line 1 - -Simulated query: SELECT FROM WHERE LIMIT 0', - 'code' => '42000', - )), - ), 'SELECT adaid FROM ada WHERE email=\'1970-01-01\'' => array ( 'result' => diff --git a/tests/sqlAst/config/.phpunit-phpstan-dba-mysqli.cache b/tests/sqlAst/config/.phpunit-phpstan-dba-mysqli.cache index 5cac0d988..0ab58bf89 100644 --- a/tests/sqlAst/config/.phpunit-phpstan-dba-mysqli.cache +++ b/tests/sqlAst/config/.phpunit-phpstan-dba-mysqli.cache @@ -4826,7 +4826,9 @@ 5 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), 'keyType' => \PHPStan\Type\UnionType::__set_state(array( @@ -4862,10 +4864,14 @@ 'valueTypes' => array ( 0 => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), 1 => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), ), 'optionalKeys' => @@ -4890,7 +4896,9 @@ 5 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), 'keyType' => \PHPStan\Type\UnionType::__set_state(array( @@ -4932,10 +4940,14 @@ 'valueTypes' => array ( 0 => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), 1 => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), ), 'optionalKeys' => @@ -5106,7 +5118,9 @@ 5 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), 'keyType' => \PHPStan\Type\UnionType::__set_state(array( @@ -5148,10 +5162,14 @@ 'valueTypes' => array ( 0 => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), 1 => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), ), 'optionalKeys' => @@ -5294,9 +5312,23 @@ 5 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, + )), + 1 => + \PHPStan\Type\NullType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), )), 'keyType' => \PHPStan\Type\UnionType::__set_state(array( @@ -5338,14 +5370,42 @@ 'valueTypes' => array ( 0 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, + )), + 1 => + \PHPStan\Type\NullType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), )), 1 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, + )), + 1 => + \PHPStan\Type\NullType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), )), ), 'optionalKeys' => @@ -5370,7 +5430,9 @@ 5 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), 'keyType' => \PHPStan\Type\UnionType::__set_state(array( @@ -5412,10 +5474,14 @@ 'valueTypes' => array ( 0 => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), 1 => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), ), 'optionalKeys' => @@ -5510,7 +5576,21 @@ 5 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => - \PHPStan\Type\StringType::__set_state(array( + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\StringType::__set_state(array( + )), + 1 => + \PHPStan\Type\NullType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), )), 'keyType' => \PHPStan\Type\UnionType::__set_state(array( @@ -5552,10 +5632,38 @@ 'valueTypes' => array ( 0 => - \PHPStan\Type\StringType::__set_state(array( + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\StringType::__set_state(array( + )), + 1 => + \PHPStan\Type\NullType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), )), 1 => - \PHPStan\Type\StringType::__set_state(array( + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\StringType::__set_state(array( + )), + 1 => + \PHPStan\Type\NullType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), )), ), 'optionalKeys' => @@ -5916,7 +6024,21 @@ 5 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => - \PHPStan\Type\StringType::__set_state(array( + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\StringType::__set_state(array( + )), + 1 => + \PHPStan\Type\NullType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), )), 'keyType' => \PHPStan\Type\UnionType::__set_state(array( @@ -5958,10 +6080,38 @@ 'valueTypes' => array ( 0 => - \PHPStan\Type\StringType::__set_state(array( + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\StringType::__set_state(array( + )), + 1 => + \PHPStan\Type\NullType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), )), 1 => - \PHPStan\Type\StringType::__set_state(array( + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\StringType::__set_state(array( + )), + 1 => + \PHPStan\Type\NullType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), )), ), 'optionalKeys' => @@ -6098,7 +6248,9 @@ 5 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), 'keyType' => \PHPStan\Type\UnionType::__set_state(array( @@ -6140,10 +6292,14 @@ 'valueTypes' => array ( 0 => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), 1 => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), ), 'optionalKeys' => @@ -12532,7 +12688,9 @@ 'types' => array ( 0 => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), 1 => \PHPStan\Type\NullType::__set_state(array( @@ -12588,7 +12746,9 @@ 'types' => array ( 0 => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), 1 => \PHPStan\Type\NullType::__set_state(array( @@ -12605,7 +12765,9 @@ 'types' => array ( 0 => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), 1 => \PHPStan\Type\NullType::__set_state(array( @@ -12644,7 +12806,9 @@ 'types' => array ( 0 => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), 1 => \PHPStan\Type\NullType::__set_state(array( @@ -12700,7 +12864,9 @@ 'types' => array ( 0 => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), 1 => \PHPStan\Type\NullType::__set_state(array( @@ -12717,7 +12883,9 @@ 'types' => array ( 0 => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), 1 => \PHPStan\Type\NullType::__set_state(array( @@ -12752,7 +12920,21 @@ 5 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => - \PHPStan\Type\StringType::__set_state(array( + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\StringType::__set_state(array( + )), + 1 => + \PHPStan\Type\NullType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), )), 'keyType' => \PHPStan\Type\UnionType::__set_state(array( @@ -12794,10 +12976,38 @@ 'valueTypes' => array ( 0 => - \PHPStan\Type\StringType::__set_state(array( + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\StringType::__set_state(array( + )), + 1 => + \PHPStan\Type\NullType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), )), 1 => - \PHPStan\Type\StringType::__set_state(array( + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\StringType::__set_state(array( + )), + 1 => + \PHPStan\Type\NullType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), )), ), 'optionalKeys' => @@ -12822,7 +13032,21 @@ 5 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => - \PHPStan\Type\StringType::__set_state(array( + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\StringType::__set_state(array( + )), + 1 => + \PHPStan\Type\NullType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), )), 'keyType' => \PHPStan\Type\UnionType::__set_state(array( @@ -12864,10 +13088,38 @@ 'valueTypes' => array ( 0 => - \PHPStan\Type\StringType::__set_state(array( + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\StringType::__set_state(array( + )), + 1 => + \PHPStan\Type\NullType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), )), 1 => - \PHPStan\Type\StringType::__set_state(array( + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\StringType::__set_state(array( + )), + 1 => + \PHPStan\Type\NullType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), )), ), 'optionalKeys' => @@ -13228,7 +13480,21 @@ 5 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => - \PHPStan\Type\StringType::__set_state(array( + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\StringType::__set_state(array( + )), + 1 => + \PHPStan\Type\NullType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), )), 'keyType' => \PHPStan\Type\UnionType::__set_state(array( @@ -13270,10 +13536,38 @@ 'valueTypes' => array ( 0 => - \PHPStan\Type\StringType::__set_state(array( + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\StringType::__set_state(array( + )), + 1 => + \PHPStan\Type\NullType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), )), 1 => - \PHPStan\Type\StringType::__set_state(array( + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\StringType::__set_state(array( + )), + 1 => + \PHPStan\Type\NullType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), )), ), 'optionalKeys' => @@ -13298,7 +13592,21 @@ 5 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => - \PHPStan\Type\StringType::__set_state(array( + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\StringType::__set_state(array( + )), + 1 => + \PHPStan\Type\NullType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), )), 'keyType' => \PHPStan\Type\UnionType::__set_state(array( @@ -13340,10 +13648,38 @@ 'valueTypes' => array ( 0 => - \PHPStan\Type\StringType::__set_state(array( + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\StringType::__set_state(array( + )), + 1 => + \PHPStan\Type\NullType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), )), 1 => - \PHPStan\Type\StringType::__set_state(array( + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\StringType::__set_state(array( + )), + 1 => + \PHPStan\Type\NullType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), )), ), 'optionalKeys' => @@ -14562,7 +14898,9 @@ 5 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => - \PHPStan\Type\StringType::__set_state(array( + \PHPStan\Type\MixedType::__set_state(array( + 'isExplicitMixed' => false, + 'subtractedType' => NULL, )), 'keyType' => \PHPStan\Type\UnionType::__set_state(array( @@ -14604,10 +14942,14 @@ 'valueTypes' => array ( 0 => - \PHPStan\Type\StringType::__set_state(array( + \PHPStan\Type\MixedType::__set_state(array( + 'isExplicitMixed' => false, + 'subtractedType' => NULL, )), 1 => - \PHPStan\Type\StringType::__set_state(array( + \PHPStan\Type\MixedType::__set_state(array( + 'isExplicitMixed' => false, + 'subtractedType' => NULL, )), ), 'optionalKeys' => @@ -14702,7 +15044,9 @@ 5 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), 'keyType' => \PHPStan\Type\UnionType::__set_state(array( @@ -14744,10 +15088,14 @@ 'valueTypes' => array ( 0 => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), 1 => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), ), 'optionalKeys' => @@ -15264,21 +15612,9 @@ 5 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\StringType::__set_state(array( - )), - 1 => - \PHPStan\Type\NullType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), + \PHPStan\Type\MixedType::__set_state(array( + 'isExplicitMixed' => false, + 'subtractedType' => NULL, )), 'keyType' => \PHPStan\Type\UnionType::__set_state(array( @@ -15320,38 +15656,14 @@ 'valueTypes' => array ( 0 => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\StringType::__set_state(array( - )), - 1 => - \PHPStan\Type\NullType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), + \PHPStan\Type\MixedType::__set_state(array( + 'isExplicitMixed' => false, + 'subtractedType' => NULL, )), 1 => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\StringType::__set_state(array( - )), - 1 => - \PHPStan\Type\NullType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), + \PHPStan\Type\MixedType::__set_state(array( + 'isExplicitMixed' => false, + 'subtractedType' => NULL, )), ), 'optionalKeys' => @@ -15376,8 +15688,10 @@ 5 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => - \PHPStan\Type\IntegerType::__set_state(array( - )), + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, + )), 'keyType' => \PHPStan\Type\UnionType::__set_state(array( 'types' => @@ -15418,10 +15732,14 @@ 'valueTypes' => array ( 0 => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), 1 => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), ), 'optionalKeys' => @@ -15446,7 +15764,9 @@ 5 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), 'keyType' => \PHPStan\Type\UnionType::__set_state(array( @@ -15488,10 +15808,14 @@ 'valueTypes' => array ( 0 => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), 1 => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), ), 'optionalKeys' => @@ -15520,7 +15844,9 @@ 'types' => array ( 0 => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), 1 => \PHPStan\Type\NullType::__set_state(array( @@ -15576,7 +15902,9 @@ 'types' => array ( 0 => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), 1 => \PHPStan\Type\NullType::__set_state(array( @@ -15593,7 +15921,9 @@ 'types' => array ( 0 => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), 1 => \PHPStan\Type\NullType::__set_state(array( @@ -15628,7 +15958,9 @@ 5 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), 'keyType' => \PHPStan\Type\UnionType::__set_state(array( @@ -15670,10 +16002,14 @@ 'valueTypes' => array ( 0 => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), 1 => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), ), 'optionalKeys' => @@ -15698,7 +16034,9 @@ 5 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), 'keyType' => \PHPStan\Type\UnionType::__set_state(array( @@ -15740,10 +16078,14 @@ 'valueTypes' => array ( 0 => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), 1 => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), ), 'optionalKeys' => @@ -15768,7 +16110,21 @@ 5 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => - \PHPStan\Type\StringType::__set_state(array( + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\StringType::__set_state(array( + )), + 1 => + \PHPStan\Type\NullType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), )), 'keyType' => \PHPStan\Type\UnionType::__set_state(array( @@ -15810,10 +16166,38 @@ 'valueTypes' => array ( 0 => - \PHPStan\Type\StringType::__set_state(array( + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\StringType::__set_state(array( + )), + 1 => + \PHPStan\Type\NullType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), )), 1 => - \PHPStan\Type\StringType::__set_state(array( + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\StringType::__set_state(array( + )), + 1 => + \PHPStan\Type\NullType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), )), ), 'optionalKeys' => @@ -15838,7 +16222,9 @@ 5 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), 'keyType' => \PHPStan\Type\UnionType::__set_state(array( @@ -15880,10 +16266,14 @@ 'valueTypes' => array ( 0 => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), 1 => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), ), 'optionalKeys' => @@ -15912,7 +16302,9 @@ 'types' => array ( 0 => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), 1 => \PHPStan\Type\NullType::__set_state(array( @@ -15968,7 +16360,9 @@ 'types' => array ( 0 => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), 1 => \PHPStan\Type\NullType::__set_state(array( @@ -15985,7 +16379,9 @@ 'types' => array ( 0 => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), 1 => \PHPStan\Type\NullType::__set_state(array( @@ -16020,7 +16416,9 @@ 5 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), 'keyType' => \PHPStan\Type\UnionType::__set_state(array( @@ -16062,10 +16460,14 @@ 'valueTypes' => array ( 0 => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), 1 => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), ), 'optionalKeys' => @@ -16094,7 +16496,9 @@ 'types' => array ( 0 => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), 1 => \PHPStan\Type\NullType::__set_state(array( @@ -16150,7 +16554,9 @@ 'types' => array ( 0 => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), 1 => \PHPStan\Type\NullType::__set_state(array( @@ -16167,7 +16573,9 @@ 'types' => array ( 0 => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), 1 => \PHPStan\Type\NullType::__set_state(array( @@ -16202,7 +16610,21 @@ 5 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => - \PHPStan\Type\StringType::__set_state(array( + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\StringType::__set_state(array( + )), + 1 => + \PHPStan\Type\NullType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), )), 'keyType' => \PHPStan\Type\UnionType::__set_state(array( @@ -16244,10 +16666,38 @@ 'valueTypes' => array ( 0 => - \PHPStan\Type\StringType::__set_state(array( + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\StringType::__set_state(array( + )), + 1 => + \PHPStan\Type\NullType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), )), 1 => - \PHPStan\Type\StringType::__set_state(array( + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\StringType::__set_state(array( + )), + 1 => + \PHPStan\Type\NullType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), )), ), 'optionalKeys' => @@ -16272,7 +16722,21 @@ 5 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => - \PHPStan\Type\StringType::__set_state(array( + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\StringType::__set_state(array( + )), + 1 => + \PHPStan\Type\NullType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), )), 'keyType' => \PHPStan\Type\UnionType::__set_state(array( @@ -16314,10 +16778,38 @@ 'valueTypes' => array ( 0 => - \PHPStan\Type\StringType::__set_state(array( + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\StringType::__set_state(array( + )), + 1 => + \PHPStan\Type\NullType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), )), 1 => - \PHPStan\Type\StringType::__set_state(array( + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\StringType::__set_state(array( + )), + 1 => + \PHPStan\Type\NullType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), )), ), 'optionalKeys' => @@ -16454,7 +16946,21 @@ 5 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => - \PHPStan\Type\StringType::__set_state(array( + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\StringType::__set_state(array( + )), + 1 => + \PHPStan\Type\NullType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), )), 'keyType' => \PHPStan\Type\UnionType::__set_state(array( @@ -16496,10 +17002,38 @@ 'valueTypes' => array ( 0 => - \PHPStan\Type\StringType::__set_state(array( + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\StringType::__set_state(array( + )), + 1 => + \PHPStan\Type\NullType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), )), 1 => - \PHPStan\Type\StringType::__set_state(array( + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\StringType::__set_state(array( + )), + 1 => + \PHPStan\Type\NullType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), )), ), 'optionalKeys' => @@ -16524,7 +17058,21 @@ 5 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => - \PHPStan\Type\StringType::__set_state(array( + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\StringType::__set_state(array( + )), + 1 => + \PHPStan\Type\NullType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), )), 'keyType' => \PHPStan\Type\UnionType::__set_state(array( @@ -16566,10 +17114,38 @@ 'valueTypes' => array ( 0 => - \PHPStan\Type\StringType::__set_state(array( + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\StringType::__set_state(array( + )), + 1 => + \PHPStan\Type\NullType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), )), 1 => - \PHPStan\Type\StringType::__set_state(array( + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\StringType::__set_state(array( + )), + 1 => + \PHPStan\Type\NullType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), )), ), 'optionalKeys' => @@ -16706,7 +17282,21 @@ 5 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => - \PHPStan\Type\StringType::__set_state(array( + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\StringType::__set_state(array( + )), + 1 => + \PHPStan\Type\NullType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), )), 'keyType' => \PHPStan\Type\UnionType::__set_state(array( @@ -16748,10 +17338,38 @@ 'valueTypes' => array ( 0 => - \PHPStan\Type\StringType::__set_state(array( + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\StringType::__set_state(array( + )), + 1 => + \PHPStan\Type\NullType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), )), 1 => - \PHPStan\Type\StringType::__set_state(array( + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\StringType::__set_state(array( + )), + 1 => + \PHPStan\Type\NullType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), )), ), 'optionalKeys' => @@ -17472,9 +18090,21 @@ 5 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => - \PHPStan\Type\MixedType::__set_state(array( - 'isExplicitMixed' => false, - 'subtractedType' => NULL, + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\StringType::__set_state(array( + )), + 1 => + \PHPStan\Type\NullType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), )), 'keyType' => \PHPStan\Type\UnionType::__set_state(array( @@ -17516,14 +18146,38 @@ 'valueTypes' => array ( 0 => - \PHPStan\Type\MixedType::__set_state(array( - 'isExplicitMixed' => false, - 'subtractedType' => NULL, + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\StringType::__set_state(array( + )), + 1 => + \PHPStan\Type\NullType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), )), 1 => - \PHPStan\Type\MixedType::__set_state(array( - 'isExplicitMixed' => false, - 'subtractedType' => NULL, + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\StringType::__set_state(array( + )), + 1 => + \PHPStan\Type\NullType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), )), ), 'optionalKeys' => @@ -18244,9 +18898,21 @@ 5 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => - \PHPStan\Type\MixedType::__set_state(array( - 'isExplicitMixed' => false, - 'subtractedType' => NULL, + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\StringType::__set_state(array( + )), + 1 => + \PHPStan\Type\NullType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), )), 'keyType' => \PHPStan\Type\UnionType::__set_state(array( @@ -18288,14 +18954,38 @@ 'valueTypes' => array ( 0 => - \PHPStan\Type\MixedType::__set_state(array( - 'isExplicitMixed' => false, - 'subtractedType' => NULL, + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\StringType::__set_state(array( + )), + 1 => + \PHPStan\Type\NullType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), )), 1 => - \PHPStan\Type\MixedType::__set_state(array( - 'isExplicitMixed' => false, - 'subtractedType' => NULL, + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\StringType::__set_state(array( + )), + 1 => + \PHPStan\Type\NullType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), )), ), 'optionalKeys' => @@ -18324,7 +19014,9 @@ 'types' => array ( 0 => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), 1 => \PHPStan\Type\NullType::__set_state(array( @@ -18380,7 +19072,9 @@ 'types' => array ( 0 => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), 1 => \PHPStan\Type\NullType::__set_state(array( @@ -18397,7 +19091,9 @@ 'types' => array ( 0 => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), 1 => \PHPStan\Type\NullType::__set_state(array( @@ -18436,7 +19132,9 @@ 'types' => array ( 0 => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), 1 => \PHPStan\Type\NullType::__set_state(array( @@ -18492,7 +19190,9 @@ 'types' => array ( 0 => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), 1 => \PHPStan\Type\NullType::__set_state(array( @@ -18509,7 +19209,9 @@ 'types' => array ( 0 => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), 1 => \PHPStan\Type\NullType::__set_state(array( @@ -19256,7 +19958,9 @@ 'types' => array ( 0 => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), 1 => \PHPStan\Type\NullType::__set_state(array( @@ -19312,7 +20016,9 @@ 'types' => array ( 0 => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), 1 => \PHPStan\Type\NullType::__set_state(array( @@ -19329,7 +20035,9 @@ 'types' => array ( 0 => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), 1 => \PHPStan\Type\NullType::__set_state(array( @@ -19464,7 +20172,9 @@ 5 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, )), 'keyType' => \PHPStan\Type\UnionType::__set_state(array( @@ -19506,10 +20216,14 @@ 'valueTypes' => array ( 0 => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, )), 1 => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, )), ), 'optionalKeys' => @@ -20550,7 +21264,21 @@ 5 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => - \PHPStan\Type\StringType::__set_state(array( + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\StringType::__set_state(array( + )), + 1 => + \PHPStan\Type\NullType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), )), 'keyType' => \PHPStan\Type\UnionType::__set_state(array( @@ -20592,10 +21320,38 @@ 'valueTypes' => array ( 0 => - \PHPStan\Type\StringType::__set_state(array( + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\StringType::__set_state(array( + )), + 1 => + \PHPStan\Type\NullType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), )), 1 => - \PHPStan\Type\StringType::__set_state(array( + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\StringType::__set_state(array( + )), + 1 => + \PHPStan\Type\NullType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), )), ), 'optionalKeys' => @@ -20620,7 +21376,21 @@ 5 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => - \PHPStan\Type\StringType::__set_state(array( + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\StringType::__set_state(array( + )), + 1 => + \PHPStan\Type\NullType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), )), 'keyType' => \PHPStan\Type\UnionType::__set_state(array( @@ -20662,10 +21432,38 @@ 'valueTypes' => array ( 0 => - \PHPStan\Type\StringType::__set_state(array( + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\StringType::__set_state(array( + )), + 1 => + \PHPStan\Type\NullType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), )), 1 => - \PHPStan\Type\StringType::__set_state(array( + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\StringType::__set_state(array( + )), + 1 => + \PHPStan\Type\NullType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), )), ), 'optionalKeys' => diff --git a/tests/sqlAst/config/.phpunit-phpstan-dba-pdo-mysql.cache b/tests/sqlAst/config/.phpunit-phpstan-dba-pdo-mysql.cache index 5cac0d988..0ab58bf89 100644 --- a/tests/sqlAst/config/.phpunit-phpstan-dba-pdo-mysql.cache +++ b/tests/sqlAst/config/.phpunit-phpstan-dba-pdo-mysql.cache @@ -4826,7 +4826,9 @@ 5 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), 'keyType' => \PHPStan\Type\UnionType::__set_state(array( @@ -4862,10 +4864,14 @@ 'valueTypes' => array ( 0 => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), 1 => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), ), 'optionalKeys' => @@ -4890,7 +4896,9 @@ 5 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), 'keyType' => \PHPStan\Type\UnionType::__set_state(array( @@ -4932,10 +4940,14 @@ 'valueTypes' => array ( 0 => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), 1 => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), ), 'optionalKeys' => @@ -5106,7 +5118,9 @@ 5 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), 'keyType' => \PHPStan\Type\UnionType::__set_state(array( @@ -5148,10 +5162,14 @@ 'valueTypes' => array ( 0 => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), 1 => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), ), 'optionalKeys' => @@ -5294,9 +5312,23 @@ 5 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, + )), + 1 => + \PHPStan\Type\NullType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), )), 'keyType' => \PHPStan\Type\UnionType::__set_state(array( @@ -5338,14 +5370,42 @@ 'valueTypes' => array ( 0 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, + )), + 1 => + \PHPStan\Type\NullType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), )), 1 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, + )), + 1 => + \PHPStan\Type\NullType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), )), ), 'optionalKeys' => @@ -5370,7 +5430,9 @@ 5 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), 'keyType' => \PHPStan\Type\UnionType::__set_state(array( @@ -5412,10 +5474,14 @@ 'valueTypes' => array ( 0 => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), 1 => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), ), 'optionalKeys' => @@ -5510,7 +5576,21 @@ 5 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => - \PHPStan\Type\StringType::__set_state(array( + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\StringType::__set_state(array( + )), + 1 => + \PHPStan\Type\NullType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), )), 'keyType' => \PHPStan\Type\UnionType::__set_state(array( @@ -5552,10 +5632,38 @@ 'valueTypes' => array ( 0 => - \PHPStan\Type\StringType::__set_state(array( + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\StringType::__set_state(array( + )), + 1 => + \PHPStan\Type\NullType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), )), 1 => - \PHPStan\Type\StringType::__set_state(array( + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\StringType::__set_state(array( + )), + 1 => + \PHPStan\Type\NullType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), )), ), 'optionalKeys' => @@ -5916,7 +6024,21 @@ 5 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => - \PHPStan\Type\StringType::__set_state(array( + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\StringType::__set_state(array( + )), + 1 => + \PHPStan\Type\NullType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), )), 'keyType' => \PHPStan\Type\UnionType::__set_state(array( @@ -5958,10 +6080,38 @@ 'valueTypes' => array ( 0 => - \PHPStan\Type\StringType::__set_state(array( + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\StringType::__set_state(array( + )), + 1 => + \PHPStan\Type\NullType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), )), 1 => - \PHPStan\Type\StringType::__set_state(array( + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\StringType::__set_state(array( + )), + 1 => + \PHPStan\Type\NullType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), )), ), 'optionalKeys' => @@ -6098,7 +6248,9 @@ 5 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), 'keyType' => \PHPStan\Type\UnionType::__set_state(array( @@ -6140,10 +6292,14 @@ 'valueTypes' => array ( 0 => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), 1 => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), ), 'optionalKeys' => @@ -12532,7 +12688,9 @@ 'types' => array ( 0 => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), 1 => \PHPStan\Type\NullType::__set_state(array( @@ -12588,7 +12746,9 @@ 'types' => array ( 0 => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), 1 => \PHPStan\Type\NullType::__set_state(array( @@ -12605,7 +12765,9 @@ 'types' => array ( 0 => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), 1 => \PHPStan\Type\NullType::__set_state(array( @@ -12644,7 +12806,9 @@ 'types' => array ( 0 => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), 1 => \PHPStan\Type\NullType::__set_state(array( @@ -12700,7 +12864,9 @@ 'types' => array ( 0 => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), 1 => \PHPStan\Type\NullType::__set_state(array( @@ -12717,7 +12883,9 @@ 'types' => array ( 0 => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), 1 => \PHPStan\Type\NullType::__set_state(array( @@ -12752,7 +12920,21 @@ 5 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => - \PHPStan\Type\StringType::__set_state(array( + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\StringType::__set_state(array( + )), + 1 => + \PHPStan\Type\NullType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), )), 'keyType' => \PHPStan\Type\UnionType::__set_state(array( @@ -12794,10 +12976,38 @@ 'valueTypes' => array ( 0 => - \PHPStan\Type\StringType::__set_state(array( + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\StringType::__set_state(array( + )), + 1 => + \PHPStan\Type\NullType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), )), 1 => - \PHPStan\Type\StringType::__set_state(array( + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\StringType::__set_state(array( + )), + 1 => + \PHPStan\Type\NullType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), )), ), 'optionalKeys' => @@ -12822,7 +13032,21 @@ 5 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => - \PHPStan\Type\StringType::__set_state(array( + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\StringType::__set_state(array( + )), + 1 => + \PHPStan\Type\NullType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), )), 'keyType' => \PHPStan\Type\UnionType::__set_state(array( @@ -12864,10 +13088,38 @@ 'valueTypes' => array ( 0 => - \PHPStan\Type\StringType::__set_state(array( + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\StringType::__set_state(array( + )), + 1 => + \PHPStan\Type\NullType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), )), 1 => - \PHPStan\Type\StringType::__set_state(array( + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\StringType::__set_state(array( + )), + 1 => + \PHPStan\Type\NullType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), )), ), 'optionalKeys' => @@ -13228,7 +13480,21 @@ 5 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => - \PHPStan\Type\StringType::__set_state(array( + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\StringType::__set_state(array( + )), + 1 => + \PHPStan\Type\NullType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), )), 'keyType' => \PHPStan\Type\UnionType::__set_state(array( @@ -13270,10 +13536,38 @@ 'valueTypes' => array ( 0 => - \PHPStan\Type\StringType::__set_state(array( + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\StringType::__set_state(array( + )), + 1 => + \PHPStan\Type\NullType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), )), 1 => - \PHPStan\Type\StringType::__set_state(array( + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\StringType::__set_state(array( + )), + 1 => + \PHPStan\Type\NullType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), )), ), 'optionalKeys' => @@ -13298,7 +13592,21 @@ 5 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => - \PHPStan\Type\StringType::__set_state(array( + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\StringType::__set_state(array( + )), + 1 => + \PHPStan\Type\NullType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), )), 'keyType' => \PHPStan\Type\UnionType::__set_state(array( @@ -13340,10 +13648,38 @@ 'valueTypes' => array ( 0 => - \PHPStan\Type\StringType::__set_state(array( + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\StringType::__set_state(array( + )), + 1 => + \PHPStan\Type\NullType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), )), 1 => - \PHPStan\Type\StringType::__set_state(array( + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\StringType::__set_state(array( + )), + 1 => + \PHPStan\Type\NullType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), )), ), 'optionalKeys' => @@ -14562,7 +14898,9 @@ 5 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => - \PHPStan\Type\StringType::__set_state(array( + \PHPStan\Type\MixedType::__set_state(array( + 'isExplicitMixed' => false, + 'subtractedType' => NULL, )), 'keyType' => \PHPStan\Type\UnionType::__set_state(array( @@ -14604,10 +14942,14 @@ 'valueTypes' => array ( 0 => - \PHPStan\Type\StringType::__set_state(array( + \PHPStan\Type\MixedType::__set_state(array( + 'isExplicitMixed' => false, + 'subtractedType' => NULL, )), 1 => - \PHPStan\Type\StringType::__set_state(array( + \PHPStan\Type\MixedType::__set_state(array( + 'isExplicitMixed' => false, + 'subtractedType' => NULL, )), ), 'optionalKeys' => @@ -14702,7 +15044,9 @@ 5 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), 'keyType' => \PHPStan\Type\UnionType::__set_state(array( @@ -14744,10 +15088,14 @@ 'valueTypes' => array ( 0 => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), 1 => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), ), 'optionalKeys' => @@ -15264,21 +15612,9 @@ 5 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\StringType::__set_state(array( - )), - 1 => - \PHPStan\Type\NullType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), + \PHPStan\Type\MixedType::__set_state(array( + 'isExplicitMixed' => false, + 'subtractedType' => NULL, )), 'keyType' => \PHPStan\Type\UnionType::__set_state(array( @@ -15320,38 +15656,14 @@ 'valueTypes' => array ( 0 => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\StringType::__set_state(array( - )), - 1 => - \PHPStan\Type\NullType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), + \PHPStan\Type\MixedType::__set_state(array( + 'isExplicitMixed' => false, + 'subtractedType' => NULL, )), 1 => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\StringType::__set_state(array( - )), - 1 => - \PHPStan\Type\NullType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), + \PHPStan\Type\MixedType::__set_state(array( + 'isExplicitMixed' => false, + 'subtractedType' => NULL, )), ), 'optionalKeys' => @@ -15376,8 +15688,10 @@ 5 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => - \PHPStan\Type\IntegerType::__set_state(array( - )), + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, + )), 'keyType' => \PHPStan\Type\UnionType::__set_state(array( 'types' => @@ -15418,10 +15732,14 @@ 'valueTypes' => array ( 0 => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), 1 => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), ), 'optionalKeys' => @@ -15446,7 +15764,9 @@ 5 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), 'keyType' => \PHPStan\Type\UnionType::__set_state(array( @@ -15488,10 +15808,14 @@ 'valueTypes' => array ( 0 => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), 1 => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), ), 'optionalKeys' => @@ -15520,7 +15844,9 @@ 'types' => array ( 0 => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), 1 => \PHPStan\Type\NullType::__set_state(array( @@ -15576,7 +15902,9 @@ 'types' => array ( 0 => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), 1 => \PHPStan\Type\NullType::__set_state(array( @@ -15593,7 +15921,9 @@ 'types' => array ( 0 => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), 1 => \PHPStan\Type\NullType::__set_state(array( @@ -15628,7 +15958,9 @@ 5 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), 'keyType' => \PHPStan\Type\UnionType::__set_state(array( @@ -15670,10 +16002,14 @@ 'valueTypes' => array ( 0 => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), 1 => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), ), 'optionalKeys' => @@ -15698,7 +16034,9 @@ 5 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), 'keyType' => \PHPStan\Type\UnionType::__set_state(array( @@ -15740,10 +16078,14 @@ 'valueTypes' => array ( 0 => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), 1 => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), ), 'optionalKeys' => @@ -15768,7 +16110,21 @@ 5 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => - \PHPStan\Type\StringType::__set_state(array( + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\StringType::__set_state(array( + )), + 1 => + \PHPStan\Type\NullType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), )), 'keyType' => \PHPStan\Type\UnionType::__set_state(array( @@ -15810,10 +16166,38 @@ 'valueTypes' => array ( 0 => - \PHPStan\Type\StringType::__set_state(array( + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\StringType::__set_state(array( + )), + 1 => + \PHPStan\Type\NullType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), )), 1 => - \PHPStan\Type\StringType::__set_state(array( + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\StringType::__set_state(array( + )), + 1 => + \PHPStan\Type\NullType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), )), ), 'optionalKeys' => @@ -15838,7 +16222,9 @@ 5 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), 'keyType' => \PHPStan\Type\UnionType::__set_state(array( @@ -15880,10 +16266,14 @@ 'valueTypes' => array ( 0 => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), 1 => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), ), 'optionalKeys' => @@ -15912,7 +16302,9 @@ 'types' => array ( 0 => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), 1 => \PHPStan\Type\NullType::__set_state(array( @@ -15968,7 +16360,9 @@ 'types' => array ( 0 => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), 1 => \PHPStan\Type\NullType::__set_state(array( @@ -15985,7 +16379,9 @@ 'types' => array ( 0 => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), 1 => \PHPStan\Type\NullType::__set_state(array( @@ -16020,7 +16416,9 @@ 5 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), 'keyType' => \PHPStan\Type\UnionType::__set_state(array( @@ -16062,10 +16460,14 @@ 'valueTypes' => array ( 0 => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), 1 => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), ), 'optionalKeys' => @@ -16094,7 +16496,9 @@ 'types' => array ( 0 => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), 1 => \PHPStan\Type\NullType::__set_state(array( @@ -16150,7 +16554,9 @@ 'types' => array ( 0 => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), 1 => \PHPStan\Type\NullType::__set_state(array( @@ -16167,7 +16573,9 @@ 'types' => array ( 0 => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), 1 => \PHPStan\Type\NullType::__set_state(array( @@ -16202,7 +16610,21 @@ 5 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => - \PHPStan\Type\StringType::__set_state(array( + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\StringType::__set_state(array( + )), + 1 => + \PHPStan\Type\NullType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), )), 'keyType' => \PHPStan\Type\UnionType::__set_state(array( @@ -16244,10 +16666,38 @@ 'valueTypes' => array ( 0 => - \PHPStan\Type\StringType::__set_state(array( + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\StringType::__set_state(array( + )), + 1 => + \PHPStan\Type\NullType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), )), 1 => - \PHPStan\Type\StringType::__set_state(array( + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\StringType::__set_state(array( + )), + 1 => + \PHPStan\Type\NullType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), )), ), 'optionalKeys' => @@ -16272,7 +16722,21 @@ 5 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => - \PHPStan\Type\StringType::__set_state(array( + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\StringType::__set_state(array( + )), + 1 => + \PHPStan\Type\NullType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), )), 'keyType' => \PHPStan\Type\UnionType::__set_state(array( @@ -16314,10 +16778,38 @@ 'valueTypes' => array ( 0 => - \PHPStan\Type\StringType::__set_state(array( + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\StringType::__set_state(array( + )), + 1 => + \PHPStan\Type\NullType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), )), 1 => - \PHPStan\Type\StringType::__set_state(array( + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\StringType::__set_state(array( + )), + 1 => + \PHPStan\Type\NullType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), )), ), 'optionalKeys' => @@ -16454,7 +16946,21 @@ 5 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => - \PHPStan\Type\StringType::__set_state(array( + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\StringType::__set_state(array( + )), + 1 => + \PHPStan\Type\NullType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), )), 'keyType' => \PHPStan\Type\UnionType::__set_state(array( @@ -16496,10 +17002,38 @@ 'valueTypes' => array ( 0 => - \PHPStan\Type\StringType::__set_state(array( + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\StringType::__set_state(array( + )), + 1 => + \PHPStan\Type\NullType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), )), 1 => - \PHPStan\Type\StringType::__set_state(array( + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\StringType::__set_state(array( + )), + 1 => + \PHPStan\Type\NullType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), )), ), 'optionalKeys' => @@ -16524,7 +17058,21 @@ 5 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => - \PHPStan\Type\StringType::__set_state(array( + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\StringType::__set_state(array( + )), + 1 => + \PHPStan\Type\NullType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), )), 'keyType' => \PHPStan\Type\UnionType::__set_state(array( @@ -16566,10 +17114,38 @@ 'valueTypes' => array ( 0 => - \PHPStan\Type\StringType::__set_state(array( + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\StringType::__set_state(array( + )), + 1 => + \PHPStan\Type\NullType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), )), 1 => - \PHPStan\Type\StringType::__set_state(array( + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\StringType::__set_state(array( + )), + 1 => + \PHPStan\Type\NullType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), )), ), 'optionalKeys' => @@ -16706,7 +17282,21 @@ 5 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => - \PHPStan\Type\StringType::__set_state(array( + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\StringType::__set_state(array( + )), + 1 => + \PHPStan\Type\NullType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), )), 'keyType' => \PHPStan\Type\UnionType::__set_state(array( @@ -16748,10 +17338,38 @@ 'valueTypes' => array ( 0 => - \PHPStan\Type\StringType::__set_state(array( + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\StringType::__set_state(array( + )), + 1 => + \PHPStan\Type\NullType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), )), 1 => - \PHPStan\Type\StringType::__set_state(array( + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\StringType::__set_state(array( + )), + 1 => + \PHPStan\Type\NullType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), )), ), 'optionalKeys' => @@ -17472,9 +18090,21 @@ 5 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => - \PHPStan\Type\MixedType::__set_state(array( - 'isExplicitMixed' => false, - 'subtractedType' => NULL, + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\StringType::__set_state(array( + )), + 1 => + \PHPStan\Type\NullType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), )), 'keyType' => \PHPStan\Type\UnionType::__set_state(array( @@ -17516,14 +18146,38 @@ 'valueTypes' => array ( 0 => - \PHPStan\Type\MixedType::__set_state(array( - 'isExplicitMixed' => false, - 'subtractedType' => NULL, + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\StringType::__set_state(array( + )), + 1 => + \PHPStan\Type\NullType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), )), 1 => - \PHPStan\Type\MixedType::__set_state(array( - 'isExplicitMixed' => false, - 'subtractedType' => NULL, + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\StringType::__set_state(array( + )), + 1 => + \PHPStan\Type\NullType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), )), ), 'optionalKeys' => @@ -18244,9 +18898,21 @@ 5 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => - \PHPStan\Type\MixedType::__set_state(array( - 'isExplicitMixed' => false, - 'subtractedType' => NULL, + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\StringType::__set_state(array( + )), + 1 => + \PHPStan\Type\NullType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), )), 'keyType' => \PHPStan\Type\UnionType::__set_state(array( @@ -18288,14 +18954,38 @@ 'valueTypes' => array ( 0 => - \PHPStan\Type\MixedType::__set_state(array( - 'isExplicitMixed' => false, - 'subtractedType' => NULL, + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\StringType::__set_state(array( + )), + 1 => + \PHPStan\Type\NullType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), )), 1 => - \PHPStan\Type\MixedType::__set_state(array( - 'isExplicitMixed' => false, - 'subtractedType' => NULL, + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\StringType::__set_state(array( + )), + 1 => + \PHPStan\Type\NullType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), )), ), 'optionalKeys' => @@ -18324,7 +19014,9 @@ 'types' => array ( 0 => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), 1 => \PHPStan\Type\NullType::__set_state(array( @@ -18380,7 +19072,9 @@ 'types' => array ( 0 => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), 1 => \PHPStan\Type\NullType::__set_state(array( @@ -18397,7 +19091,9 @@ 'types' => array ( 0 => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), 1 => \PHPStan\Type\NullType::__set_state(array( @@ -18436,7 +19132,9 @@ 'types' => array ( 0 => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), 1 => \PHPStan\Type\NullType::__set_state(array( @@ -18492,7 +19190,9 @@ 'types' => array ( 0 => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), 1 => \PHPStan\Type\NullType::__set_state(array( @@ -18509,7 +19209,9 @@ 'types' => array ( 0 => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), 1 => \PHPStan\Type\NullType::__set_state(array( @@ -19256,7 +19958,9 @@ 'types' => array ( 0 => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), 1 => \PHPStan\Type\NullType::__set_state(array( @@ -19312,7 +20016,9 @@ 'types' => array ( 0 => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), 1 => \PHPStan\Type\NullType::__set_state(array( @@ -19329,7 +20035,9 @@ 'types' => array ( 0 => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), 1 => \PHPStan\Type\NullType::__set_state(array( @@ -19464,7 +20172,9 @@ 5 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, )), 'keyType' => \PHPStan\Type\UnionType::__set_state(array( @@ -19506,10 +20216,14 @@ 'valueTypes' => array ( 0 => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, )), 1 => - \PHPStan\Type\IntegerType::__set_state(array( + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, )), ), 'optionalKeys' => @@ -20550,7 +21264,21 @@ 5 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => - \PHPStan\Type\StringType::__set_state(array( + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\StringType::__set_state(array( + )), + 1 => + \PHPStan\Type\NullType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), )), 'keyType' => \PHPStan\Type\UnionType::__set_state(array( @@ -20592,10 +21320,38 @@ 'valueTypes' => array ( 0 => - \PHPStan\Type\StringType::__set_state(array( + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\StringType::__set_state(array( + )), + 1 => + \PHPStan\Type\NullType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), )), 1 => - \PHPStan\Type\StringType::__set_state(array( + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\StringType::__set_state(array( + )), + 1 => + \PHPStan\Type\NullType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), )), ), 'optionalKeys' => @@ -20620,7 +21376,21 @@ 5 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => - \PHPStan\Type\StringType::__set_state(array( + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\StringType::__set_state(array( + )), + 1 => + \PHPStan\Type\NullType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), )), 'keyType' => \PHPStan\Type\UnionType::__set_state(array( @@ -20662,10 +21432,38 @@ 'valueTypes' => array ( 0 => - \PHPStan\Type\StringType::__set_state(array( + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\StringType::__set_state(array( + )), + 1 => + \PHPStan\Type\NullType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), )), 1 => - \PHPStan\Type\StringType::__set_state(array( + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\StringType::__set_state(array( + )), + 1 => + \PHPStan\Type\NullType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), )), ), 'optionalKeys' => From 0be9cf316cf374de6905a4c12b9976e95872933f Mon Sep 17 00:00:00 2001 From: Markus Staab Date: Thu, 14 Nov 2024 17:54:38 +0100 Subject: [PATCH 2/2] re-record --- .phpstan-dba-mysqli.cache | 529 ++++++- .phpstan-dba-pdo-mysql.cache | 53 +- .../config/.phpunit-phpstan-dba-mysqli.cache | 489 ++++++ .../.phpunit-phpstan-dba-pdo-mysql.cache | 489 ++++++ .../config/.phpunit-phpstan-dba-mysqli.cache | 1385 ++++++++++++++++- .../.phpunit-phpstan-dba-pdo-mysql.cache | 1385 ++++++++++++++++- .../config/.phpunit-phpstan-dba-mysqli.cache | 1162 +++----------- .../.phpunit-phpstan-dba-pdo-mysql.cache | 1162 +++----------- 8 files changed, 4579 insertions(+), 2075 deletions(-) diff --git a/.phpstan-dba-mysqli.cache b/.phpstan-dba-mysqli.cache index b2017766d..f2d1e37e1 100644 --- a/.phpstan-dba-mysqli.cache +++ b/.phpstan-dba-mysqli.cache @@ -3,6 +3,209 @@ 'schemaHash' => '6132e9e3b6fb27d2953badea4154109f', 'records' => array ( + 'SELECT + coalesce(COLUMN_NAME, \'\') as COLUMN_NAME, + coalesce(EXTRA, \'\') as EXTRA, + COLUMN_TYPE + FROM information_schema.columns + WHERE table_name = \'1970-01-01\' AND table_schema = DATABASE()' => + array ( + 'result' => + array ( + 5 => + \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( + 'itemType' => + \PHPStan\Type\StringType::__set_state(array( + )), + 'keyType' => + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 0, + )), + 1 => + \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 1, + )), + 2 => + \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 2, + )), + 3 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'COLUMN_NAME', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'COLUMN_NAME', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'COLUMN_NAME', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + )), + )), + 4 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'COLUMN_TYPE', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'COLUMN_TYPE', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'COLUMN_TYPE', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + )), + )), + 5 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'EXTRA', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'EXTRA', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'EXTRA', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + )), + )), + ), + 'normalized' => false, + 'sortedTypes' => true, + 'cachedDescriptions' => + array ( + 2 => '0|1|2|\'COLUMN_NAME\'|\'COLUMN_TYPE\'|\'EXTRA\'', + ), + )), + 'keyTypes' => + array ( + 0 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'COLUMN_NAME', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'COLUMN_NAME', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'COLUMN_NAME', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + )), + )), + 1 => + \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 0, + )), + 2 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'EXTRA', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'EXTRA', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'EXTRA', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + )), + )), + 3 => + \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 1, + )), + 4 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'COLUMN_TYPE', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'COLUMN_TYPE', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'COLUMN_TYPE', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + )), + )), + 5 => + \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 2, + )), + ), + 'valueTypes' => + array ( + 0 => + \PHPStan\Type\StringType::__set_state(array( + )), + 1 => + \PHPStan\Type\StringType::__set_state(array( + )), + 2 => + \PHPStan\Type\StringType::__set_state(array( + )), + 3 => + \PHPStan\Type\StringType::__set_state(array( + )), + 4 => + \PHPStan\Type\StringType::__set_state(array( + )), + 5 => + \PHPStan\Type\StringType::__set_state(array( + )), + ), + 'optionalKeys' => + array ( + ), + 'isList' => + \PHPStan\TrinaryLogic::__set_state(array( + 'value' => -1, + )), + 'allArrays' => NULL, + 'nextAutoIndexes' => + array ( + 0 => 3, + ), + )), + ), + ), 'SELECT MD5( GROUP_CONCAT( @@ -39,9 +242,7 @@ \PHPStan\Type\StringType::__set_state(array( )), 1 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\IntegerType::__set_state(array( )), 2 => \PHPStan\Type\NullType::__set_state(array( @@ -126,10 +327,9 @@ )), ), 'normalized' => true, - 'sortedTypes' => true, + 'sortedTypes' => false, 'cachedDescriptions' => array ( - 2 => 'string|null', ), )), 1 => @@ -144,22 +344,16 @@ )), ), 'normalized' => true, - 'sortedTypes' => true, + 'sortedTypes' => false, 'cachedDescriptions' => array ( - 3 => 'string|null', - 2 => 'string|null', ), )), 2 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\IntegerType::__set_state(array( )), 3 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\IntegerType::__set_state(array( )), ), 'optionalKeys' => @@ -175,6 +369,313 @@ 0 => 2, ), )), + 3 => + \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( + 'itemType' => + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\StringType::__set_state(array( + )), + 1 => + \PHPStan\Type\IntegerType::__set_state(array( + )), + 2 => + \PHPStan\Type\NullType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), + )), + 'keyType' => + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'dbsignature', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + 1 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'grouper', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + ), + 'normalized' => false, + 'sortedTypes' => true, + 'cachedDescriptions' => + array ( + 2 => '\'dbsignature\'|\'grouper\'', + ), + )), + 'keyTypes' => + array ( + 0 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'dbsignature', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + 1 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'grouper', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + ), + 'valueTypes' => + array ( + 0 => + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\StringType::__set_state(array( + )), + 1 => + \PHPStan\Type\NullType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), + )), + 1 => + \PHPStan\Type\IntegerType::__set_state(array( + )), + ), + 'optionalKeys' => + array ( + ), + 'isList' => + \PHPStan\TrinaryLogic::__set_state(array( + 'value' => -1, + )), + 'allArrays' => NULL, + 'nextAutoIndexes' => + array ( + 0 => 0, + ), + )), + ), + ), + 'SELECT column_name, column_default, is_nullable + FROM information_schema.columns + WHERE table_name = \'1970-01-01\'' => + array ( + 'result' => + array ( + 5 => + \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( + 'itemType' => + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\StringType::__set_state(array( + )), + 1 => + \PHPStan\Type\NullType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), + )), + 'keyType' => + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 0, + )), + 1 => + \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 1, + )), + 2 => + \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 2, + )), + 3 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'COLUMN_DEFAULT', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'COLUMN_DEFAULT', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + )), + 4 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'COLUMN_NAME', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'COLUMN_NAME', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + )), + 5 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'IS_NULLABLE', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'IS_NULLABLE', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + )), + ), + 'normalized' => false, + 'sortedTypes' => true, + 'cachedDescriptions' => + array ( + 2 => '0|1|2|\'COLUMN_DEFAULT\'|\'COLUMN_NAME\'|\'IS_NULLABLE\'', + ), + )), + 'keyTypes' => + array ( + 0 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'COLUMN_NAME', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'COLUMN_NAME', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + )), + 1 => + \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 0, + )), + 2 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'COLUMN_DEFAULT', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'COLUMN_DEFAULT', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + )), + 3 => + \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 1, + )), + 4 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'IS_NULLABLE', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'IS_NULLABLE', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + )), + 5 => + \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 2, + )), + ), + 'valueTypes' => + array ( + 0 => + \PHPStan\Type\StringType::__set_state(array( + )), + 1 => + \PHPStan\Type\StringType::__set_state(array( + )), + 2 => + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\StringType::__set_state(array( + )), + 1 => + \PHPStan\Type\NullType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), + )), + 3 => + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\StringType::__set_state(array( + )), + 1 => + \PHPStan\Type\NullType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), + )), + 4 => + \PHPStan\Type\StringType::__set_state(array( + )), + 5 => + \PHPStan\Type\StringType::__set_state(array( + )), + ), + 'optionalKeys' => + array ( + ), + 'isList' => + \PHPStan\TrinaryLogic::__set_state(array( + 'value' => -1, + )), + 'allArrays' => NULL, + 'nextAutoIndexes' => + array ( + 0 => 3, + ), + )), ), ), ), diff --git a/.phpstan-dba-pdo-mysql.cache b/.phpstan-dba-pdo-mysql.cache index 24cc16d69..f2d1e37e1 100644 --- a/.phpstan-dba-pdo-mysql.cache +++ b/.phpstan-dba-pdo-mysql.cache @@ -242,9 +242,7 @@ \PHPStan\Type\StringType::__set_state(array( )), 1 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\IntegerType::__set_state(array( )), 2 => \PHPStan\Type\NullType::__set_state(array( @@ -329,10 +327,9 @@ )), ), 'normalized' => true, - 'sortedTypes' => true, + 'sortedTypes' => false, 'cachedDescriptions' => array ( - 2 => 'string|null', ), )), 1 => @@ -347,22 +344,16 @@ )), ), 'normalized' => true, - 'sortedTypes' => true, + 'sortedTypes' => false, 'cachedDescriptions' => array ( - 3 => 'string|null', - 2 => 'string|null', ), )), 2 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\IntegerType::__set_state(array( )), 3 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\IntegerType::__set_state(array( )), ), 'optionalKeys' => @@ -388,9 +379,7 @@ \PHPStan\Type\StringType::__set_state(array( )), 1 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\IntegerType::__set_state(array( )), 2 => \PHPStan\Type\NullType::__set_state(array( @@ -465,9 +454,7 @@ ), )), 1 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\IntegerType::__set_state(array( )), ), 'optionalKeys' => @@ -528,12 +515,12 @@ )), 3 => \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'column_default', + 'value' => 'COLUMN_DEFAULT', 'isClassString' => false, 'objectType' => NULL, 'arrayKeyType' => \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'column_default', + 'value' => 'COLUMN_DEFAULT', 'isClassString' => false, 'objectType' => NULL, 'arrayKeyType' => NULL, @@ -541,12 +528,12 @@ )), 4 => \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'column_name', + 'value' => 'COLUMN_NAME', 'isClassString' => false, 'objectType' => NULL, 'arrayKeyType' => \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'column_name', + 'value' => 'COLUMN_NAME', 'isClassString' => false, 'objectType' => NULL, 'arrayKeyType' => NULL, @@ -554,12 +541,12 @@ )), 5 => \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'is_nullable', + 'value' => 'IS_NULLABLE', 'isClassString' => false, 'objectType' => NULL, 'arrayKeyType' => \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'is_nullable', + 'value' => 'IS_NULLABLE', 'isClassString' => false, 'objectType' => NULL, 'arrayKeyType' => NULL, @@ -570,19 +557,19 @@ 'sortedTypes' => true, 'cachedDescriptions' => array ( - 2 => '0|1|2|\'column_default\'|\'column_name\'|\'is_nullable\'', + 2 => '0|1|2|\'COLUMN_DEFAULT\'|\'COLUMN_NAME\'|\'IS_NULLABLE\'', ), )), 'keyTypes' => array ( 0 => \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'column_name', + 'value' => 'COLUMN_NAME', 'isClassString' => false, 'objectType' => NULL, 'arrayKeyType' => \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'column_name', + 'value' => 'COLUMN_NAME', 'isClassString' => false, 'objectType' => NULL, 'arrayKeyType' => NULL, @@ -594,12 +581,12 @@ )), 2 => \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'column_default', + 'value' => 'COLUMN_DEFAULT', 'isClassString' => false, 'objectType' => NULL, 'arrayKeyType' => \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'column_default', + 'value' => 'COLUMN_DEFAULT', 'isClassString' => false, 'objectType' => NULL, 'arrayKeyType' => NULL, @@ -611,12 +598,12 @@ )), 4 => \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'is_nullable', + 'value' => 'IS_NULLABLE', 'isClassString' => false, 'objectType' => NULL, 'arrayKeyType' => \PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'is_nullable', + 'value' => 'IS_NULLABLE', 'isClassString' => false, 'objectType' => NULL, 'arrayKeyType' => NULL, diff --git a/tests/default/config/.phpunit-phpstan-dba-mysqli.cache b/tests/default/config/.phpunit-phpstan-dba-mysqli.cache index 65bee927e..a8e1c91b4 100644 --- a/tests/default/config/.phpunit-phpstan-dba-mysqli.cache +++ b/tests/default/config/.phpunit-phpstan-dba-mysqli.cache @@ -4472,6 +4472,100 @@ FROM ada' => )), ), ), + 'SELECT adaid, email FROM ada' => + array ( + 'result' => + array ( + 3 => + \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( + 'itemType' => + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + 1 => + \PHPStan\Type\StringType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), + )), + 'keyType' => + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'adaid', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + 1 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'email', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + ), + 'normalized' => false, + 'sortedTypes' => true, + 'cachedDescriptions' => + array ( + 2 => '\'adaid\'|\'email\'', + ), + )), + 'keyTypes' => + array ( + 0 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'adaid', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + 1 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'email', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + ), + 'valueTypes' => + array ( + 0 => + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + 1 => + \PHPStan\Type\StringType::__set_state(array( + )), + ), + 'optionalKeys' => + array ( + ), + 'isList' => + \PHPStan\TrinaryLogic::__set_state(array( + 'value' => -1, + )), + 'allArrays' => NULL, + 'nextAutoIndexes' => + array ( + 0 => 0, + ), + )), + ), + ), 'SELECT akid FROM ak WHERE eadavk>1.0' => array ( 'result' => @@ -4624,6 +4718,99 @@ FROM ada' => )), ), ), + 'SELECT c_datetime FROM typemix' => + array ( + 'result' => + array ( + 3 => + \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( + 'itemType' => + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\ObjectType::__set_state(array( + 'className' => 'DateTimeImmutable', + 'classReflection' => NULL, + 'subtractedType' => NULL, + 'cachedParent' => NULL, + 'cachedInterfaces' => NULL, + 'currentAncestors' => + array ( + ), + 'cachedDescription' => NULL, + )), + 1 => + \PHPStan\Type\NullType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), + )), + 'keyType' => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'c_datetime', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + 'keyTypes' => + array ( + 0 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'c_datetime', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + ), + 'valueTypes' => + array ( + 0 => + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\ObjectType::__set_state(array( + 'className' => 'DateTimeImmutable', + 'classReflection' => NULL, + 'subtractedType' => NULL, + 'cachedParent' => NULL, + 'cachedInterfaces' => NULL, + 'currentAncestors' => + array ( + ), + 'cachedDescription' => NULL, + )), + 1 => + \PHPStan\Type\NullType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), + )), + ), + 'optionalKeys' => + array ( + ), + 'isList' => + \PHPStan\TrinaryLogic::__set_state(array( + 'value' => -1, + )), + 'allArrays' => NULL, + 'nextAutoIndexes' => + array ( + 0 => 0, + ), + )), + ), + ), 'SELECT count(*) FROM typemix WHERE c_date = \'1970-01-01\'' => array ( 'result' => @@ -5021,6 +5208,47 @@ FROM ada' => 0 => 1, ), )), + 3 => + \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( + 'itemType' => + \PHPStan\Type\StringType::__set_state(array( + )), + 'keyType' => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'email', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + 'keyTypes' => + array ( + 0 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'email', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + ), + 'valueTypes' => + array ( + 0 => + \PHPStan\Type\StringType::__set_state(array( + )), + ), + 'optionalKeys' => + array ( + ), + 'isList' => + \PHPStan\TrinaryLogic::__set_state(array( + 'value' => -1, + )), + 'allArrays' => NULL, + 'nextAutoIndexes' => + array ( + 0 => 0, + ), + )), ), ), 'SELECT email adaid WHERE gesperrt freigabe1u1 FROM ada' => @@ -5147,6 +5375,94 @@ FROM ada' => 0 => 2, ), )), + 3 => + \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( + 'itemType' => + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\StringType::__set_state(array( + )), + 1 => + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), + )), + 'keyType' => + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'adaid', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + 1 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'email', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + ), + 'normalized' => false, + 'sortedTypes' => true, + 'cachedDescriptions' => + array ( + 2 => '\'adaid\'|\'email\'', + ), + )), + 'keyTypes' => + array ( + 0 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'email', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + 1 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'adaid', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + ), + 'valueTypes' => + array ( + 0 => + \PHPStan\Type\StringType::__set_state(array( + )), + 1 => + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + ), + 'optionalKeys' => + array ( + ), + 'isList' => + \PHPStan\TrinaryLogic::__set_state(array( + 'value' => -1, + )), + 'allArrays' => NULL, + 'nextAutoIndexes' => + array ( + 0 => 0, + ), + )), ), ), 'SELECT email, adaid FROM ada LIMIT 1' => @@ -7361,6 +7677,100 @@ FROM ada' => )), ), ), + 'SELECT email, adaid FROM ada where adaid = \'1\'' => + array ( + 'result' => + array ( + 3 => + \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( + 'itemType' => + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\StringType::__set_state(array( + )), + 1 => + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), + )), + 'keyType' => + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'adaid', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + 1 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'email', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + ), + 'normalized' => false, + 'sortedTypes' => true, + 'cachedDescriptions' => + array ( + 2 => '\'adaid\'|\'email\'', + ), + )), + 'keyTypes' => + array ( + 0 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'email', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + 1 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'adaid', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + ), + 'valueTypes' => + array ( + 0 => + \PHPStan\Type\StringType::__set_state(array( + )), + 1 => + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + ), + 'optionalKeys' => + array ( + ), + 'isList' => + \PHPStan\TrinaryLogic::__set_state(array( + 'value' => -1, + )), + 'allArrays' => NULL, + 'nextAutoIndexes' => + array ( + 0 => 0, + ), + )), + ), + ), 'SELECT email, adaid, "xy" as b FROM ada WHERE adaid = \'1970-01-01\'' => array ( 'result' => @@ -7725,6 +8135,85 @@ FROM ada' => )), ), ), + 'SELECT max(adaid) FROM ada' => + array ( + 'result' => + array ( + 3 => + \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( + 'itemType' => + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + 1 => + \PHPStan\Type\NullType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), + )), + 'keyType' => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'max(adaid)', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + 'keyTypes' => + array ( + 0 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'max(adaid)', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + ), + 'valueTypes' => + array ( + 0 => + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + 1 => + \PHPStan\Type\NullType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), + )), + ), + 'optionalKeys' => + array ( + ), + 'isList' => + \PHPStan\TrinaryLogic::__set_state(array( + 'value' => -1, + )), + 'allArrays' => NULL, + 'nextAutoIndexes' => + array ( + 0 => 0, + ), + )), + ), + ), ), 'runtimeConfig' => array ( diff --git a/tests/default/config/.phpunit-phpstan-dba-pdo-mysql.cache b/tests/default/config/.phpunit-phpstan-dba-pdo-mysql.cache index 973f6620a..816dee886 100644 --- a/tests/default/config/.phpunit-phpstan-dba-pdo-mysql.cache +++ b/tests/default/config/.phpunit-phpstan-dba-pdo-mysql.cache @@ -4472,6 +4472,100 @@ FROM ada' => )), ), ), + 'SELECT adaid, email FROM ada' => + array ( + 'result' => + array ( + 3 => + \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( + 'itemType' => + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + 1 => + \PHPStan\Type\StringType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), + )), + 'keyType' => + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'adaid', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + 1 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'email', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + ), + 'normalized' => false, + 'sortedTypes' => true, + 'cachedDescriptions' => + array ( + 2 => '\'adaid\'|\'email\'', + ), + )), + 'keyTypes' => + array ( + 0 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'adaid', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + 1 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'email', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + ), + 'valueTypes' => + array ( + 0 => + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + 1 => + \PHPStan\Type\StringType::__set_state(array( + )), + ), + 'optionalKeys' => + array ( + ), + 'isList' => + \PHPStan\TrinaryLogic::__set_state(array( + 'value' => -1, + )), + 'allArrays' => NULL, + 'nextAutoIndexes' => + array ( + 0 => 0, + ), + )), + ), + ), 'SELECT akid FROM ak WHERE eadavk>1.0' => array ( 'result' => @@ -4624,6 +4718,99 @@ FROM ada' => )), ), ), + 'SELECT c_datetime FROM typemix' => + array ( + 'result' => + array ( + 3 => + \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( + 'itemType' => + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\ObjectType::__set_state(array( + 'className' => 'DateTimeImmutable', + 'classReflection' => NULL, + 'subtractedType' => NULL, + 'cachedParent' => NULL, + 'cachedInterfaces' => NULL, + 'currentAncestors' => + array ( + ), + 'cachedDescription' => NULL, + )), + 1 => + \PHPStan\Type\NullType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), + )), + 'keyType' => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'c_datetime', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + 'keyTypes' => + array ( + 0 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'c_datetime', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + ), + 'valueTypes' => + array ( + 0 => + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\ObjectType::__set_state(array( + 'className' => 'DateTimeImmutable', + 'classReflection' => NULL, + 'subtractedType' => NULL, + 'cachedParent' => NULL, + 'cachedInterfaces' => NULL, + 'currentAncestors' => + array ( + ), + 'cachedDescription' => NULL, + )), + 1 => + \PHPStan\Type\NullType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), + )), + ), + 'optionalKeys' => + array ( + ), + 'isList' => + \PHPStan\TrinaryLogic::__set_state(array( + 'value' => -1, + )), + 'allArrays' => NULL, + 'nextAutoIndexes' => + array ( + 0 => 0, + ), + )), + ), + ), 'SELECT count(*) FROM typemix WHERE c_date = \'1970-01-01\'' => array ( 'result' => @@ -5021,6 +5208,47 @@ FROM ada' => 0 => 1, ), )), + 3 => + \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( + 'itemType' => + \PHPStan\Type\StringType::__set_state(array( + )), + 'keyType' => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'email', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + 'keyTypes' => + array ( + 0 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'email', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + ), + 'valueTypes' => + array ( + 0 => + \PHPStan\Type\StringType::__set_state(array( + )), + ), + 'optionalKeys' => + array ( + ), + 'isList' => + \PHPStan\TrinaryLogic::__set_state(array( + 'value' => -1, + )), + 'allArrays' => NULL, + 'nextAutoIndexes' => + array ( + 0 => 0, + ), + )), ), ), 'SELECT email adaid WHERE gesperrt freigabe1u1 FROM ada' => @@ -5147,6 +5375,94 @@ FROM ada' => 0 => 2, ), )), + 3 => + \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( + 'itemType' => + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\StringType::__set_state(array( + )), + 1 => + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), + )), + 'keyType' => + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'adaid', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + 1 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'email', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + ), + 'normalized' => false, + 'sortedTypes' => true, + 'cachedDescriptions' => + array ( + 2 => '\'adaid\'|\'email\'', + ), + )), + 'keyTypes' => + array ( + 0 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'email', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + 1 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'adaid', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + ), + 'valueTypes' => + array ( + 0 => + \PHPStan\Type\StringType::__set_state(array( + )), + 1 => + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + ), + 'optionalKeys' => + array ( + ), + 'isList' => + \PHPStan\TrinaryLogic::__set_state(array( + 'value' => -1, + )), + 'allArrays' => NULL, + 'nextAutoIndexes' => + array ( + 0 => 0, + ), + )), ), ), 'SELECT email, adaid FROM ada LIMIT 1' => @@ -7361,6 +7677,100 @@ FROM ada' => )), ), ), + 'SELECT email, adaid FROM ada where adaid = \'1\'' => + array ( + 'result' => + array ( + 3 => + \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( + 'itemType' => + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\StringType::__set_state(array( + )), + 1 => + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), + )), + 'keyType' => + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'adaid', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + 1 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'email', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + ), + 'normalized' => false, + 'sortedTypes' => true, + 'cachedDescriptions' => + array ( + 2 => '\'adaid\'|\'email\'', + ), + )), + 'keyTypes' => + array ( + 0 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'email', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + 1 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'adaid', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + ), + 'valueTypes' => + array ( + 0 => + \PHPStan\Type\StringType::__set_state(array( + )), + 1 => + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + ), + 'optionalKeys' => + array ( + ), + 'isList' => + \PHPStan\TrinaryLogic::__set_state(array( + 'value' => -1, + )), + 'allArrays' => NULL, + 'nextAutoIndexes' => + array ( + 0 => 0, + ), + )), + ), + ), 'SELECT email, adaid, "xy" as b FROM ada WHERE adaid = \'1970-01-01\'' => array ( 'result' => @@ -7725,6 +8135,85 @@ FROM ada' => )), ), ), + 'SELECT max(adaid) FROM ada' => + array ( + 'result' => + array ( + 3 => + \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( + 'itemType' => + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + 1 => + \PHPStan\Type\NullType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), + )), + 'keyType' => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'max(adaid)', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + 'keyTypes' => + array ( + 0 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'max(adaid)', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + ), + 'valueTypes' => + array ( + 0 => + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + 1 => + \PHPStan\Type\NullType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), + )), + ), + 'optionalKeys' => + array ( + ), + 'isList' => + \PHPStan\TrinaryLogic::__set_state(array( + 'value' => -1, + )), + 'allArrays' => NULL, + 'nextAutoIndexes' => + array ( + 0 => 0, + ), + )), + ), + ), ), 'runtimeConfig' => array ( diff --git a/tests/rules/config/.phpunit-phpstan-dba-mysqli.cache b/tests/rules/config/.phpunit-phpstan-dba-mysqli.cache index 5852e8194..1db9f3ae4 100644 --- a/tests/rules/config/.phpunit-phpstan-dba-mysqli.cache +++ b/tests/rules/config/.phpunit-phpstan-dba-mysqli.cache @@ -11,6 +11,16 @@ 'code' => 1146, )), ), + 'EXPLAIN INSERT INTO `ada` SET email="test" WHERE adaid = 1' => + array ( + 'error' => + \staabm\PHPStanDba\Error::__set_state(array( + 'message' => 'You have an error in your SQL syntax; check the manual that corresponds to your MySQL/MariaDB server version for the right syntax to use near \'WHERE adaid = 1\' at line 1 + +Simulated query: EXPLAIN INSERT INTO `ada` SET email="test" WHERE adaid = 1', + 'code' => 1064, + )), + ), 'EXPLAIN INSERT into adasfd SET email="sdf"' => array ( 'error' => @@ -19,6 +29,16 @@ 'code' => 1146, )), ), + 'EXPLAIN REPLACE INTO `ada` SET email="test" WHERE adaid = 1' => + array ( + 'error' => + \staabm\PHPStanDba\Error::__set_state(array( + 'message' => 'You have an error in your SQL syntax; check the manual that corresponds to your MySQL/MariaDB server version for the right syntax to use near \'WHERE adaid = 1\' at line 1 + +Simulated query: EXPLAIN REPLACE INTO `ada` SET email="test" WHERE adaid = 1', + 'code' => 1064, + )), + ), 'EXPLAIN REPLACE into adasfd SET email="sdf"' => array ( 'error' => @@ -71,11 +91,11 @@ Simulated query: SELECT * FROM 1 LIMIT 0', 'code' => 1064, )), ), - 'SELECT * FROM ada' => + 'SELECT * FROM `ada` WHERE adaid = 1' => array ( 'result' => array ( - 3 => + 5 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => \PHPStan\Type\UnionType::__set_state(array( @@ -101,27 +121,43 @@ Simulated query: SELECT * FROM 1 LIMIT 0', 'types' => array ( 0 => + \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 0, + )), + 1 => + \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 1, + )), + 2 => + \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 2, + )), + 3 => + \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 3, + )), + 4 => \PHPStan\Type\Constant\ConstantStringType::__set_state(array( 'value' => 'adaid', 'isClassString' => false, 'objectType' => NULL, 'arrayKeyType' => NULL, )), - 1 => + 5 => \PHPStan\Type\Constant\ConstantStringType::__set_state(array( 'value' => 'email', 'isClassString' => false, 'objectType' => NULL, 'arrayKeyType' => NULL, )), - 2 => + 6 => \PHPStan\Type\Constant\ConstantStringType::__set_state(array( 'value' => 'freigabe1u1', 'isClassString' => false, 'objectType' => NULL, 'arrayKeyType' => NULL, )), - 3 => + 7 => \PHPStan\Type\Constant\ConstantStringType::__set_state(array( 'value' => 'gesperrt', 'isClassString' => false, @@ -133,7 +169,7 @@ Simulated query: SELECT * FROM 1 LIMIT 0', 'sortedTypes' => true, 'cachedDescriptions' => array ( - 2 => '\'adaid\'|\'email\'|\'freigabe1u1\'|\'gesperrt\'', + 2 => '0|1|2|3|\'adaid\'|\'email\'|\'freigabe1u1\'|\'gesperrt\'', ), )), 'keyTypes' => @@ -146,26 +182,1108 @@ Simulated query: SELECT * FROM 1 LIMIT 0', 'arrayKeyType' => NULL, )), 1 => + \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 0, + )), + 2 => \PHPStan\Type\Constant\ConstantStringType::__set_state(array( 'value' => 'gesperrt', 'isClassString' => false, 'objectType' => NULL, 'arrayKeyType' => NULL, )), + 3 => + \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 1, + )), + 4 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'email', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + 5 => + \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 2, + )), + 6 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'freigabe1u1', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + 7 => + \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 3, + )), + ), + 'valueTypes' => + array ( + 0 => + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + 1 => + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + 2 => + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -128, + 'max' => 127, + )), + 3 => + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -128, + 'max' => 127, + )), + 4 => + \PHPStan\Type\StringType::__set_state(array( + )), + 5 => + \PHPStan\Type\StringType::__set_state(array( + )), + 6 => + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + 7 => + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + ), + 'optionalKeys' => + array ( + ), + 'isList' => + \PHPStan\TrinaryLogic::__set_state(array( + 'value' => -1, + )), + 'allArrays' => NULL, + 'nextAutoIndexes' => + array ( + 0 => 4, + ), + )), + ), + ), + 'SELECT * FROM `ada` WHERE email = \'test@example.com\';' => + array ( + 'result' => + array ( + 5 => + \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( + 'itemType' => + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + 1 => + \PHPStan\Type\StringType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), + )), + 'keyType' => + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 0, + )), + 1 => + \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 1, + )), + 2 => + \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 2, + )), + 3 => + \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 3, + )), + 4 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'adaid', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + 5 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'email', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + 6 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'freigabe1u1', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + 7 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'gesperrt', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + ), + 'normalized' => false, + 'sortedTypes' => true, + 'cachedDescriptions' => + array ( + 2 => '0|1|2|3|\'adaid\'|\'email\'|\'freigabe1u1\'|\'gesperrt\'', + ), + )), + 'keyTypes' => + array ( + 0 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'adaid', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + 1 => + \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 0, + )), 2 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'gesperrt', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + 3 => + \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 1, + )), + 4 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'email', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + 5 => + \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 2, + )), + 6 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'freigabe1u1', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + 7 => + \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 3, + )), + ), + 'valueTypes' => + array ( + 0 => + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + 1 => + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + 2 => + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -128, + 'max' => 127, + )), + 3 => + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -128, + 'max' => 127, + )), + 4 => + \PHPStan\Type\StringType::__set_state(array( + )), + 5 => + \PHPStan\Type\StringType::__set_state(array( + )), + 6 => + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + 7 => + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + ), + 'optionalKeys' => + array ( + ), + 'isList' => + \PHPStan\TrinaryLogic::__set_state(array( + 'value' => -1, + )), + 'allArrays' => NULL, + 'nextAutoIndexes' => + array ( + 0 => 4, + ), + )), + ), + ), + 'SELECT * FROM ada' => + array ( + 'result' => + array ( + 3 => + \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( + 'itemType' => + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + 1 => + \PHPStan\Type\StringType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), + )), + 'keyType' => + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'adaid', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + 1 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'email', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + 2 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'freigabe1u1', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + 3 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'gesperrt', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + ), + 'normalized' => false, + 'sortedTypes' => true, + 'cachedDescriptions' => + array ( + 2 => '\'adaid\'|\'email\'|\'freigabe1u1\'|\'gesperrt\'', + ), + )), + 'keyTypes' => + array ( + 0 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'adaid', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + 1 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'gesperrt', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + 2 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'email', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + 3 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'freigabe1u1', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + ), + 'valueTypes' => + array ( + 0 => + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + 1 => + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -128, + 'max' => 127, + )), + 2 => + \PHPStan\Type\StringType::__set_state(array( + )), + 3 => + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + ), + 'optionalKeys' => + array ( + ), + 'isList' => + \PHPStan\TrinaryLogic::__set_state(array( + 'value' => -1, + )), + 'allArrays' => NULL, + 'nextAutoIndexes' => + array ( + 0 => 0, + ), + )), + ), + ), + 'SELECT * FROM ada GROUP BY doesNotExist' => + array ( + 'error' => + \staabm\PHPStanDba\Error::__set_state(array( + 'message' => 'Unknown column \'doesNotExist\' in \'group statement\'', + 'code' => 1054, + )), + ), + 'SELECT * FROM ada ORDER BY doesNotExist' => + array ( + 'error' => + \staabm\PHPStanDba\Error::__set_state(array( + 'message' => 'Unknown column \'doesNotExist\' in \'order clause\'', + 'code' => 1054, + )), + ), + 'SELECT * FROM ada WHERE adaid = \'1\'' => + array ( + 'result' => + array ( + 5 => + \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( + 'itemType' => + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + 1 => + \PHPStan\Type\StringType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), + )), + 'keyType' => + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 0, + )), + 1 => + \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 1, + )), + 2 => + \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 2, + )), + 3 => + \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 3, + )), + 4 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'adaid', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + 5 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'email', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + 6 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'freigabe1u1', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + 7 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'gesperrt', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + ), + 'normalized' => false, + 'sortedTypes' => true, + 'cachedDescriptions' => + array ( + 2 => '0|1|2|3|\'adaid\'|\'email\'|\'freigabe1u1\'|\'gesperrt\'', + ), + )), + 'keyTypes' => + array ( + 0 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'adaid', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + 1 => + \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 0, + )), + 2 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'gesperrt', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + 3 => + \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 1, + )), + 4 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'email', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + 5 => + \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 2, + )), + 6 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'freigabe1u1', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + 7 => + \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 3, + )), + ), + 'valueTypes' => + array ( + 0 => + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + 1 => + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + 2 => + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -128, + 'max' => 127, + )), + 3 => + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -128, + 'max' => 127, + )), + 4 => + \PHPStan\Type\StringType::__set_state(array( + )), + 5 => + \PHPStan\Type\StringType::__set_state(array( + )), + 6 => + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + 7 => + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + ), + 'optionalKeys' => + array ( + ), + 'isList' => + \PHPStan\TrinaryLogic::__set_state(array( + 'value' => -1, + )), + 'allArrays' => NULL, + 'nextAutoIndexes' => + array ( + 0 => 4, + ), + )), + ), + ), + 'SELECT * FROM ada WHERE doesNotExist=1' => + array ( + 'error' => + \staabm\PHPStanDba\Error::__set_state(array( + 'message' => 'Unknown column \'doesNotExist\' in \'where clause\'', + 'code' => 1054, + )), + ), + 'SELECT * FROM ada WHERE email = \'1970-01-01\'' => + array ( + 'result' => + array ( + 5 => + \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( + 'itemType' => + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + 1 => + \PHPStan\Type\StringType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), + )), + 'keyType' => + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 0, + )), + 1 => + \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 1, + )), + 2 => + \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 2, + )), + 3 => + \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 3, + )), + 4 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'adaid', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + 5 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'email', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + 6 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'freigabe1u1', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + 7 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'gesperrt', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + ), + 'normalized' => false, + 'sortedTypes' => true, + 'cachedDescriptions' => + array ( + 2 => '0|1|2|3|\'adaid\'|\'email\'|\'freigabe1u1\'|\'gesperrt\'', + ), + )), + 'keyTypes' => + array ( + 0 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'adaid', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + 1 => + \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 0, + )), + 2 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'gesperrt', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + 3 => + \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 1, + )), + 4 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'email', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + 5 => + \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 2, + )), + 6 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'freigabe1u1', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + 7 => + \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 3, + )), + ), + 'valueTypes' => + array ( + 0 => + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + 1 => + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + 2 => + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -128, + 'max' => 127, + )), + 3 => + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -128, + 'max' => 127, + )), + 4 => + \PHPStan\Type\StringType::__set_state(array( + )), + 5 => + \PHPStan\Type\StringType::__set_state(array( + )), + 6 => + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + 7 => + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + ), + 'optionalKeys' => + array ( + ), + 'isList' => + \PHPStan\TrinaryLogic::__set_state(array( + 'value' => -1, + )), + 'allArrays' => NULL, + 'nextAutoIndexes' => + array ( + 0 => 4, + ), + )), + ), + ), + 'SELECT * FROM ada WHERE email = \'1970-01-01\' LIMIT \'27\' OFFSET \'15\'' => + array ( + 'result' => + array ( + 5 => + \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( + 'itemType' => + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + 1 => + \PHPStan\Type\StringType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), + )), + 'keyType' => + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 0, + )), + 1 => + \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 1, + )), + 2 => + \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 2, + )), + 3 => + \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 3, + )), + 4 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'adaid', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + 5 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'email', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + 6 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'freigabe1u1', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + 7 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'gesperrt', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + ), + 'normalized' => false, + 'sortedTypes' => true, + 'cachedDescriptions' => + array ( + 2 => '0|1|2|3|\'adaid\'|\'email\'|\'freigabe1u1\'|\'gesperrt\'', + ), + )), + 'keyTypes' => + array ( + 0 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'adaid', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + 1 => + \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 0, + )), + 2 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'gesperrt', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + 3 => + \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 1, + )), + 4 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'email', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + 5 => + \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 2, + )), + 6 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'freigabe1u1', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + 7 => + \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 3, + )), + ), + 'valueTypes' => + array ( + 0 => + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + 1 => + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + 2 => + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -128, + 'max' => 127, + )), + 3 => + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -128, + 'max' => 127, + )), + 4 => + \PHPStan\Type\StringType::__set_state(array( + )), + 5 => + \PHPStan\Type\StringType::__set_state(array( + )), + 6 => + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + 7 => + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + ), + 'optionalKeys' => + array ( + ), + 'isList' => + \PHPStan\TrinaryLogic::__set_state(array( + 'value' => -1, + )), + 'allArrays' => NULL, + 'nextAutoIndexes' => + array ( + 0 => 4, + ), + )), + ), + ), + 'SELECT * FROM ada WHERE email = \'1970-01-01\' LIMIT 5 OFFSET 2' => + array ( + 'result' => + array ( + 5 => + \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( + 'itemType' => + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + 1 => + \PHPStan\Type\StringType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), + )), + 'keyType' => + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 0, + )), + 1 => + \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 1, + )), + 2 => + \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 2, + )), + 3 => + \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 3, + )), + 4 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'adaid', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + 5 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'email', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + 6 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'freigabe1u1', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + 7 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'gesperrt', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + ), + 'normalized' => false, + 'sortedTypes' => true, + 'cachedDescriptions' => + array ( + 2 => '0|1|2|3|\'adaid\'|\'email\'|\'freigabe1u1\'|\'gesperrt\'', + ), + )), + 'keyTypes' => + array ( + 0 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'adaid', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + 1 => + \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 0, + )), + 2 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'gesperrt', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + 3 => + \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 1, + )), + 4 => \PHPStan\Type\Constant\ConstantStringType::__set_state(array( 'value' => 'email', 'isClassString' => false, 'objectType' => NULL, 'arrayKeyType' => NULL, )), - 3 => + 5 => + \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 2, + )), + 6 => \PHPStan\Type\Constant\ConstantStringType::__set_state(array( 'value' => 'freigabe1u1', 'isClassString' => false, 'objectType' => NULL, 'arrayKeyType' => NULL, )), + 7 => + \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 3, + )), ), 'valueTypes' => array ( @@ -175,14 +1293,32 @@ Simulated query: SELECT * FROM 1 LIMIT 0', 'max' => 32767, )), 1 => + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + 2 => \PHPStan\Type\IntegerRangeType::__set_state(array( 'min' => -128, 'max' => 127, )), - 2 => + 3 => + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -128, + 'max' => 127, + )), + 4 => \PHPStan\Type\StringType::__set_state(array( )), - 3 => + 5 => + \PHPStan\Type\StringType::__set_state(array( + )), + 6 => + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + 7 => \PHPStan\Type\IntegerRangeType::__set_state(array( 'min' => -32768, 'max' => 32767, @@ -198,35 +1334,11 @@ Simulated query: SELECT * FROM 1 LIMIT 0', 'allArrays' => NULL, 'nextAutoIndexes' => array ( - 0 => 0, + 0 => 4, ), )), ), ), - 'SELECT * FROM ada GROUP BY doesNotExist' => - array ( - 'error' => - \staabm\PHPStanDba\Error::__set_state(array( - 'message' => 'Unknown column \'doesNotExist\' in \'group statement\'', - 'code' => 1054, - )), - ), - 'SELECT * FROM ada ORDER BY doesNotExist' => - array ( - 'error' => - \staabm\PHPStanDba\Error::__set_state(array( - 'message' => 'Unknown column \'doesNotExist\' in \'order clause\'', - 'code' => 1054, - )), - ), - 'SELECT * FROM ada WHERE doesNotExist=1' => - array ( - 'error' => - \staabm\PHPStanDba\Error::__set_state(array( - 'message' => 'Unknown column \'doesNotExist\' in \'where clause\'', - 'code' => 1054, - )), - ), 'SELECT * FROM ak' => array ( 'result' => @@ -1400,6 +2512,211 @@ Simulated query: SELECT * FROM 1 LIMIT 0', 'code' => 1146, )), ), + 'SELECT *,adaid FROM `ada` WHERE email = \'test@example.com\';' => + array ( + 'result' => + array ( + 5 => + \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( + 'itemType' => + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + 1 => + \PHPStan\Type\StringType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), + )), + 'keyType' => + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 0, + )), + 1 => + \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 1, + )), + 2 => + \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 2, + )), + 3 => + \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 3, + )), + 4 => + \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 4, + )), + 5 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'adaid', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + 6 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'email', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + 7 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'freigabe1u1', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + 8 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'gesperrt', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + ), + 'normalized' => false, + 'sortedTypes' => true, + 'cachedDescriptions' => + array ( + 2 => '0|1|2|3|4|\'adaid\'|\'email\'|\'freigabe1u1\'|\'gesperrt\'', + ), + )), + 'keyTypes' => + array ( + 0 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'adaid', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + 1 => + \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 0, + )), + 2 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'gesperrt', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + 3 => + \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 1, + )), + 4 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'email', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + 5 => + \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 2, + )), + 6 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'freigabe1u1', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + 7 => + \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 3, + )), + 8 => + \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 4, + )), + ), + 'valueTypes' => + array ( + 0 => + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + 1 => + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + 2 => + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -128, + 'max' => 127, + )), + 3 => + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -128, + 'max' => 127, + )), + 4 => + \PHPStan\Type\StringType::__set_state(array( + )), + 5 => + \PHPStan\Type\StringType::__set_state(array( + )), + 6 => + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + 7 => + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + 8 => + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + ), + 'optionalKeys' => + array ( + ), + 'isList' => + \PHPStan\TrinaryLogic::__set_state(array( + 'value' => -1, + )), + 'allArrays' => NULL, + 'nextAutoIndexes' => + array ( + 0 => 5, + ), + )), + ), + ), + 'SELECT FROM WHERE' => + array ( + 'error' => + \staabm\PHPStanDba\Error::__set_state(array( + 'message' => 'You have an error in your SQL syntax; check the manual that corresponds to your MySQL/MariaDB server version for the right syntax to use near \'FROM WHERE LIMIT 0\' at line 1 + +Simulated query: SELECT FROM WHERE LIMIT 0', + 'code' => 1064, + )), + ), 'SELECT adaid FROM ada WHERE email=\'1970-01-01\'' => array ( 'result' => diff --git a/tests/rules/config/.phpunit-phpstan-dba-pdo-mysql.cache b/tests/rules/config/.phpunit-phpstan-dba-pdo-mysql.cache index a6572e363..e55f91551 100644 --- a/tests/rules/config/.phpunit-phpstan-dba-pdo-mysql.cache +++ b/tests/rules/config/.phpunit-phpstan-dba-pdo-mysql.cache @@ -32,6 +32,16 @@ 'code' => '42S02', )), ), + 'EXPLAIN INSERT INTO `ada` SET email="test" WHERE adaid = 1' => + array ( + 'error' => + \staabm\PHPStanDba\Error::__set_state(array( + 'message' => 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL/MariaDB server version for the right syntax to use near \'WHERE adaid = 1\' at line 1 + +Simulated query: EXPLAIN INSERT INTO `ada` SET email="test" WHERE adaid = 1', + 'code' => '42000', + )), + ), 'EXPLAIN INSERT into adasfd SET email="sdf"' => array ( 'error' => @@ -40,6 +50,16 @@ 'code' => '42S02', )), ), + 'EXPLAIN REPLACE INTO `ada` SET email="test" WHERE adaid = 1' => + array ( + 'error' => + \staabm\PHPStanDba\Error::__set_state(array( + 'message' => 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL/MariaDB server version for the right syntax to use near \'WHERE adaid = 1\' at line 1 + +Simulated query: EXPLAIN REPLACE INTO `ada` SET email="test" WHERE adaid = 1', + 'code' => '42000', + )), + ), 'EXPLAIN REPLACE into adasfd SET email="sdf"' => array ( 'error' => @@ -92,11 +112,11 @@ Simulated query: SELECT * FROM 1 LIMIT 0', 'code' => '42000', )), ), - 'SELECT * FROM ada' => + 'SELECT * FROM `ada` WHERE adaid = 1' => array ( 'result' => array ( - 3 => + 5 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => \PHPStan\Type\UnionType::__set_state(array( @@ -122,27 +142,43 @@ Simulated query: SELECT * FROM 1 LIMIT 0', 'types' => array ( 0 => + \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 0, + )), + 1 => + \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 1, + )), + 2 => + \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 2, + )), + 3 => + \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 3, + )), + 4 => \PHPStan\Type\Constant\ConstantStringType::__set_state(array( 'value' => 'adaid', 'isClassString' => false, 'objectType' => NULL, 'arrayKeyType' => NULL, )), - 1 => + 5 => \PHPStan\Type\Constant\ConstantStringType::__set_state(array( 'value' => 'email', 'isClassString' => false, 'objectType' => NULL, 'arrayKeyType' => NULL, )), - 2 => + 6 => \PHPStan\Type\Constant\ConstantStringType::__set_state(array( 'value' => 'freigabe1u1', 'isClassString' => false, 'objectType' => NULL, 'arrayKeyType' => NULL, )), - 3 => + 7 => \PHPStan\Type\Constant\ConstantStringType::__set_state(array( 'value' => 'gesperrt', 'isClassString' => false, @@ -154,7 +190,7 @@ Simulated query: SELECT * FROM 1 LIMIT 0', 'sortedTypes' => true, 'cachedDescriptions' => array ( - 2 => '\'adaid\'|\'email\'|\'freigabe1u1\'|\'gesperrt\'', + 2 => '0|1|2|3|\'adaid\'|\'email\'|\'freigabe1u1\'|\'gesperrt\'', ), )), 'keyTypes' => @@ -167,26 +203,1108 @@ Simulated query: SELECT * FROM 1 LIMIT 0', 'arrayKeyType' => NULL, )), 1 => + \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 0, + )), + 2 => \PHPStan\Type\Constant\ConstantStringType::__set_state(array( 'value' => 'gesperrt', 'isClassString' => false, 'objectType' => NULL, 'arrayKeyType' => NULL, )), + 3 => + \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 1, + )), + 4 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'email', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + 5 => + \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 2, + )), + 6 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'freigabe1u1', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + 7 => + \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 3, + )), + ), + 'valueTypes' => + array ( + 0 => + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + 1 => + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + 2 => + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -128, + 'max' => 127, + )), + 3 => + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -128, + 'max' => 127, + )), + 4 => + \PHPStan\Type\StringType::__set_state(array( + )), + 5 => + \PHPStan\Type\StringType::__set_state(array( + )), + 6 => + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + 7 => + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + ), + 'optionalKeys' => + array ( + ), + 'isList' => + \PHPStan\TrinaryLogic::__set_state(array( + 'value' => -1, + )), + 'allArrays' => NULL, + 'nextAutoIndexes' => + array ( + 0 => 4, + ), + )), + ), + ), + 'SELECT * FROM `ada` WHERE email = \'test@example.com\';' => + array ( + 'result' => + array ( + 5 => + \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( + 'itemType' => + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + 1 => + \PHPStan\Type\StringType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), + )), + 'keyType' => + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 0, + )), + 1 => + \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 1, + )), + 2 => + \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 2, + )), + 3 => + \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 3, + )), + 4 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'adaid', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + 5 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'email', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + 6 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'freigabe1u1', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + 7 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'gesperrt', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + ), + 'normalized' => false, + 'sortedTypes' => true, + 'cachedDescriptions' => + array ( + 2 => '0|1|2|3|\'adaid\'|\'email\'|\'freigabe1u1\'|\'gesperrt\'', + ), + )), + 'keyTypes' => + array ( + 0 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'adaid', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + 1 => + \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 0, + )), 2 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'gesperrt', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + 3 => + \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 1, + )), + 4 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'email', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + 5 => + \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 2, + )), + 6 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'freigabe1u1', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + 7 => + \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 3, + )), + ), + 'valueTypes' => + array ( + 0 => + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + 1 => + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + 2 => + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -128, + 'max' => 127, + )), + 3 => + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -128, + 'max' => 127, + )), + 4 => + \PHPStan\Type\StringType::__set_state(array( + )), + 5 => + \PHPStan\Type\StringType::__set_state(array( + )), + 6 => + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + 7 => + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + ), + 'optionalKeys' => + array ( + ), + 'isList' => + \PHPStan\TrinaryLogic::__set_state(array( + 'value' => -1, + )), + 'allArrays' => NULL, + 'nextAutoIndexes' => + array ( + 0 => 4, + ), + )), + ), + ), + 'SELECT * FROM ada' => + array ( + 'result' => + array ( + 3 => + \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( + 'itemType' => + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + 1 => + \PHPStan\Type\StringType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), + )), + 'keyType' => + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'adaid', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + 1 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'email', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + 2 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'freigabe1u1', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + 3 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'gesperrt', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + ), + 'normalized' => false, + 'sortedTypes' => true, + 'cachedDescriptions' => + array ( + 2 => '\'adaid\'|\'email\'|\'freigabe1u1\'|\'gesperrt\'', + ), + )), + 'keyTypes' => + array ( + 0 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'adaid', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + 1 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'gesperrt', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + 2 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'email', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + 3 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'freigabe1u1', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + ), + 'valueTypes' => + array ( + 0 => + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + 1 => + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -128, + 'max' => 127, + )), + 2 => + \PHPStan\Type\StringType::__set_state(array( + )), + 3 => + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + ), + 'optionalKeys' => + array ( + ), + 'isList' => + \PHPStan\TrinaryLogic::__set_state(array( + 'value' => -1, + )), + 'allArrays' => NULL, + 'nextAutoIndexes' => + array ( + 0 => 0, + ), + )), + ), + ), + 'SELECT * FROM ada GROUP BY doesNotExist' => + array ( + 'error' => + \staabm\PHPStanDba\Error::__set_state(array( + 'message' => 'SQLSTATE[42S22]: Column not found: 1054 Unknown column \'doesNotExist\' in \'group statement\'', + 'code' => '42S22', + )), + ), + 'SELECT * FROM ada ORDER BY doesNotExist' => + array ( + 'error' => + \staabm\PHPStanDba\Error::__set_state(array( + 'message' => 'SQLSTATE[42S22]: Column not found: 1054 Unknown column \'doesNotExist\' in \'order clause\'', + 'code' => '42S22', + )), + ), + 'SELECT * FROM ada WHERE adaid = \'1\'' => + array ( + 'result' => + array ( + 5 => + \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( + 'itemType' => + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + 1 => + \PHPStan\Type\StringType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), + )), + 'keyType' => + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 0, + )), + 1 => + \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 1, + )), + 2 => + \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 2, + )), + 3 => + \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 3, + )), + 4 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'adaid', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + 5 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'email', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + 6 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'freigabe1u1', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + 7 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'gesperrt', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + ), + 'normalized' => false, + 'sortedTypes' => true, + 'cachedDescriptions' => + array ( + 2 => '0|1|2|3|\'adaid\'|\'email\'|\'freigabe1u1\'|\'gesperrt\'', + ), + )), + 'keyTypes' => + array ( + 0 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'adaid', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + 1 => + \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 0, + )), + 2 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'gesperrt', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + 3 => + \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 1, + )), + 4 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'email', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + 5 => + \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 2, + )), + 6 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'freigabe1u1', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + 7 => + \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 3, + )), + ), + 'valueTypes' => + array ( + 0 => + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + 1 => + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + 2 => + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -128, + 'max' => 127, + )), + 3 => + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -128, + 'max' => 127, + )), + 4 => + \PHPStan\Type\StringType::__set_state(array( + )), + 5 => + \PHPStan\Type\StringType::__set_state(array( + )), + 6 => + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + 7 => + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + ), + 'optionalKeys' => + array ( + ), + 'isList' => + \PHPStan\TrinaryLogic::__set_state(array( + 'value' => -1, + )), + 'allArrays' => NULL, + 'nextAutoIndexes' => + array ( + 0 => 4, + ), + )), + ), + ), + 'SELECT * FROM ada WHERE doesNotExist=1' => + array ( + 'error' => + \staabm\PHPStanDba\Error::__set_state(array( + 'message' => 'SQLSTATE[42S22]: Column not found: 1054 Unknown column \'doesNotExist\' in \'where clause\'', + 'code' => '42S22', + )), + ), + 'SELECT * FROM ada WHERE email = \'1970-01-01\'' => + array ( + 'result' => + array ( + 5 => + \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( + 'itemType' => + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + 1 => + \PHPStan\Type\StringType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), + )), + 'keyType' => + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 0, + )), + 1 => + \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 1, + )), + 2 => + \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 2, + )), + 3 => + \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 3, + )), + 4 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'adaid', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + 5 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'email', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + 6 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'freigabe1u1', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + 7 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'gesperrt', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + ), + 'normalized' => false, + 'sortedTypes' => true, + 'cachedDescriptions' => + array ( + 2 => '0|1|2|3|\'adaid\'|\'email\'|\'freigabe1u1\'|\'gesperrt\'', + ), + )), + 'keyTypes' => + array ( + 0 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'adaid', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + 1 => + \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 0, + )), + 2 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'gesperrt', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + 3 => + \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 1, + )), + 4 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'email', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + 5 => + \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 2, + )), + 6 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'freigabe1u1', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + 7 => + \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 3, + )), + ), + 'valueTypes' => + array ( + 0 => + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + 1 => + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + 2 => + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -128, + 'max' => 127, + )), + 3 => + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -128, + 'max' => 127, + )), + 4 => + \PHPStan\Type\StringType::__set_state(array( + )), + 5 => + \PHPStan\Type\StringType::__set_state(array( + )), + 6 => + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + 7 => + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + ), + 'optionalKeys' => + array ( + ), + 'isList' => + \PHPStan\TrinaryLogic::__set_state(array( + 'value' => -1, + )), + 'allArrays' => NULL, + 'nextAutoIndexes' => + array ( + 0 => 4, + ), + )), + ), + ), + 'SELECT * FROM ada WHERE email = \'1970-01-01\' LIMIT \'27\' OFFSET \'15\'' => + array ( + 'result' => + array ( + 5 => + \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( + 'itemType' => + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + 1 => + \PHPStan\Type\StringType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), + )), + 'keyType' => + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 0, + )), + 1 => + \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 1, + )), + 2 => + \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 2, + )), + 3 => + \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 3, + )), + 4 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'adaid', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + 5 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'email', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + 6 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'freigabe1u1', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + 7 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'gesperrt', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + ), + 'normalized' => false, + 'sortedTypes' => true, + 'cachedDescriptions' => + array ( + 2 => '0|1|2|3|\'adaid\'|\'email\'|\'freigabe1u1\'|\'gesperrt\'', + ), + )), + 'keyTypes' => + array ( + 0 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'adaid', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + 1 => + \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 0, + )), + 2 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'gesperrt', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + 3 => + \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 1, + )), + 4 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'email', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + 5 => + \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 2, + )), + 6 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'freigabe1u1', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + 7 => + \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 3, + )), + ), + 'valueTypes' => + array ( + 0 => + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + 1 => + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + 2 => + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -128, + 'max' => 127, + )), + 3 => + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -128, + 'max' => 127, + )), + 4 => + \PHPStan\Type\StringType::__set_state(array( + )), + 5 => + \PHPStan\Type\StringType::__set_state(array( + )), + 6 => + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + 7 => + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + ), + 'optionalKeys' => + array ( + ), + 'isList' => + \PHPStan\TrinaryLogic::__set_state(array( + 'value' => -1, + )), + 'allArrays' => NULL, + 'nextAutoIndexes' => + array ( + 0 => 4, + ), + )), + ), + ), + 'SELECT * FROM ada WHERE email = \'1970-01-01\' LIMIT 5 OFFSET 2' => + array ( + 'result' => + array ( + 5 => + \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( + 'itemType' => + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + 1 => + \PHPStan\Type\StringType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), + )), + 'keyType' => + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 0, + )), + 1 => + \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 1, + )), + 2 => + \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 2, + )), + 3 => + \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 3, + )), + 4 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'adaid', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + 5 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'email', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + 6 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'freigabe1u1', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + 7 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'gesperrt', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + ), + 'normalized' => false, + 'sortedTypes' => true, + 'cachedDescriptions' => + array ( + 2 => '0|1|2|3|\'adaid\'|\'email\'|\'freigabe1u1\'|\'gesperrt\'', + ), + )), + 'keyTypes' => + array ( + 0 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'adaid', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + 1 => + \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 0, + )), + 2 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'gesperrt', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + 3 => + \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 1, + )), + 4 => \PHPStan\Type\Constant\ConstantStringType::__set_state(array( 'value' => 'email', 'isClassString' => false, 'objectType' => NULL, 'arrayKeyType' => NULL, )), - 3 => + 5 => + \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 2, + )), + 6 => \PHPStan\Type\Constant\ConstantStringType::__set_state(array( 'value' => 'freigabe1u1', 'isClassString' => false, 'objectType' => NULL, 'arrayKeyType' => NULL, )), + 7 => + \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 3, + )), ), 'valueTypes' => array ( @@ -196,14 +1314,32 @@ Simulated query: SELECT * FROM 1 LIMIT 0', 'max' => 32767, )), 1 => + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + 2 => \PHPStan\Type\IntegerRangeType::__set_state(array( 'min' => -128, 'max' => 127, )), - 2 => + 3 => + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -128, + 'max' => 127, + )), + 4 => \PHPStan\Type\StringType::__set_state(array( )), - 3 => + 5 => + \PHPStan\Type\StringType::__set_state(array( + )), + 6 => + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + 7 => \PHPStan\Type\IntegerRangeType::__set_state(array( 'min' => -32768, 'max' => 32767, @@ -219,35 +1355,11 @@ Simulated query: SELECT * FROM 1 LIMIT 0', 'allArrays' => NULL, 'nextAutoIndexes' => array ( - 0 => 0, + 0 => 4, ), )), ), ), - 'SELECT * FROM ada GROUP BY doesNotExist' => - array ( - 'error' => - \staabm\PHPStanDba\Error::__set_state(array( - 'message' => 'SQLSTATE[42S22]: Column not found: 1054 Unknown column \'doesNotExist\' in \'group statement\'', - 'code' => '42S22', - )), - ), - 'SELECT * FROM ada ORDER BY doesNotExist' => - array ( - 'error' => - \staabm\PHPStanDba\Error::__set_state(array( - 'message' => 'SQLSTATE[42S22]: Column not found: 1054 Unknown column \'doesNotExist\' in \'order clause\'', - 'code' => '42S22', - )), - ), - 'SELECT * FROM ada WHERE doesNotExist=1' => - array ( - 'error' => - \staabm\PHPStanDba\Error::__set_state(array( - 'message' => 'SQLSTATE[42S22]: Column not found: 1054 Unknown column \'doesNotExist\' in \'where clause\'', - 'code' => '42S22', - )), - ), 'SELECT * FROM ak' => array ( 'result' => @@ -1421,6 +2533,211 @@ Simulated query: SELECT * FROM 1 LIMIT 0', 'code' => '42S02', )), ), + 'SELECT *,adaid FROM `ada` WHERE email = \'test@example.com\';' => + array ( + 'result' => + array ( + 5 => + \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( + 'itemType' => + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + 1 => + \PHPStan\Type\StringType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), + )), + 'keyType' => + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 0, + )), + 1 => + \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 1, + )), + 2 => + \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 2, + )), + 3 => + \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 3, + )), + 4 => + \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 4, + )), + 5 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'adaid', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + 6 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'email', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + 7 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'freigabe1u1', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + 8 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'gesperrt', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + ), + 'normalized' => false, + 'sortedTypes' => true, + 'cachedDescriptions' => + array ( + 2 => '0|1|2|3|4|\'adaid\'|\'email\'|\'freigabe1u1\'|\'gesperrt\'', + ), + )), + 'keyTypes' => + array ( + 0 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'adaid', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + 1 => + \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 0, + )), + 2 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'gesperrt', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + 3 => + \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 1, + )), + 4 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'email', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + 5 => + \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 2, + )), + 6 => + \PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'freigabe1u1', + 'isClassString' => false, + 'objectType' => NULL, + 'arrayKeyType' => NULL, + )), + 7 => + \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 3, + )), + 8 => + \PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 4, + )), + ), + 'valueTypes' => + array ( + 0 => + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + 1 => + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + 2 => + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -128, + 'max' => 127, + )), + 3 => + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -128, + 'max' => 127, + )), + 4 => + \PHPStan\Type\StringType::__set_state(array( + )), + 5 => + \PHPStan\Type\StringType::__set_state(array( + )), + 6 => + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + 7 => + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + 8 => + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + ), + 'optionalKeys' => + array ( + ), + 'isList' => + \PHPStan\TrinaryLogic::__set_state(array( + 'value' => -1, + )), + 'allArrays' => NULL, + 'nextAutoIndexes' => + array ( + 0 => 5, + ), + )), + ), + ), + 'SELECT FROM WHERE' => + array ( + 'error' => + \staabm\PHPStanDba\Error::__set_state(array( + 'message' => 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL/MariaDB server version for the right syntax to use near \'FROM WHERE LIMIT 0\' at line 1 + +Simulated query: SELECT FROM WHERE LIMIT 0', + 'code' => '42000', + )), + ), 'SELECT adaid FROM ada WHERE email=\'1970-01-01\'' => array ( 'result' => diff --git a/tests/sqlAst/config/.phpunit-phpstan-dba-mysqli.cache b/tests/sqlAst/config/.phpunit-phpstan-dba-mysqli.cache index 0ab58bf89..5cac0d988 100644 --- a/tests/sqlAst/config/.phpunit-phpstan-dba-mysqli.cache +++ b/tests/sqlAst/config/.phpunit-phpstan-dba-mysqli.cache @@ -4826,9 +4826,7 @@ 5 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\IntegerType::__set_state(array( )), 'keyType' => \PHPStan\Type\UnionType::__set_state(array( @@ -4864,14 +4862,10 @@ 'valueTypes' => array ( 0 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\IntegerType::__set_state(array( )), 1 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\IntegerType::__set_state(array( )), ), 'optionalKeys' => @@ -4896,9 +4890,7 @@ 5 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\IntegerType::__set_state(array( )), 'keyType' => \PHPStan\Type\UnionType::__set_state(array( @@ -4940,14 +4932,10 @@ 'valueTypes' => array ( 0 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\IntegerType::__set_state(array( )), 1 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\IntegerType::__set_state(array( )), ), 'optionalKeys' => @@ -5118,9 +5106,7 @@ 5 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\IntegerType::__set_state(array( )), 'keyType' => \PHPStan\Type\UnionType::__set_state(array( @@ -5162,14 +5148,10 @@ 'valueTypes' => array ( 0 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\IntegerType::__set_state(array( )), 1 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\IntegerType::__set_state(array( )), ), 'optionalKeys' => @@ -5312,23 +5294,9 @@ 5 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, - )), - 1 => - \PHPStan\Type\NullType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), 'keyType' => \PHPStan\Type\UnionType::__set_state(array( @@ -5370,42 +5338,14 @@ 'valueTypes' => array ( 0 => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, - )), - 1 => - \PHPStan\Type\NullType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), 1 => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, - )), - 1 => - \PHPStan\Type\NullType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), ), 'optionalKeys' => @@ -5430,9 +5370,7 @@ 5 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\IntegerType::__set_state(array( )), 'keyType' => \PHPStan\Type\UnionType::__set_state(array( @@ -5474,14 +5412,10 @@ 'valueTypes' => array ( 0 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\IntegerType::__set_state(array( )), 1 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\IntegerType::__set_state(array( )), ), 'optionalKeys' => @@ -5576,21 +5510,7 @@ 5 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\StringType::__set_state(array( - )), - 1 => - \PHPStan\Type\NullType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), + \PHPStan\Type\StringType::__set_state(array( )), 'keyType' => \PHPStan\Type\UnionType::__set_state(array( @@ -5632,38 +5552,10 @@ 'valueTypes' => array ( 0 => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\StringType::__set_state(array( - )), - 1 => - \PHPStan\Type\NullType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), + \PHPStan\Type\StringType::__set_state(array( )), 1 => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\StringType::__set_state(array( - )), - 1 => - \PHPStan\Type\NullType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), + \PHPStan\Type\StringType::__set_state(array( )), ), 'optionalKeys' => @@ -6024,21 +5916,7 @@ 5 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\StringType::__set_state(array( - )), - 1 => - \PHPStan\Type\NullType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), + \PHPStan\Type\StringType::__set_state(array( )), 'keyType' => \PHPStan\Type\UnionType::__set_state(array( @@ -6080,38 +5958,10 @@ 'valueTypes' => array ( 0 => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\StringType::__set_state(array( - )), - 1 => - \PHPStan\Type\NullType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), + \PHPStan\Type\StringType::__set_state(array( )), 1 => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\StringType::__set_state(array( - )), - 1 => - \PHPStan\Type\NullType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), + \PHPStan\Type\StringType::__set_state(array( )), ), 'optionalKeys' => @@ -6248,9 +6098,7 @@ 5 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\IntegerType::__set_state(array( )), 'keyType' => \PHPStan\Type\UnionType::__set_state(array( @@ -6292,14 +6140,10 @@ 'valueTypes' => array ( 0 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\IntegerType::__set_state(array( )), 1 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\IntegerType::__set_state(array( )), ), 'optionalKeys' => @@ -12688,9 +12532,7 @@ 'types' => array ( 0 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\IntegerType::__set_state(array( )), 1 => \PHPStan\Type\NullType::__set_state(array( @@ -12746,9 +12588,7 @@ 'types' => array ( 0 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\IntegerType::__set_state(array( )), 1 => \PHPStan\Type\NullType::__set_state(array( @@ -12765,9 +12605,7 @@ 'types' => array ( 0 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\IntegerType::__set_state(array( )), 1 => \PHPStan\Type\NullType::__set_state(array( @@ -12806,9 +12644,7 @@ 'types' => array ( 0 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\IntegerType::__set_state(array( )), 1 => \PHPStan\Type\NullType::__set_state(array( @@ -12864,9 +12700,7 @@ 'types' => array ( 0 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\IntegerType::__set_state(array( )), 1 => \PHPStan\Type\NullType::__set_state(array( @@ -12883,9 +12717,7 @@ 'types' => array ( 0 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\IntegerType::__set_state(array( )), 1 => \PHPStan\Type\NullType::__set_state(array( @@ -12920,21 +12752,7 @@ 5 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\StringType::__set_state(array( - )), - 1 => - \PHPStan\Type\NullType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), + \PHPStan\Type\StringType::__set_state(array( )), 'keyType' => \PHPStan\Type\UnionType::__set_state(array( @@ -12976,38 +12794,10 @@ 'valueTypes' => array ( 0 => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\StringType::__set_state(array( - )), - 1 => - \PHPStan\Type\NullType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), + \PHPStan\Type\StringType::__set_state(array( )), 1 => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\StringType::__set_state(array( - )), - 1 => - \PHPStan\Type\NullType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), + \PHPStan\Type\StringType::__set_state(array( )), ), 'optionalKeys' => @@ -13032,21 +12822,7 @@ 5 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\StringType::__set_state(array( - )), - 1 => - \PHPStan\Type\NullType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), + \PHPStan\Type\StringType::__set_state(array( )), 'keyType' => \PHPStan\Type\UnionType::__set_state(array( @@ -13088,38 +12864,10 @@ 'valueTypes' => array ( 0 => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\StringType::__set_state(array( - )), - 1 => - \PHPStan\Type\NullType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), + \PHPStan\Type\StringType::__set_state(array( )), 1 => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\StringType::__set_state(array( - )), - 1 => - \PHPStan\Type\NullType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), + \PHPStan\Type\StringType::__set_state(array( )), ), 'optionalKeys' => @@ -13480,21 +13228,7 @@ 5 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\StringType::__set_state(array( - )), - 1 => - \PHPStan\Type\NullType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), + \PHPStan\Type\StringType::__set_state(array( )), 'keyType' => \PHPStan\Type\UnionType::__set_state(array( @@ -13536,38 +13270,10 @@ 'valueTypes' => array ( 0 => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\StringType::__set_state(array( - )), - 1 => - \PHPStan\Type\NullType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), + \PHPStan\Type\StringType::__set_state(array( )), 1 => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\StringType::__set_state(array( - )), - 1 => - \PHPStan\Type\NullType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), + \PHPStan\Type\StringType::__set_state(array( )), ), 'optionalKeys' => @@ -13592,21 +13298,7 @@ 5 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\StringType::__set_state(array( - )), - 1 => - \PHPStan\Type\NullType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), + \PHPStan\Type\StringType::__set_state(array( )), 'keyType' => \PHPStan\Type\UnionType::__set_state(array( @@ -13648,38 +13340,10 @@ 'valueTypes' => array ( 0 => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\StringType::__set_state(array( - )), - 1 => - \PHPStan\Type\NullType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), + \PHPStan\Type\StringType::__set_state(array( )), 1 => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\StringType::__set_state(array( - )), - 1 => - \PHPStan\Type\NullType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), + \PHPStan\Type\StringType::__set_state(array( )), ), 'optionalKeys' => @@ -14898,9 +14562,7 @@ 5 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => - \PHPStan\Type\MixedType::__set_state(array( - 'isExplicitMixed' => false, - 'subtractedType' => NULL, + \PHPStan\Type\StringType::__set_state(array( )), 'keyType' => \PHPStan\Type\UnionType::__set_state(array( @@ -14942,14 +14604,10 @@ 'valueTypes' => array ( 0 => - \PHPStan\Type\MixedType::__set_state(array( - 'isExplicitMixed' => false, - 'subtractedType' => NULL, + \PHPStan\Type\StringType::__set_state(array( )), 1 => - \PHPStan\Type\MixedType::__set_state(array( - 'isExplicitMixed' => false, - 'subtractedType' => NULL, + \PHPStan\Type\StringType::__set_state(array( )), ), 'optionalKeys' => @@ -15044,9 +14702,7 @@ 5 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\IntegerType::__set_state(array( )), 'keyType' => \PHPStan\Type\UnionType::__set_state(array( @@ -15088,14 +14744,10 @@ 'valueTypes' => array ( 0 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\IntegerType::__set_state(array( )), 1 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\IntegerType::__set_state(array( )), ), 'optionalKeys' => @@ -15612,9 +15264,21 @@ 5 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => - \PHPStan\Type\MixedType::__set_state(array( - 'isExplicitMixed' => false, - 'subtractedType' => NULL, + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\StringType::__set_state(array( + )), + 1 => + \PHPStan\Type\NullType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), )), 'keyType' => \PHPStan\Type\UnionType::__set_state(array( @@ -15656,14 +15320,38 @@ 'valueTypes' => array ( 0 => - \PHPStan\Type\MixedType::__set_state(array( - 'isExplicitMixed' => false, - 'subtractedType' => NULL, + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\StringType::__set_state(array( + )), + 1 => + \PHPStan\Type\NullType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), )), 1 => - \PHPStan\Type\MixedType::__set_state(array( - 'isExplicitMixed' => false, - 'subtractedType' => NULL, + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\StringType::__set_state(array( + )), + 1 => + \PHPStan\Type\NullType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), )), ), 'optionalKeys' => @@ -15688,9 +15376,7 @@ 5 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\IntegerType::__set_state(array( )), 'keyType' => \PHPStan\Type\UnionType::__set_state(array( @@ -15732,14 +15418,10 @@ 'valueTypes' => array ( 0 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\IntegerType::__set_state(array( )), 1 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\IntegerType::__set_state(array( )), ), 'optionalKeys' => @@ -15764,9 +15446,7 @@ 5 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\IntegerType::__set_state(array( )), 'keyType' => \PHPStan\Type\UnionType::__set_state(array( @@ -15808,14 +15488,10 @@ 'valueTypes' => array ( 0 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\IntegerType::__set_state(array( )), 1 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\IntegerType::__set_state(array( )), ), 'optionalKeys' => @@ -15844,9 +15520,7 @@ 'types' => array ( 0 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\IntegerType::__set_state(array( )), 1 => \PHPStan\Type\NullType::__set_state(array( @@ -15902,9 +15576,7 @@ 'types' => array ( 0 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\IntegerType::__set_state(array( )), 1 => \PHPStan\Type\NullType::__set_state(array( @@ -15921,9 +15593,7 @@ 'types' => array ( 0 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\IntegerType::__set_state(array( )), 1 => \PHPStan\Type\NullType::__set_state(array( @@ -15958,9 +15628,7 @@ 5 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\IntegerType::__set_state(array( )), 'keyType' => \PHPStan\Type\UnionType::__set_state(array( @@ -16002,14 +15670,10 @@ 'valueTypes' => array ( 0 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\IntegerType::__set_state(array( )), 1 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\IntegerType::__set_state(array( )), ), 'optionalKeys' => @@ -16034,9 +15698,7 @@ 5 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\IntegerType::__set_state(array( )), 'keyType' => \PHPStan\Type\UnionType::__set_state(array( @@ -16078,14 +15740,10 @@ 'valueTypes' => array ( 0 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\IntegerType::__set_state(array( )), 1 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\IntegerType::__set_state(array( )), ), 'optionalKeys' => @@ -16110,21 +15768,7 @@ 5 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\StringType::__set_state(array( - )), - 1 => - \PHPStan\Type\NullType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), + \PHPStan\Type\StringType::__set_state(array( )), 'keyType' => \PHPStan\Type\UnionType::__set_state(array( @@ -16166,38 +15810,10 @@ 'valueTypes' => array ( 0 => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\StringType::__set_state(array( - )), - 1 => - \PHPStan\Type\NullType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), + \PHPStan\Type\StringType::__set_state(array( )), 1 => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\StringType::__set_state(array( - )), - 1 => - \PHPStan\Type\NullType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), + \PHPStan\Type\StringType::__set_state(array( )), ), 'optionalKeys' => @@ -16222,9 +15838,7 @@ 5 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\IntegerType::__set_state(array( )), 'keyType' => \PHPStan\Type\UnionType::__set_state(array( @@ -16266,14 +15880,10 @@ 'valueTypes' => array ( 0 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\IntegerType::__set_state(array( )), 1 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\IntegerType::__set_state(array( )), ), 'optionalKeys' => @@ -16302,9 +15912,7 @@ 'types' => array ( 0 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\IntegerType::__set_state(array( )), 1 => \PHPStan\Type\NullType::__set_state(array( @@ -16360,9 +15968,7 @@ 'types' => array ( 0 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\IntegerType::__set_state(array( )), 1 => \PHPStan\Type\NullType::__set_state(array( @@ -16379,9 +15985,7 @@ 'types' => array ( 0 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\IntegerType::__set_state(array( )), 1 => \PHPStan\Type\NullType::__set_state(array( @@ -16416,9 +16020,7 @@ 5 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\IntegerType::__set_state(array( )), 'keyType' => \PHPStan\Type\UnionType::__set_state(array( @@ -16460,14 +16062,10 @@ 'valueTypes' => array ( 0 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\IntegerType::__set_state(array( )), 1 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\IntegerType::__set_state(array( )), ), 'optionalKeys' => @@ -16496,9 +16094,7 @@ 'types' => array ( 0 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\IntegerType::__set_state(array( )), 1 => \PHPStan\Type\NullType::__set_state(array( @@ -16554,9 +16150,7 @@ 'types' => array ( 0 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\IntegerType::__set_state(array( )), 1 => \PHPStan\Type\NullType::__set_state(array( @@ -16573,9 +16167,7 @@ 'types' => array ( 0 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\IntegerType::__set_state(array( )), 1 => \PHPStan\Type\NullType::__set_state(array( @@ -16610,21 +16202,7 @@ 5 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\StringType::__set_state(array( - )), - 1 => - \PHPStan\Type\NullType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), + \PHPStan\Type\StringType::__set_state(array( )), 'keyType' => \PHPStan\Type\UnionType::__set_state(array( @@ -16666,38 +16244,10 @@ 'valueTypes' => array ( 0 => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\StringType::__set_state(array( - )), - 1 => - \PHPStan\Type\NullType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), + \PHPStan\Type\StringType::__set_state(array( )), 1 => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\StringType::__set_state(array( - )), - 1 => - \PHPStan\Type\NullType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), + \PHPStan\Type\StringType::__set_state(array( )), ), 'optionalKeys' => @@ -16722,21 +16272,7 @@ 5 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\StringType::__set_state(array( - )), - 1 => - \PHPStan\Type\NullType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), + \PHPStan\Type\StringType::__set_state(array( )), 'keyType' => \PHPStan\Type\UnionType::__set_state(array( @@ -16778,38 +16314,10 @@ 'valueTypes' => array ( 0 => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\StringType::__set_state(array( - )), - 1 => - \PHPStan\Type\NullType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), + \PHPStan\Type\StringType::__set_state(array( )), 1 => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\StringType::__set_state(array( - )), - 1 => - \PHPStan\Type\NullType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), + \PHPStan\Type\StringType::__set_state(array( )), ), 'optionalKeys' => @@ -16946,21 +16454,7 @@ 5 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\StringType::__set_state(array( - )), - 1 => - \PHPStan\Type\NullType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), + \PHPStan\Type\StringType::__set_state(array( )), 'keyType' => \PHPStan\Type\UnionType::__set_state(array( @@ -17002,38 +16496,10 @@ 'valueTypes' => array ( 0 => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\StringType::__set_state(array( - )), - 1 => - \PHPStan\Type\NullType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), + \PHPStan\Type\StringType::__set_state(array( )), 1 => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\StringType::__set_state(array( - )), - 1 => - \PHPStan\Type\NullType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), + \PHPStan\Type\StringType::__set_state(array( )), ), 'optionalKeys' => @@ -17058,21 +16524,7 @@ 5 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\StringType::__set_state(array( - )), - 1 => - \PHPStan\Type\NullType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), + \PHPStan\Type\StringType::__set_state(array( )), 'keyType' => \PHPStan\Type\UnionType::__set_state(array( @@ -17114,38 +16566,10 @@ 'valueTypes' => array ( 0 => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\StringType::__set_state(array( - )), - 1 => - \PHPStan\Type\NullType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), + \PHPStan\Type\StringType::__set_state(array( )), 1 => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\StringType::__set_state(array( - )), - 1 => - \PHPStan\Type\NullType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), + \PHPStan\Type\StringType::__set_state(array( )), ), 'optionalKeys' => @@ -17282,21 +16706,7 @@ 5 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\StringType::__set_state(array( - )), - 1 => - \PHPStan\Type\NullType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), + \PHPStan\Type\StringType::__set_state(array( )), 'keyType' => \PHPStan\Type\UnionType::__set_state(array( @@ -17338,38 +16748,10 @@ 'valueTypes' => array ( 0 => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\StringType::__set_state(array( - )), - 1 => - \PHPStan\Type\NullType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), - )), - 1 => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\StringType::__set_state(array( - )), - 1 => - \PHPStan\Type\NullType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), + \PHPStan\Type\StringType::__set_state(array( + )), + 1 => + \PHPStan\Type\StringType::__set_state(array( )), ), 'optionalKeys' => @@ -18090,21 +17472,9 @@ 5 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\StringType::__set_state(array( - )), - 1 => - \PHPStan\Type\NullType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), + \PHPStan\Type\MixedType::__set_state(array( + 'isExplicitMixed' => false, + 'subtractedType' => NULL, )), 'keyType' => \PHPStan\Type\UnionType::__set_state(array( @@ -18146,38 +17516,14 @@ 'valueTypes' => array ( 0 => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\StringType::__set_state(array( - )), - 1 => - \PHPStan\Type\NullType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), + \PHPStan\Type\MixedType::__set_state(array( + 'isExplicitMixed' => false, + 'subtractedType' => NULL, )), 1 => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\StringType::__set_state(array( - )), - 1 => - \PHPStan\Type\NullType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), + \PHPStan\Type\MixedType::__set_state(array( + 'isExplicitMixed' => false, + 'subtractedType' => NULL, )), ), 'optionalKeys' => @@ -18898,21 +18244,9 @@ 5 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\StringType::__set_state(array( - )), - 1 => - \PHPStan\Type\NullType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), + \PHPStan\Type\MixedType::__set_state(array( + 'isExplicitMixed' => false, + 'subtractedType' => NULL, )), 'keyType' => \PHPStan\Type\UnionType::__set_state(array( @@ -18954,38 +18288,14 @@ 'valueTypes' => array ( 0 => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\StringType::__set_state(array( - )), - 1 => - \PHPStan\Type\NullType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), + \PHPStan\Type\MixedType::__set_state(array( + 'isExplicitMixed' => false, + 'subtractedType' => NULL, )), 1 => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\StringType::__set_state(array( - )), - 1 => - \PHPStan\Type\NullType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), + \PHPStan\Type\MixedType::__set_state(array( + 'isExplicitMixed' => false, + 'subtractedType' => NULL, )), ), 'optionalKeys' => @@ -19014,9 +18324,7 @@ 'types' => array ( 0 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\IntegerType::__set_state(array( )), 1 => \PHPStan\Type\NullType::__set_state(array( @@ -19072,9 +18380,7 @@ 'types' => array ( 0 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\IntegerType::__set_state(array( )), 1 => \PHPStan\Type\NullType::__set_state(array( @@ -19091,9 +18397,7 @@ 'types' => array ( 0 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\IntegerType::__set_state(array( )), 1 => \PHPStan\Type\NullType::__set_state(array( @@ -19132,9 +18436,7 @@ 'types' => array ( 0 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\IntegerType::__set_state(array( )), 1 => \PHPStan\Type\NullType::__set_state(array( @@ -19190,9 +18492,7 @@ 'types' => array ( 0 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\IntegerType::__set_state(array( )), 1 => \PHPStan\Type\NullType::__set_state(array( @@ -19209,9 +18509,7 @@ 'types' => array ( 0 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\IntegerType::__set_state(array( )), 1 => \PHPStan\Type\NullType::__set_state(array( @@ -19958,9 +19256,7 @@ 'types' => array ( 0 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\IntegerType::__set_state(array( )), 1 => \PHPStan\Type\NullType::__set_state(array( @@ -20016,9 +19312,7 @@ 'types' => array ( 0 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\IntegerType::__set_state(array( )), 1 => \PHPStan\Type\NullType::__set_state(array( @@ -20035,9 +19329,7 @@ 'types' => array ( 0 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\IntegerType::__set_state(array( )), 1 => \PHPStan\Type\NullType::__set_state(array( @@ -20172,9 +19464,7 @@ 5 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, + \PHPStan\Type\IntegerType::__set_state(array( )), 'keyType' => \PHPStan\Type\UnionType::__set_state(array( @@ -20216,14 +19506,10 @@ 'valueTypes' => array ( 0 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, + \PHPStan\Type\IntegerType::__set_state(array( )), 1 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, + \PHPStan\Type\IntegerType::__set_state(array( )), ), 'optionalKeys' => @@ -21264,21 +20550,7 @@ 5 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\StringType::__set_state(array( - )), - 1 => - \PHPStan\Type\NullType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), + \PHPStan\Type\StringType::__set_state(array( )), 'keyType' => \PHPStan\Type\UnionType::__set_state(array( @@ -21320,38 +20592,10 @@ 'valueTypes' => array ( 0 => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\StringType::__set_state(array( - )), - 1 => - \PHPStan\Type\NullType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), + \PHPStan\Type\StringType::__set_state(array( )), 1 => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\StringType::__set_state(array( - )), - 1 => - \PHPStan\Type\NullType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), + \PHPStan\Type\StringType::__set_state(array( )), ), 'optionalKeys' => @@ -21376,21 +20620,7 @@ 5 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\StringType::__set_state(array( - )), - 1 => - \PHPStan\Type\NullType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), + \PHPStan\Type\StringType::__set_state(array( )), 'keyType' => \PHPStan\Type\UnionType::__set_state(array( @@ -21432,38 +20662,10 @@ 'valueTypes' => array ( 0 => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\StringType::__set_state(array( - )), - 1 => - \PHPStan\Type\NullType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), + \PHPStan\Type\StringType::__set_state(array( )), 1 => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\StringType::__set_state(array( - )), - 1 => - \PHPStan\Type\NullType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), + \PHPStan\Type\StringType::__set_state(array( )), ), 'optionalKeys' => diff --git a/tests/sqlAst/config/.phpunit-phpstan-dba-pdo-mysql.cache b/tests/sqlAst/config/.phpunit-phpstan-dba-pdo-mysql.cache index 0ab58bf89..5cac0d988 100644 --- a/tests/sqlAst/config/.phpunit-phpstan-dba-pdo-mysql.cache +++ b/tests/sqlAst/config/.phpunit-phpstan-dba-pdo-mysql.cache @@ -4826,9 +4826,7 @@ 5 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\IntegerType::__set_state(array( )), 'keyType' => \PHPStan\Type\UnionType::__set_state(array( @@ -4864,14 +4862,10 @@ 'valueTypes' => array ( 0 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\IntegerType::__set_state(array( )), 1 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\IntegerType::__set_state(array( )), ), 'optionalKeys' => @@ -4896,9 +4890,7 @@ 5 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\IntegerType::__set_state(array( )), 'keyType' => \PHPStan\Type\UnionType::__set_state(array( @@ -4940,14 +4932,10 @@ 'valueTypes' => array ( 0 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\IntegerType::__set_state(array( )), 1 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\IntegerType::__set_state(array( )), ), 'optionalKeys' => @@ -5118,9 +5106,7 @@ 5 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\IntegerType::__set_state(array( )), 'keyType' => \PHPStan\Type\UnionType::__set_state(array( @@ -5162,14 +5148,10 @@ 'valueTypes' => array ( 0 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\IntegerType::__set_state(array( )), 1 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\IntegerType::__set_state(array( )), ), 'optionalKeys' => @@ -5312,23 +5294,9 @@ 5 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, - )), - 1 => - \PHPStan\Type\NullType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), 'keyType' => \PHPStan\Type\UnionType::__set_state(array( @@ -5370,42 +5338,14 @@ 'valueTypes' => array ( 0 => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, - )), - 1 => - \PHPStan\Type\NullType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), 1 => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, - )), - 1 => - \PHPStan\Type\NullType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), + \PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), ), 'optionalKeys' => @@ -5430,9 +5370,7 @@ 5 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\IntegerType::__set_state(array( )), 'keyType' => \PHPStan\Type\UnionType::__set_state(array( @@ -5474,14 +5412,10 @@ 'valueTypes' => array ( 0 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\IntegerType::__set_state(array( )), 1 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\IntegerType::__set_state(array( )), ), 'optionalKeys' => @@ -5576,21 +5510,7 @@ 5 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\StringType::__set_state(array( - )), - 1 => - \PHPStan\Type\NullType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), + \PHPStan\Type\StringType::__set_state(array( )), 'keyType' => \PHPStan\Type\UnionType::__set_state(array( @@ -5632,38 +5552,10 @@ 'valueTypes' => array ( 0 => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\StringType::__set_state(array( - )), - 1 => - \PHPStan\Type\NullType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), + \PHPStan\Type\StringType::__set_state(array( )), 1 => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\StringType::__set_state(array( - )), - 1 => - \PHPStan\Type\NullType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), + \PHPStan\Type\StringType::__set_state(array( )), ), 'optionalKeys' => @@ -6024,21 +5916,7 @@ 5 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\StringType::__set_state(array( - )), - 1 => - \PHPStan\Type\NullType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), + \PHPStan\Type\StringType::__set_state(array( )), 'keyType' => \PHPStan\Type\UnionType::__set_state(array( @@ -6080,38 +5958,10 @@ 'valueTypes' => array ( 0 => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\StringType::__set_state(array( - )), - 1 => - \PHPStan\Type\NullType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), + \PHPStan\Type\StringType::__set_state(array( )), 1 => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\StringType::__set_state(array( - )), - 1 => - \PHPStan\Type\NullType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), + \PHPStan\Type\StringType::__set_state(array( )), ), 'optionalKeys' => @@ -6248,9 +6098,7 @@ 5 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\IntegerType::__set_state(array( )), 'keyType' => \PHPStan\Type\UnionType::__set_state(array( @@ -6292,14 +6140,10 @@ 'valueTypes' => array ( 0 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\IntegerType::__set_state(array( )), 1 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\IntegerType::__set_state(array( )), ), 'optionalKeys' => @@ -12688,9 +12532,7 @@ 'types' => array ( 0 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\IntegerType::__set_state(array( )), 1 => \PHPStan\Type\NullType::__set_state(array( @@ -12746,9 +12588,7 @@ 'types' => array ( 0 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\IntegerType::__set_state(array( )), 1 => \PHPStan\Type\NullType::__set_state(array( @@ -12765,9 +12605,7 @@ 'types' => array ( 0 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\IntegerType::__set_state(array( )), 1 => \PHPStan\Type\NullType::__set_state(array( @@ -12806,9 +12644,7 @@ 'types' => array ( 0 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\IntegerType::__set_state(array( )), 1 => \PHPStan\Type\NullType::__set_state(array( @@ -12864,9 +12700,7 @@ 'types' => array ( 0 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\IntegerType::__set_state(array( )), 1 => \PHPStan\Type\NullType::__set_state(array( @@ -12883,9 +12717,7 @@ 'types' => array ( 0 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\IntegerType::__set_state(array( )), 1 => \PHPStan\Type\NullType::__set_state(array( @@ -12920,21 +12752,7 @@ 5 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\StringType::__set_state(array( - )), - 1 => - \PHPStan\Type\NullType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), + \PHPStan\Type\StringType::__set_state(array( )), 'keyType' => \PHPStan\Type\UnionType::__set_state(array( @@ -12976,38 +12794,10 @@ 'valueTypes' => array ( 0 => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\StringType::__set_state(array( - )), - 1 => - \PHPStan\Type\NullType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), + \PHPStan\Type\StringType::__set_state(array( )), 1 => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\StringType::__set_state(array( - )), - 1 => - \PHPStan\Type\NullType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), + \PHPStan\Type\StringType::__set_state(array( )), ), 'optionalKeys' => @@ -13032,21 +12822,7 @@ 5 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\StringType::__set_state(array( - )), - 1 => - \PHPStan\Type\NullType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), + \PHPStan\Type\StringType::__set_state(array( )), 'keyType' => \PHPStan\Type\UnionType::__set_state(array( @@ -13088,38 +12864,10 @@ 'valueTypes' => array ( 0 => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\StringType::__set_state(array( - )), - 1 => - \PHPStan\Type\NullType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), + \PHPStan\Type\StringType::__set_state(array( )), 1 => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\StringType::__set_state(array( - )), - 1 => - \PHPStan\Type\NullType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), + \PHPStan\Type\StringType::__set_state(array( )), ), 'optionalKeys' => @@ -13480,21 +13228,7 @@ 5 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\StringType::__set_state(array( - )), - 1 => - \PHPStan\Type\NullType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), + \PHPStan\Type\StringType::__set_state(array( )), 'keyType' => \PHPStan\Type\UnionType::__set_state(array( @@ -13536,38 +13270,10 @@ 'valueTypes' => array ( 0 => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\StringType::__set_state(array( - )), - 1 => - \PHPStan\Type\NullType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), + \PHPStan\Type\StringType::__set_state(array( )), 1 => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\StringType::__set_state(array( - )), - 1 => - \PHPStan\Type\NullType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), + \PHPStan\Type\StringType::__set_state(array( )), ), 'optionalKeys' => @@ -13592,21 +13298,7 @@ 5 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\StringType::__set_state(array( - )), - 1 => - \PHPStan\Type\NullType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), + \PHPStan\Type\StringType::__set_state(array( )), 'keyType' => \PHPStan\Type\UnionType::__set_state(array( @@ -13648,38 +13340,10 @@ 'valueTypes' => array ( 0 => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\StringType::__set_state(array( - )), - 1 => - \PHPStan\Type\NullType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), + \PHPStan\Type\StringType::__set_state(array( )), 1 => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\StringType::__set_state(array( - )), - 1 => - \PHPStan\Type\NullType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), + \PHPStan\Type\StringType::__set_state(array( )), ), 'optionalKeys' => @@ -14898,9 +14562,7 @@ 5 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => - \PHPStan\Type\MixedType::__set_state(array( - 'isExplicitMixed' => false, - 'subtractedType' => NULL, + \PHPStan\Type\StringType::__set_state(array( )), 'keyType' => \PHPStan\Type\UnionType::__set_state(array( @@ -14942,14 +14604,10 @@ 'valueTypes' => array ( 0 => - \PHPStan\Type\MixedType::__set_state(array( - 'isExplicitMixed' => false, - 'subtractedType' => NULL, + \PHPStan\Type\StringType::__set_state(array( )), 1 => - \PHPStan\Type\MixedType::__set_state(array( - 'isExplicitMixed' => false, - 'subtractedType' => NULL, + \PHPStan\Type\StringType::__set_state(array( )), ), 'optionalKeys' => @@ -15044,9 +14702,7 @@ 5 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\IntegerType::__set_state(array( )), 'keyType' => \PHPStan\Type\UnionType::__set_state(array( @@ -15088,14 +14744,10 @@ 'valueTypes' => array ( 0 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\IntegerType::__set_state(array( )), 1 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\IntegerType::__set_state(array( )), ), 'optionalKeys' => @@ -15612,9 +15264,21 @@ 5 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => - \PHPStan\Type\MixedType::__set_state(array( - 'isExplicitMixed' => false, - 'subtractedType' => NULL, + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\StringType::__set_state(array( + )), + 1 => + \PHPStan\Type\NullType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), )), 'keyType' => \PHPStan\Type\UnionType::__set_state(array( @@ -15656,14 +15320,38 @@ 'valueTypes' => array ( 0 => - \PHPStan\Type\MixedType::__set_state(array( - 'isExplicitMixed' => false, - 'subtractedType' => NULL, + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\StringType::__set_state(array( + )), + 1 => + \PHPStan\Type\NullType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), )), 1 => - \PHPStan\Type\MixedType::__set_state(array( - 'isExplicitMixed' => false, - 'subtractedType' => NULL, + \PHPStan\Type\UnionType::__set_state(array( + 'types' => + array ( + 0 => + \PHPStan\Type\StringType::__set_state(array( + )), + 1 => + \PHPStan\Type\NullType::__set_state(array( + )), + ), + 'normalized' => true, + 'sortedTypes' => false, + 'cachedDescriptions' => + array ( + ), )), ), 'optionalKeys' => @@ -15688,9 +15376,7 @@ 5 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\IntegerType::__set_state(array( )), 'keyType' => \PHPStan\Type\UnionType::__set_state(array( @@ -15732,14 +15418,10 @@ 'valueTypes' => array ( 0 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\IntegerType::__set_state(array( )), 1 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\IntegerType::__set_state(array( )), ), 'optionalKeys' => @@ -15764,9 +15446,7 @@ 5 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\IntegerType::__set_state(array( )), 'keyType' => \PHPStan\Type\UnionType::__set_state(array( @@ -15808,14 +15488,10 @@ 'valueTypes' => array ( 0 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\IntegerType::__set_state(array( )), 1 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\IntegerType::__set_state(array( )), ), 'optionalKeys' => @@ -15844,9 +15520,7 @@ 'types' => array ( 0 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\IntegerType::__set_state(array( )), 1 => \PHPStan\Type\NullType::__set_state(array( @@ -15902,9 +15576,7 @@ 'types' => array ( 0 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\IntegerType::__set_state(array( )), 1 => \PHPStan\Type\NullType::__set_state(array( @@ -15921,9 +15593,7 @@ 'types' => array ( 0 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\IntegerType::__set_state(array( )), 1 => \PHPStan\Type\NullType::__set_state(array( @@ -15958,9 +15628,7 @@ 5 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\IntegerType::__set_state(array( )), 'keyType' => \PHPStan\Type\UnionType::__set_state(array( @@ -16002,14 +15670,10 @@ 'valueTypes' => array ( 0 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\IntegerType::__set_state(array( )), 1 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\IntegerType::__set_state(array( )), ), 'optionalKeys' => @@ -16034,9 +15698,7 @@ 5 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\IntegerType::__set_state(array( )), 'keyType' => \PHPStan\Type\UnionType::__set_state(array( @@ -16078,14 +15740,10 @@ 'valueTypes' => array ( 0 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\IntegerType::__set_state(array( )), 1 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\IntegerType::__set_state(array( )), ), 'optionalKeys' => @@ -16110,21 +15768,7 @@ 5 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\StringType::__set_state(array( - )), - 1 => - \PHPStan\Type\NullType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), + \PHPStan\Type\StringType::__set_state(array( )), 'keyType' => \PHPStan\Type\UnionType::__set_state(array( @@ -16166,38 +15810,10 @@ 'valueTypes' => array ( 0 => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\StringType::__set_state(array( - )), - 1 => - \PHPStan\Type\NullType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), + \PHPStan\Type\StringType::__set_state(array( )), 1 => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\StringType::__set_state(array( - )), - 1 => - \PHPStan\Type\NullType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), + \PHPStan\Type\StringType::__set_state(array( )), ), 'optionalKeys' => @@ -16222,9 +15838,7 @@ 5 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\IntegerType::__set_state(array( )), 'keyType' => \PHPStan\Type\UnionType::__set_state(array( @@ -16266,14 +15880,10 @@ 'valueTypes' => array ( 0 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\IntegerType::__set_state(array( )), 1 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\IntegerType::__set_state(array( )), ), 'optionalKeys' => @@ -16302,9 +15912,7 @@ 'types' => array ( 0 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\IntegerType::__set_state(array( )), 1 => \PHPStan\Type\NullType::__set_state(array( @@ -16360,9 +15968,7 @@ 'types' => array ( 0 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\IntegerType::__set_state(array( )), 1 => \PHPStan\Type\NullType::__set_state(array( @@ -16379,9 +15985,7 @@ 'types' => array ( 0 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\IntegerType::__set_state(array( )), 1 => \PHPStan\Type\NullType::__set_state(array( @@ -16416,9 +16020,7 @@ 5 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\IntegerType::__set_state(array( )), 'keyType' => \PHPStan\Type\UnionType::__set_state(array( @@ -16460,14 +16062,10 @@ 'valueTypes' => array ( 0 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\IntegerType::__set_state(array( )), 1 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\IntegerType::__set_state(array( )), ), 'optionalKeys' => @@ -16496,9 +16094,7 @@ 'types' => array ( 0 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\IntegerType::__set_state(array( )), 1 => \PHPStan\Type\NullType::__set_state(array( @@ -16554,9 +16150,7 @@ 'types' => array ( 0 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\IntegerType::__set_state(array( )), 1 => \PHPStan\Type\NullType::__set_state(array( @@ -16573,9 +16167,7 @@ 'types' => array ( 0 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\IntegerType::__set_state(array( )), 1 => \PHPStan\Type\NullType::__set_state(array( @@ -16610,21 +16202,7 @@ 5 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\StringType::__set_state(array( - )), - 1 => - \PHPStan\Type\NullType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), + \PHPStan\Type\StringType::__set_state(array( )), 'keyType' => \PHPStan\Type\UnionType::__set_state(array( @@ -16666,38 +16244,10 @@ 'valueTypes' => array ( 0 => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\StringType::__set_state(array( - )), - 1 => - \PHPStan\Type\NullType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), + \PHPStan\Type\StringType::__set_state(array( )), 1 => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\StringType::__set_state(array( - )), - 1 => - \PHPStan\Type\NullType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), + \PHPStan\Type\StringType::__set_state(array( )), ), 'optionalKeys' => @@ -16722,21 +16272,7 @@ 5 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\StringType::__set_state(array( - )), - 1 => - \PHPStan\Type\NullType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), + \PHPStan\Type\StringType::__set_state(array( )), 'keyType' => \PHPStan\Type\UnionType::__set_state(array( @@ -16778,38 +16314,10 @@ 'valueTypes' => array ( 0 => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\StringType::__set_state(array( - )), - 1 => - \PHPStan\Type\NullType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), + \PHPStan\Type\StringType::__set_state(array( )), 1 => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\StringType::__set_state(array( - )), - 1 => - \PHPStan\Type\NullType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), + \PHPStan\Type\StringType::__set_state(array( )), ), 'optionalKeys' => @@ -16946,21 +16454,7 @@ 5 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\StringType::__set_state(array( - )), - 1 => - \PHPStan\Type\NullType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), + \PHPStan\Type\StringType::__set_state(array( )), 'keyType' => \PHPStan\Type\UnionType::__set_state(array( @@ -17002,38 +16496,10 @@ 'valueTypes' => array ( 0 => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\StringType::__set_state(array( - )), - 1 => - \PHPStan\Type\NullType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), + \PHPStan\Type\StringType::__set_state(array( )), 1 => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\StringType::__set_state(array( - )), - 1 => - \PHPStan\Type\NullType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), + \PHPStan\Type\StringType::__set_state(array( )), ), 'optionalKeys' => @@ -17058,21 +16524,7 @@ 5 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\StringType::__set_state(array( - )), - 1 => - \PHPStan\Type\NullType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), + \PHPStan\Type\StringType::__set_state(array( )), 'keyType' => \PHPStan\Type\UnionType::__set_state(array( @@ -17114,38 +16566,10 @@ 'valueTypes' => array ( 0 => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\StringType::__set_state(array( - )), - 1 => - \PHPStan\Type\NullType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), + \PHPStan\Type\StringType::__set_state(array( )), 1 => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\StringType::__set_state(array( - )), - 1 => - \PHPStan\Type\NullType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), + \PHPStan\Type\StringType::__set_state(array( )), ), 'optionalKeys' => @@ -17282,21 +16706,7 @@ 5 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\StringType::__set_state(array( - )), - 1 => - \PHPStan\Type\NullType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), + \PHPStan\Type\StringType::__set_state(array( )), 'keyType' => \PHPStan\Type\UnionType::__set_state(array( @@ -17338,38 +16748,10 @@ 'valueTypes' => array ( 0 => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\StringType::__set_state(array( - )), - 1 => - \PHPStan\Type\NullType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), - )), - 1 => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\StringType::__set_state(array( - )), - 1 => - \PHPStan\Type\NullType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), + \PHPStan\Type\StringType::__set_state(array( + )), + 1 => + \PHPStan\Type\StringType::__set_state(array( )), ), 'optionalKeys' => @@ -18090,21 +17472,9 @@ 5 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\StringType::__set_state(array( - )), - 1 => - \PHPStan\Type\NullType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), + \PHPStan\Type\MixedType::__set_state(array( + 'isExplicitMixed' => false, + 'subtractedType' => NULL, )), 'keyType' => \PHPStan\Type\UnionType::__set_state(array( @@ -18146,38 +17516,14 @@ 'valueTypes' => array ( 0 => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\StringType::__set_state(array( - )), - 1 => - \PHPStan\Type\NullType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), + \PHPStan\Type\MixedType::__set_state(array( + 'isExplicitMixed' => false, + 'subtractedType' => NULL, )), 1 => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\StringType::__set_state(array( - )), - 1 => - \PHPStan\Type\NullType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), + \PHPStan\Type\MixedType::__set_state(array( + 'isExplicitMixed' => false, + 'subtractedType' => NULL, )), ), 'optionalKeys' => @@ -18898,21 +18244,9 @@ 5 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\StringType::__set_state(array( - )), - 1 => - \PHPStan\Type\NullType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), + \PHPStan\Type\MixedType::__set_state(array( + 'isExplicitMixed' => false, + 'subtractedType' => NULL, )), 'keyType' => \PHPStan\Type\UnionType::__set_state(array( @@ -18954,38 +18288,14 @@ 'valueTypes' => array ( 0 => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\StringType::__set_state(array( - )), - 1 => - \PHPStan\Type\NullType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), + \PHPStan\Type\MixedType::__set_state(array( + 'isExplicitMixed' => false, + 'subtractedType' => NULL, )), 1 => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\StringType::__set_state(array( - )), - 1 => - \PHPStan\Type\NullType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), + \PHPStan\Type\MixedType::__set_state(array( + 'isExplicitMixed' => false, + 'subtractedType' => NULL, )), ), 'optionalKeys' => @@ -19014,9 +18324,7 @@ 'types' => array ( 0 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\IntegerType::__set_state(array( )), 1 => \PHPStan\Type\NullType::__set_state(array( @@ -19072,9 +18380,7 @@ 'types' => array ( 0 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\IntegerType::__set_state(array( )), 1 => \PHPStan\Type\NullType::__set_state(array( @@ -19091,9 +18397,7 @@ 'types' => array ( 0 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\IntegerType::__set_state(array( )), 1 => \PHPStan\Type\NullType::__set_state(array( @@ -19132,9 +18436,7 @@ 'types' => array ( 0 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\IntegerType::__set_state(array( )), 1 => \PHPStan\Type\NullType::__set_state(array( @@ -19190,9 +18492,7 @@ 'types' => array ( 0 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\IntegerType::__set_state(array( )), 1 => \PHPStan\Type\NullType::__set_state(array( @@ -19209,9 +18509,7 @@ 'types' => array ( 0 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\IntegerType::__set_state(array( )), 1 => \PHPStan\Type\NullType::__set_state(array( @@ -19958,9 +19256,7 @@ 'types' => array ( 0 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\IntegerType::__set_state(array( )), 1 => \PHPStan\Type\NullType::__set_state(array( @@ -20016,9 +19312,7 @@ 'types' => array ( 0 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\IntegerType::__set_state(array( )), 1 => \PHPStan\Type\NullType::__set_state(array( @@ -20035,9 +19329,7 @@ 'types' => array ( 0 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + \PHPStan\Type\IntegerType::__set_state(array( )), 1 => \PHPStan\Type\NullType::__set_state(array( @@ -20172,9 +19464,7 @@ 5 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, + \PHPStan\Type\IntegerType::__set_state(array( )), 'keyType' => \PHPStan\Type\UnionType::__set_state(array( @@ -20216,14 +19506,10 @@ 'valueTypes' => array ( 0 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, + \PHPStan\Type\IntegerType::__set_state(array( )), 1 => - \PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, + \PHPStan\Type\IntegerType::__set_state(array( )), ), 'optionalKeys' => @@ -21264,21 +20550,7 @@ 5 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\StringType::__set_state(array( - )), - 1 => - \PHPStan\Type\NullType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), + \PHPStan\Type\StringType::__set_state(array( )), 'keyType' => \PHPStan\Type\UnionType::__set_state(array( @@ -21320,38 +20592,10 @@ 'valueTypes' => array ( 0 => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\StringType::__set_state(array( - )), - 1 => - \PHPStan\Type\NullType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), + \PHPStan\Type\StringType::__set_state(array( )), 1 => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\StringType::__set_state(array( - )), - 1 => - \PHPStan\Type\NullType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), + \PHPStan\Type\StringType::__set_state(array( )), ), 'optionalKeys' => @@ -21376,21 +20620,7 @@ 5 => \PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'itemType' => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\StringType::__set_state(array( - )), - 1 => - \PHPStan\Type\NullType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), + \PHPStan\Type\StringType::__set_state(array( )), 'keyType' => \PHPStan\Type\UnionType::__set_state(array( @@ -21432,38 +20662,10 @@ 'valueTypes' => array ( 0 => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\StringType::__set_state(array( - )), - 1 => - \PHPStan\Type\NullType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), + \PHPStan\Type\StringType::__set_state(array( )), 1 => - \PHPStan\Type\UnionType::__set_state(array( - 'types' => - array ( - 0 => - \PHPStan\Type\StringType::__set_state(array( - )), - 1 => - \PHPStan\Type\NullType::__set_state(array( - )), - ), - 'normalized' => true, - 'sortedTypes' => false, - 'cachedDescriptions' => - array ( - ), + \PHPStan\Type\StringType::__set_state(array( )), ), 'optionalKeys' =>