diff --git a/.phpstan-dba-mysqli.cache b/.phpstan-dba-mysqli.cache index 27109dac4..3857486e1 100644 --- a/.phpstan-dba-mysqli.cache +++ b/.phpstan-dba-mysqli.cache @@ -1,5 +1,5 @@ 'v6-schema-hash', + 'schemaVersion' => 'v7-normalized-eol', 'schemaHash' => 'e7af3addf6476bf35bda4893b0b4e1e6', 'records' => array ( @@ -27,6 +27,70 @@ array ( 5 => PHPStan\Type\Constant\ConstantArrayType::__set_state(array( + 'allArrays' => NULL, + 'nextAutoIndexes' => + array ( + 0 => 2, + ), + 'keyTypes' => + array ( + 0 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'dbsignature', + 'isClassString' => false, + )), + 1 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 0, + )), + 2 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'grouper', + 'isClassString' => false, + )), + 3 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 1, + )), + ), + 'valueTypes' => + array ( + 0 => + PHPStan\Type\UnionType::__set_state(array( + 'sortedTypes' => false, + 'types' => + array ( + 0 => + PHPStan\Type\StringType::__set_state(array( + )), + 1 => + PHPStan\Type\NullType::__set_state(array( + )), + ), + )), + 1 => + PHPStan\Type\UnionType::__set_state(array( + 'sortedTypes' => false, + 'types' => + array ( + 0 => + PHPStan\Type\StringType::__set_state(array( + )), + 1 => + PHPStan\Type\NullType::__set_state(array( + )), + ), + )), + 2 => + PHPStan\Type\IntegerType::__set_state(array( + )), + 3 => + PHPStan\Type\IntegerType::__set_state(array( + )), + ), + 'optionalKeys' => + array ( + ), 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -54,30 +118,120 @@ )), 'itemType' => PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => true, + 'sortedTypes' => false, 'types' => array ( 0 => + PHPStan\Type\StringType::__set_state(array( + )), + 1 => PHPStan\Type\IntegerType::__set_state(array( )), + 2 => + PHPStan\Type\NullType::__set_state(array( + )), + ), + )), + )), + 3 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( + 'allArrays' => NULL, + 'nextAutoIndexes' => + array ( + 0 => 0, + ), + 'keyTypes' => + array ( + 0 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'dbsignature', + 'isClassString' => false, + )), + 1 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'grouper', + 'isClassString' => false, + )), + ), + 'valueTypes' => + array ( + 0 => + PHPStan\Type\UnionType::__set_state(array( + 'sortedTypes' => false, + 'types' => + array ( + 0 => + PHPStan\Type\StringType::__set_state(array( + )), + 1 => + PHPStan\Type\NullType::__set_state(array( + )), + ), + )), + 1 => + PHPStan\Type\IntegerType::__set_state(array( + )), + ), + 'optionalKeys' => + array ( + ), + 'keyType' => + PHPStan\Type\UnionType::__set_state(array( + 'sortedTypes' => true, + 'types' => + array ( + 0 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'dbsignature', + 'isClassString' => false, + )), 1 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'grouper', + 'isClassString' => false, + )), + ), + )), + 'itemType' => + PHPStan\Type\UnionType::__set_state(array( + 'sortedTypes' => false, + 'types' => + array ( + 0 => PHPStan\Type\StringType::__set_state(array( )), + 1 => + PHPStan\Type\IntegerType::__set_state(array( + )), 2 => PHPStan\Type\NullType::__set_state(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( 'allArrays' => NULL, 'nextAutoIndexes' => array ( - 0 => 2, + 0 => 3, ), 'keyTypes' => array ( 0 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'dbsignature', + 'value' => 'COLUMN_NAME', 'isClassString' => false, )), 1 => @@ -86,17 +240,151 @@ )), 2 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'grouper', + 'value' => 'EXTRA', 'isClassString' => false, )), 3 => PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( 'value' => 1, )), + 4 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'COLUMN_TYPE', + 'isClassString' => false, + )), + 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 ( + ), + 'keyType' => + PHPStan\Type\UnionType::__set_state(array( + 'sortedTypes' => true, + '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, + )), + 4 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'COLUMN_TYPE', + 'isClassString' => false, + )), + 5 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'EXTRA', + 'isClassString' => false, + )), + ), + )), + 'itemType' => + PHPStan\Type\StringType::__set_state(array( + )), + )), + ), + ), + 'SELECT + coalesce(COLUMN_NAME, "") as COLUMN_NAME, + coalesce(EXTRA, "") as EXTRA, + COLUMN_TYPE + FROM information_schema.columns + WHERE table_name = ? AND table_schema = DATABASE()' => + array ( + 'result' => + array ( + 5 => NULL, + ), + ), + '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( + 'allArrays' => NULL, + 'nextAutoIndexes' => + array ( + 0 => 3, + ), + 'keyTypes' => + array ( + 0 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'COLUMN_NAME', + 'isClassString' => false, + )), + 1 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 0, + )), + 2 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'COLUMN_DEFAULT', + 'isClassString' => false, + )), + 3 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 1, + )), + 4 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'IS_NULLABLE', + 'isClassString' => false, + )), + 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( 'sortedTypes' => true, 'types' => @@ -109,7 +397,7 @@ )), ), )), - 1 => + 3 => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, 'types' => @@ -122,19 +410,82 @@ )), ), )), - 2 => - PHPStan\Type\IntegerType::__set_state(array( + 4 => + PHPStan\Type\StringType::__set_state(array( )), - 3 => - PHPStan\Type\IntegerType::__set_state(array( + 5 => + PHPStan\Type\StringType::__set_state(array( )), ), 'optionalKeys' => array ( ), + 'keyType' => + PHPStan\Type\UnionType::__set_state(array( + 'sortedTypes' => true, + '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, + )), + 4 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'COLUMN_NAME', + 'isClassString' => false, + )), + 5 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'IS_NULLABLE', + 'isClassString' => false, + )), + ), + )), + 'itemType' => + PHPStan\Type\UnionType::__set_state(array( + 'sortedTypes' => true, + 'types' => + array ( + 0 => + PHPStan\Type\StringType::__set_state(array( + )), + 1 => + PHPStan\Type\NullType::__set_state(array( + )), + ), + )), )), ), ), + 'SELECT column_name, column_default, is_nullable +FROM information_schema.columns +WHERE table_name = ?' => + array ( + 'result' => + array ( + 5 => NULL, + ), + ), + 'SELECT email, adaid FROM ada WHERE adaid = :adaid' => + array ( + 'result' => + array ( + 5 => NULL, + ), + ), ), 'runtimeConfig' => array ( diff --git a/.phpstan-dba-pdo.cache b/.phpstan-dba-pdo.cache index b22aa61a2..c94903069 100644 --- a/.phpstan-dba-pdo.cache +++ b/.phpstan-dba-pdo.cache @@ -1,6 +1,6 @@ 'v6-schema-hash', - 'schemaHash' => 'fc85743b94657f20850e7a591108f2c5', + 'schemaVersion' => 'v7-normalized-eol', + 'schemaHash' => NULL, 'records' => array ( ' @@ -27,6 +27,70 @@ array ( 5 => PHPStan\Type\Constant\ConstantArrayType::__set_state(array( + 'allArrays' => NULL, + 'nextAutoIndexes' => + array ( + 0 => 2, + ), + 'keyTypes' => + array ( + 0 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'dbsignature', + 'isClassString' => false, + )), + 1 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 0, + )), + 2 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'grouper', + 'isClassString' => false, + )), + 3 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 1, + )), + ), + 'valueTypes' => + array ( + 0 => + PHPStan\Type\UnionType::__set_state(array( + 'sortedTypes' => false, + 'types' => + array ( + 0 => + PHPStan\Type\StringType::__set_state(array( + )), + 1 => + PHPStan\Type\NullType::__set_state(array( + )), + ), + )), + 1 => + PHPStan\Type\UnionType::__set_state(array( + 'sortedTypes' => false, + 'types' => + array ( + 0 => + PHPStan\Type\StringType::__set_state(array( + )), + 1 => + PHPStan\Type\NullType::__set_state(array( + )), + ), + )), + 2 => + PHPStan\Type\IntegerType::__set_state(array( + )), + 3 => + PHPStan\Type\IntegerType::__set_state(array( + )), + ), + 'optionalKeys' => + array ( + ), 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -54,30 +118,120 @@ )), 'itemType' => PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => true, + 'sortedTypes' => false, 'types' => array ( 0 => + PHPStan\Type\StringType::__set_state(array( + )), + 1 => PHPStan\Type\IntegerType::__set_state(array( )), + 2 => + PHPStan\Type\NullType::__set_state(array( + )), + ), + )), + )), + 3 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( + 'allArrays' => NULL, + 'nextAutoIndexes' => + array ( + 0 => 0, + ), + 'keyTypes' => + array ( + 0 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'dbsignature', + 'isClassString' => false, + )), + 1 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'grouper', + 'isClassString' => false, + )), + ), + 'valueTypes' => + array ( + 0 => + PHPStan\Type\UnionType::__set_state(array( + 'sortedTypes' => false, + 'types' => + array ( + 0 => + PHPStan\Type\StringType::__set_state(array( + )), + 1 => + PHPStan\Type\NullType::__set_state(array( + )), + ), + )), + 1 => + PHPStan\Type\IntegerType::__set_state(array( + )), + ), + 'optionalKeys' => + array ( + ), + 'keyType' => + PHPStan\Type\UnionType::__set_state(array( + 'sortedTypes' => true, + 'types' => + array ( + 0 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'dbsignature', + 'isClassString' => false, + )), 1 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'grouper', + 'isClassString' => false, + )), + ), + )), + 'itemType' => + PHPStan\Type\UnionType::__set_state(array( + 'sortedTypes' => false, + 'types' => + array ( + 0 => PHPStan\Type\StringType::__set_state(array( )), + 1 => + PHPStan\Type\IntegerType::__set_state(array( + )), 2 => PHPStan\Type\NullType::__set_state(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( 'allArrays' => NULL, 'nextAutoIndexes' => array ( - 0 => 2, + 0 => 3, ), 'keyTypes' => array ( 0 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'dbsignature', + 'value' => 'COLUMN_NAME', 'isClassString' => false, )), 1 => @@ -86,17 +240,151 @@ )), 2 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'grouper', + 'value' => 'EXTRA', + 'isClassString' => false, + )), + 3 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 1, + )), + 4 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'COLUMN_TYPE', + 'isClassString' => false, + )), + 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 ( + ), + 'keyType' => + PHPStan\Type\UnionType::__set_state(array( + 'sortedTypes' => true, + '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, + )), + 4 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'COLUMN_TYPE', + 'isClassString' => false, + )), + 5 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'EXTRA', + 'isClassString' => false, + )), + ), + )), + 'itemType' => + PHPStan\Type\StringType::__set_state(array( + )), + )), + ), + ), + 'SELECT + coalesce(COLUMN_NAME, "") as COLUMN_NAME, + coalesce(EXTRA, "") as EXTRA, + COLUMN_TYPE + FROM information_schema.columns + WHERE table_name = ? AND table_schema = DATABASE()' => + array ( + 'result' => + array ( + 5 => NULL, + ), + ), + '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( + 'allArrays' => NULL, + 'nextAutoIndexes' => + array ( + 0 => 3, + ), + 'keyTypes' => + array ( + 0 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'COLUMN_NAME', + 'isClassString' => false, + )), + 1 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 0, + )), + 2 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'COLUMN_DEFAULT', 'isClassString' => false, )), 3 => PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( 'value' => 1, )), + 4 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'IS_NULLABLE', + 'isClassString' => false, + )), + 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( 'sortedTypes' => true, 'types' => @@ -109,7 +397,7 @@ )), ), )), - 1 => + 3 => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, 'types' => @@ -122,19 +410,75 @@ )), ), )), - 2 => - PHPStan\Type\IntegerType::__set_state(array( + 4 => + PHPStan\Type\StringType::__set_state(array( )), - 3 => - PHPStan\Type\IntegerType::__set_state(array( + 5 => + PHPStan\Type\StringType::__set_state(array( )), ), 'optionalKeys' => array ( ), + 'keyType' => + PHPStan\Type\UnionType::__set_state(array( + 'sortedTypes' => true, + '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, + )), + 4 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'COLUMN_NAME', + 'isClassString' => false, + )), + 5 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'IS_NULLABLE', + 'isClassString' => false, + )), + ), + )), + 'itemType' => + PHPStan\Type\UnionType::__set_state(array( + 'sortedTypes' => true, + 'types' => + array ( + 0 => + PHPStan\Type\StringType::__set_state(array( + )), + 1 => + PHPStan\Type\NullType::__set_state(array( + )), + ), + )), )), ), ), + 'SELECT column_name, column_default, is_nullable +FROM information_schema.columns +WHERE table_name = ?' => + array ( + 'result' => + array ( + 5 => NULL, + ), + ), ), 'runtimeConfig' => array ( diff --git a/src/QueryReflection/QueryReflection.php b/src/QueryReflection/QueryReflection.php index a32891d0b..c9d06493a 100644 --- a/src/QueryReflection/QueryReflection.php +++ b/src/QueryReflection/QueryReflection.php @@ -130,7 +130,7 @@ public function resolveQueryStrings(Expr $queryExpr, Scope $scope): iterable if ($type instanceof UnionType) { foreach (TypeUtils::getConstantStrings($type) as $constantString) { - yield $constantString->getValue(); + yield $this->normalizeQueryString($constantString->getValue()); } return; @@ -138,10 +138,18 @@ public function resolveQueryStrings(Expr $queryExpr, Scope $scope): iterable $queryString = $this->resolveQueryExpr($queryExpr, $scope); if (null !== $queryString) { - yield $queryString; + yield $this->normalizeQueryString($queryString); } } + /** + * Make sure query string work consistently across operating systems. + */ + private function normalizeQueryString(string $queryString): string + { + return str_replace("\r\n", "\n", $queryString); + } + /** * @deprecated use resolveQueryStrings() instead * diff --git a/src/QueryReflection/ReflectionCache.php b/src/QueryReflection/ReflectionCache.php index 0c71b22ae..01d94edfb 100644 --- a/src/QueryReflection/ReflectionCache.php +++ b/src/QueryReflection/ReflectionCache.php @@ -13,7 +13,7 @@ final class ReflectionCache { - public const SCHEMA_VERSION = 'v6-schema-hash'; + public const SCHEMA_VERSION = 'v7-normalized-eol'; /** * @var string diff --git a/tests/default/DbaInferenceTest.php b/tests/default/DbaInferenceTest.php index d3dd6df21..4ff717c89 100644 --- a/tests/default/DbaInferenceTest.php +++ b/tests/default/DbaInferenceTest.php @@ -62,6 +62,7 @@ public function dataFileAsserts(): iterable yield from $this->gatherAssertTypes(__DIR__.'/data/pdo-union-result.php'); yield from $this->gatherAssertTypes(__DIR__.'/data/mysqli-union-result.php'); + yield from $this->gatherAssertTypes(__DIR__.'/data/bug372.php'); } /** diff --git a/tests/default/config/.phpstan-dba-mysqli.cache b/tests/default/config/.phpstan-dba-mysqli.cache index f367dfffa..1b01a424f 100644 --- a/tests/default/config/.phpstan-dba-mysqli.cache +++ b/tests/default/config/.phpstan-dba-mysqli.cache @@ -1,14 +1,51 @@ 'v6-schema-hash', + 'schemaVersion' => 'v7-normalized-eol', 'schemaHash' => NULL, 'records' => array ( - 'SELECT * FROM typemix' => + ' + SELECT + adaid + FROM + ada' => array ( 'result' => array ( 5 => PHPStan\Type\Constant\ConstantArrayType::__set_state(array( + 'allArrays' => NULL, + 'nextAutoIndexes' => + array ( + 0 => 1, + ), + 'keyTypes' => + array ( + 0 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'adaid', + 'isClassString' => false, + )), + 1 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 0, + )), + ), + 'valueTypes' => + array ( + 0 => + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + 1 => + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + ), + 'optionalKeys' => + array ( + ), 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -19,355 +56,26 @@ '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\ConstantIntegerType::__set_state(array( - 'value' => 5, - )), - 6 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 6, - )), - 7 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 7, - )), - 8 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 8, - )), - 9 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 9, - )), - 10 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 10, - )), - 11 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 11, - )), - 12 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 12, - )), - 13 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 13, - )), - 14 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 14, - )), - 15 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 15, - )), - 16 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 16, - )), - 17 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 17, - )), - 18 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 18, - )), - 19 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 19, - )), - 20 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 20, - )), - 21 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 21, - )), - 22 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 22, - )), - 23 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 23, - )), - 24 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 24, - )), - 25 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 25, - )), - 26 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 26, - )), - 27 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 27, - )), - 28 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 28, - )), - 29 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 29, - )), - 30 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 30, - )), - 31 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 31, - )), - 32 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 32, - )), - 33 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 33, - )), - 34 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 34, - )), - 35 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 35, - )), - 36 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 36, - )), - 37 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'c_bigint', - 'isClassString' => false, - )), - 38 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'c_bit', - 'isClassString' => false, - )), - 39 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'c_blob', - 'isClassString' => false, - )), - 40 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'c_boolean', - 'isClassString' => false, - )), - 41 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'c_char5', - 'isClassString' => false, - )), - 42 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'c_date', - 'isClassString' => false, - )), - 43 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'c_datetime', - 'isClassString' => false, - )), - 44 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'c_double', - 'isClassString' => false, - )), - 45 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'c_enum', - 'isClassString' => false, - )), - 46 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'c_int', - 'isClassString' => false, - )), - 47 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'c_json', - 'isClassString' => false, - )), - 48 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'c_json_not_null', - 'isClassString' => false, - )), - 49 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'c_long_text', - 'isClassString' => false, - )), - 50 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'c_longblob', - 'isClassString' => false, - )), - 51 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'c_medium_text', - 'isClassString' => false, - )), - 52 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'c_mediumblog', - 'isClassString' => false, - )), - 53 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'c_mediumint', - 'isClassString' => false, - )), - 54 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'c_real', - 'isClassString' => false, - )), - 55 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'c_set', - 'isClassString' => false, - )), - 56 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'c_smallint', - 'isClassString' => false, - )), - 57 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'c_text', - 'isClassString' => false, - )), - 58 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'c_time', - 'isClassString' => false, - )), - 59 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'c_timestamp', - 'isClassString' => false, - )), - 60 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'c_tiny_text', - 'isClassString' => false, - )), - 61 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'c_tinyblob', - 'isClassString' => false, - )), - 62 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'c_tinyint', - 'isClassString' => false, - )), - 63 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'c_unsigned_bigint', - 'isClassString' => false, - )), - 64 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'c_unsigned_int', - 'isClassString' => false, - )), - 65 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'c_unsigned_mediumint', - 'isClassString' => false, - )), - 66 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'c_unsigned_smallint', - 'isClassString' => false, - )), - 67 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'c_unsigned_tinyint', - 'isClassString' => false, - )), - 68 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'c_varbinary25', - 'isClassString' => false, - )), - 69 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'c_varbinary255', - 'isClassString' => false, - )), - 70 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'c_varchar25', - 'isClassString' => false, - )), - 71 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'c_varchar255', - 'isClassString' => false, - )), - 72 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'c_year', - 'isClassString' => false, - )), - 73 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'pid', + 'value' => 'adaid', 'isClassString' => false, )), ), )), 'itemType' => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => false, - 'types' => - array ( - 0 => - PHPStan\Type\StringType::__set_state(array( - )), - 1 => - PHPStan\Type\FloatType::__set_state(array( - )), - 2 => - PHPStan\Type\IntegerType::__set_state(array( - )), - 3 => - PHPStan\Type\NullType::__set_state(array( - )), - ), + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, )), + )), + ), + ), + 'SELECT * FROM typemix' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( @@ -1245,15 +953,6 @@ 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT MAX(adaid), MIN(adaid), COUNT(adaid), AVG(adaid) FROM ada WHERE adaid = 1' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -1276,672 +975,494 @@ 'value' => 3, )), 4 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'AVG(adaid)', - 'isClassString' => false, + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 4, )), 5 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'COUNT(adaid)', - 'isClassString' => false, + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 5, )), 6 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'MAX(adaid)', - 'isClassString' => false, + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 6, )), 7 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'MIN(adaid)', - 'isClassString' => false, + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 7, )), - ), - )), - 'itemType' => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => false, - 'types' => - array ( - 0 => - PHPStan\Type\IntegerType::__set_state(array( + 8 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 8, )), - 1 => - PHPStan\Type\FloatType::__set_state(array( + 9 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 9, )), - 2 => - PHPStan\Type\NullType::__set_state(array( + 10 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 10, )), - ), - )), - 'allArrays' => NULL, - 'nextAutoIndexes' => - array ( - 0 => 4, - ), - 'keyTypes' => - array ( - 0 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'MAX(adaid)', - 'isClassString' => false, - )), - 1 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 0, - )), - 2 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'MIN(adaid)', - 'isClassString' => false, - )), - 3 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 1, - )), - 4 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'COUNT(adaid)', - 'isClassString' => false, - )), - 5 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 2, - )), - 6 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'AVG(adaid)', - 'isClassString' => false, - )), - 7 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 3, - )), - ), - 'valueTypes' => - array ( - 0 => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => false, - 'types' => - array ( - 0 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 1 => - PHPStan\Type\NullType::__set_state(array( - )), - ), - )), - 1 => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => false, - 'types' => - array ( - 0 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 1 => - PHPStan\Type\NullType::__set_state(array( - )), - ), - )), - 2 => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => false, - 'types' => - array ( - 0 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 1 => - PHPStan\Type\NullType::__set_state(array( - )), - ), - )), - 3 => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => false, - 'types' => - array ( - 0 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 1 => - PHPStan\Type\NullType::__set_state(array( - )), - ), - )), - 4 => - PHPStan\Type\IntegerType::__set_state(array( - )), - 5 => - PHPStan\Type\IntegerType::__set_state(array( - )), - 6 => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => false, - 'types' => - array ( - 0 => - PHPStan\Type\FloatType::__set_state(array( - )), - 1 => - PHPStan\Type\NullType::__set_state(array( - )), - ), - )), - 7 => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => false, - 'types' => - array ( - 0 => - PHPStan\Type\FloatType::__set_state(array( - )), - 1 => - PHPStan\Type\NullType::__set_state(array( - )), - ), - )), - ), - 'optionalKeys' => - array ( - ), - )), - ), - ), - 'SELECT adaid FROM ada' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( - 'keyType' => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => true, - 'types' => - array ( - 0 => + 11 => PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 0, + 'value' => 11, )), - 1 => + 12 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 12, + )), + 13 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 13, + )), + 14 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 14, + )), + 15 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 15, + )), + 16 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 16, + )), + 17 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 17, + )), + 18 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 18, + )), + 19 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 19, + )), + 20 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 20, + )), + 21 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 21, + )), + 22 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 22, + )), + 23 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 23, + )), + 24 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 24, + )), + 25 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 25, + )), + 26 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 26, + )), + 27 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 27, + )), + 28 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 28, + )), + 29 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 29, + )), + 30 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 30, + )), + 31 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 31, + )), + 32 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 32, + )), + 33 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 33, + )), + 34 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 34, + )), + 35 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 35, + )), + 36 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 36, + )), + 37 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', + 'value' => 'c_bigint', 'isClassString' => false, )), - ), - )), - 'itemType' => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 'allArrays' => NULL, - 'nextAutoIndexes' => - array ( - 0 => 1, - ), - 'keyTypes' => - array ( - 0 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - )), - 1 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 0, - )), - ), - 'valueTypes' => - array ( - 0 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 1 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - ), - 'optionalKeys' => - array ( - ), - )), - 3 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( - 'keyType' => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - )), - 'itemType' => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 'allArrays' => NULL, - 'nextAutoIndexes' => - array ( - 0 => 0, - ), - 'keyTypes' => - array ( - 0 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - )), - ), - 'valueTypes' => - array ( - 0 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - ), - 'optionalKeys' => - array ( - ), - )), - ), - ), - 'SELECT adaid FROM ada LIMIT 1 FOR SHARE' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( - 'keyType' => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => true, - 'types' => - array ( - 0 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 0, + 38 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'c_bit', + 'isClassString' => false, )), - 1 => + 39 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', + 'value' => 'c_blob', 'isClassString' => false, )), - ), - )), - 'itemType' => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 'allArrays' => NULL, - 'nextAutoIndexes' => - array ( - 0 => 1, - ), - 'keyTypes' => - array ( - 0 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - )), - 1 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 0, - )), - ), - 'valueTypes' => - array ( - 0 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 1 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - ), - 'optionalKeys' => - array ( - ), - )), - ), - ), - 'SELECT adaid FROM ada LIMIT 1 FOR SHARE NOWAIT' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( - 'keyType' => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => true, - 'types' => - array ( - 0 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 0, + 40 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'c_boolean', + 'isClassString' => false, + )), + 41 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'c_char5', + 'isClassString' => false, + )), + 42 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'c_date', + 'isClassString' => false, + )), + 43 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'c_datetime', + 'isClassString' => false, + )), + 44 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'c_double', + 'isClassString' => false, + )), + 45 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'c_enum', + 'isClassString' => false, + )), + 46 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'c_int', + 'isClassString' => false, + )), + 47 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'c_json', + 'isClassString' => false, + )), + 48 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'c_json_not_null', + 'isClassString' => false, + )), + 49 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'c_long_text', + 'isClassString' => false, + )), + 50 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'c_longblob', + 'isClassString' => false, + )), + 51 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'c_medium_text', + 'isClassString' => false, + )), + 52 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'c_mediumblog', + 'isClassString' => false, + )), + 53 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'c_mediumint', + 'isClassString' => false, + )), + 54 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'c_real', + 'isClassString' => false, + )), + 55 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'c_set', + 'isClassString' => false, + )), + 56 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'c_smallint', + 'isClassString' => false, + )), + 57 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'c_text', + 'isClassString' => false, + )), + 58 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'c_time', + 'isClassString' => false, + )), + 59 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'c_timestamp', + 'isClassString' => false, + )), + 60 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'c_tiny_text', + 'isClassString' => false, + )), + 61 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'c_tinyblob', + 'isClassString' => false, + )), + 62 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'c_tinyint', + 'isClassString' => false, + )), + 63 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'c_unsigned_bigint', + 'isClassString' => false, + )), + 64 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'c_unsigned_int', + 'isClassString' => false, + )), + 65 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'c_unsigned_mediumint', + 'isClassString' => false, + )), + 66 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'c_unsigned_smallint', + 'isClassString' => false, + )), + 67 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'c_unsigned_tinyint', + 'isClassString' => false, + )), + 68 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'c_varbinary25', + 'isClassString' => false, + )), + 69 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'c_varbinary255', + 'isClassString' => false, )), - 1 => + 70 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', + 'value' => 'c_varchar25', 'isClassString' => false, )), - ), - )), - 'itemType' => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 'allArrays' => NULL, - 'nextAutoIndexes' => - array ( - 0 => 1, - ), - 'keyTypes' => - array ( - 0 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - )), - 1 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 0, - )), - ), - 'valueTypes' => - array ( - 0 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 1 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - ), - 'optionalKeys' => - array ( - ), - )), - ), - ), - 'SELECT adaid FROM ada LIMIT 1 FOR SHARE SKIP LOCKED' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( - 'keyType' => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => true, - 'types' => - array ( - 0 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 0, - )), - 1 => + 71 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', + 'value' => 'c_varchar255', 'isClassString' => false, )), - ), - )), - 'itemType' => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 'allArrays' => NULL, - 'nextAutoIndexes' => - array ( - 0 => 1, - ), - 'keyTypes' => - array ( - 0 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - )), - 1 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 0, - )), - ), - 'valueTypes' => - array ( - 0 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 1 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - ), - 'optionalKeys' => - array ( - ), - )), - ), - ), - 'SELECT adaid FROM ada LIMIT 1 FOR UPDATE NOWAIT' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( - 'keyType' => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => true, - 'types' => - array ( - 0 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 0, + 72 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'c_year', + 'isClassString' => false, )), - 1 => + 73 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', + 'value' => 'pid', 'isClassString' => false, )), ), )), 'itemType' => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 'allArrays' => NULL, - 'nextAutoIndexes' => - array ( - 0 => 1, - ), - 'keyTypes' => - array ( - 0 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - )), - 1 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 0, - )), - ), - 'valueTypes' => - array ( - 0 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 1 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - ), - 'optionalKeys' => - array ( - ), - )), - ), - ), - 'SELECT adaid FROM ada LIMIT 1 FOR UPDATE SKIP LOCKED' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( - 'keyType' => PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => true, + 'sortedTypes' => false, 'types' => array ( 0 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 0, + PHPStan\Type\StringType::__set_state(array( )), 1 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, + PHPStan\Type\FloatType::__set_state(array( + )), + 2 => + PHPStan\Type\IntegerType::__set_state(array( + )), + 3 => + PHPStan\Type\NullType::__set_state(array( )), ), )), - 'itemType' => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 'allArrays' => NULL, - 'nextAutoIndexes' => - array ( - 0 => 1, - ), - 'keyTypes' => - array ( - 0 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - )), - 1 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 0, - )), - ), - 'valueTypes' => - array ( - 0 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 1 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - ), - 'optionalKeys' => - array ( - ), )), ), ), - 'SELECT adaid FROM ada LIMIT 1 OFFSET 1' => + 'SELECT MAX(adaid), MIN(adaid), COUNT(adaid), AVG(adaid) FROM ada WHERE adaid = 1' => array ( 'result' => array ( 5 => PHPStan\Type\Constant\ConstantArrayType::__set_state(array( - 'keyType' => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => true, - 'types' => - array ( - 0 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 0, - )), - 1 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - )), - ), - )), - 'itemType' => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), 'allArrays' => NULL, 'nextAutoIndexes' => array ( - 0 => 1, + 0 => 4, ), 'keyTypes' => array ( 0 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', + 'value' => 'MAX(adaid)', 'isClassString' => false, )), 1 => PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( 'value' => 0, )), + 2 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'MIN(adaid)', + 'isClassString' => false, + )), + 3 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 1, + )), + 4 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'COUNT(adaid)', + 'isClassString' => false, + )), + 5 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 2, + )), + 6 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'AVG(adaid)', + 'isClassString' => false, + )), + 7 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 3, + )), ), 'valueTypes' => array ( 0 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, + PHPStan\Type\UnionType::__set_state(array( + 'sortedTypes' => false, + 'types' => + array ( + 0 => + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + 1 => + PHPStan\Type\NullType::__set_state(array( + )), + ), )), 1 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, + PHPStan\Type\UnionType::__set_state(array( + 'sortedTypes' => false, + 'types' => + array ( + 0 => + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + 1 => + PHPStan\Type\NullType::__set_state(array( + )), + ), + )), + 2 => + PHPStan\Type\UnionType::__set_state(array( + 'sortedTypes' => false, + 'types' => + array ( + 0 => + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + 1 => + PHPStan\Type\NullType::__set_state(array( + )), + ), + )), + 3 => + PHPStan\Type\UnionType::__set_state(array( + 'sortedTypes' => false, + 'types' => + array ( + 0 => + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + 1 => + PHPStan\Type\NullType::__set_state(array( + )), + ), + )), + 4 => + PHPStan\Type\IntegerType::__set_state(array( + )), + 5 => + PHPStan\Type\IntegerType::__set_state(array( + )), + 6 => + PHPStan\Type\UnionType::__set_state(array( + 'sortedTypes' => false, + 'types' => + array ( + 0 => + PHPStan\Type\FloatType::__set_state(array( + )), + 1 => + PHPStan\Type\NullType::__set_state(array( + )), + ), + )), + 7 => + PHPStan\Type\UnionType::__set_state(array( + 'sortedTypes' => false, + 'types' => + array ( + 0 => + PHPStan\Type\FloatType::__set_state(array( + )), + 1 => + PHPStan\Type\NullType::__set_state(array( + )), + ), )), ), 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT adaid FROM ada LIMIT 1 OFFSET 1 FOR UPDATE' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -1952,17 +1473,65 @@ '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', + 'value' => 'AVG(adaid)', + 'isClassString' => false, + )), + 5 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'COUNT(adaid)', + 'isClassString' => false, + )), + 6 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'MAX(adaid)', + 'isClassString' => false, + )), + 7 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'MIN(adaid)', 'isClassString' => false, )), ), )), 'itemType' => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, + PHPStan\Type\UnionType::__set_state(array( + 'sortedTypes' => false, + 'types' => + array ( + 0 => + PHPStan\Type\IntegerType::__set_state(array( + )), + 1 => + PHPStan\Type\FloatType::__set_state(array( + )), + 2 => + PHPStan\Type\NullType::__set_state(array( + )), + ), )), + )), + ), + ), + 'SELECT adaid +FROM ada' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( @@ -1996,15 +1565,6 @@ 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT adaid FROM ada WHERE adaid IN (\'1\')' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -2026,6 +1586,15 @@ 'min' => -32768, 'max' => 32767, )), + )), + ), + ), + 'SELECT adaid FROM ada' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( @@ -2059,15 +1628,6 @@ 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT adaid FROM ada WHERE adaid IN (\'1\') AND email LIKE \'1970-01-01\'' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -2089,10 +1649,13 @@ 'min' => -32768, 'max' => 32767, )), + )), + 3 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( - 0 => 1, + 0 => 0, ), 'keyTypes' => array ( @@ -2101,57 +1664,37 @@ 'value' => 'adaid', 'isClassString' => false, )), - 1 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 0, - )), ), 'valueTypes' => array ( 0 => PHPStan\Type\IntegerRangeType::__set_state(array( 'min' => -32768, - 'max' => 32767, - )), - 1 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - ), - 'optionalKeys' => - array ( - ), - )), - ), - ), - 'SELECT adaid FROM ada WHERE adaid IN (\'1.0\')' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( - 'keyType' => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => true, - 'types' => - array ( - 0 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 0, - )), - 1 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - )), - ), + 'max' => 32767, + )), + ), + 'optionalKeys' => + array ( + ), + 'keyType' => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'adaid', + 'isClassString' => false, )), 'itemType' => PHPStan\Type\IntegerRangeType::__set_state(array( 'min' => -32768, 'max' => 32767, )), + )), + ), + ), + 'SELECT adaid FROM ada LIMIT 1 FOR SHARE' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( @@ -2185,36 +1728,6 @@ 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT adaid FROM ada WHERE adaid IN (:adaids)' => - array ( - 'result' => - array ( - 5 => NULL, - ), - ), - 'SELECT adaid FROM ada WHERE adaid IN (:ids)' => - array ( - 'result' => - array ( - 5 => NULL, - ), - ), - 'SELECT adaid FROM ada WHERE adaid IN (:ids) AND email LIKE :time' => - array ( - 'result' => - array ( - 5 => NULL, - ), - ), - 'SELECT adaid FROM ada WHERE adaid IN (NULL) AND email LIKE \'1970-01-01\'' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -2236,6 +1749,15 @@ 'min' => -32768, 'max' => 32767, )), + )), + ), + ), + 'SELECT adaid FROM ada LIMIT 1 FOR SHARE NOWAIT' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( @@ -2269,15 +1791,6 @@ 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT adaid FROM ada WHERE email LIKE ":gesperrt%"' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -2299,6 +1812,15 @@ 'min' => -32768, 'max' => 32767, )), + )), + ), + ), + 'SELECT adaid FROM ada LIMIT 1 FOR SHARE SKIP LOCKED' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( @@ -2332,15 +1854,6 @@ 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT adaid FROM ada WHERE email LIKE "hello?%"' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -2362,6 +1875,15 @@ 'min' => -32768, 'max' => 32767, )), + )), + ), + ), + 'SELECT adaid FROM ada LIMIT 1 FOR UPDATE NOWAIT' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( @@ -2395,15 +1917,6 @@ 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT adaid FROM ada WHERE email LIKE \'%questions ?%\'' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -2425,6 +1938,15 @@ 'min' => -32768, 'max' => 32767, )), + )), + ), + ), + 'SELECT adaid FROM ada LIMIT 1 FOR UPDATE SKIP LOCKED' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( @@ -2458,15 +1980,6 @@ 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT adaid FROM ada WHERE email LIKE \':gesperrt%\'' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -2488,6 +2001,15 @@ 'min' => -32768, 'max' => 32767, )), + )), + ), + ), + 'SELECT adaid FROM ada LIMIT 1 OFFSET 1' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( @@ -2521,15 +2043,6 @@ 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT adaid FROM ada WHERE email LIKE \'hello?%\'' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -2551,6 +2064,15 @@ 'min' => -32768, 'max' => 32767, )), + )), + ), + ), + 'SELECT adaid FROM ada LIMIT 1 OFFSET 1 FOR UPDATE' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( @@ -2584,15 +2106,6 @@ 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT akid FROM ak WHERE eadavk>1.0' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -2604,16 +2117,25 @@ )), 1 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'akid', + 'value' => 'adaid', 'isClassString' => false, )), ), )), 'itemType' => PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + 'min' => -32768, + 'max' => 32767, )), + )), + ), + ), + 'SELECT adaid FROM ada WHERE adaid IN (\'1\')' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( @@ -2623,7 +2145,7 @@ array ( 0 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'akid', + 'value' => 'adaid', 'isClassString' => false, )), 1 => @@ -2635,27 +2157,18 @@ array ( 0 => PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + 'min' => -32768, + 'max' => 32767, )), 1 => PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + 'min' => -32768, + 'max' => 32767, )), ), 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT akid FROM ak WHERE eadavk>1.1' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -2667,16 +2180,25 @@ )), 1 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'akid', + 'value' => 'adaid', 'isClassString' => false, )), ), )), 'itemType' => PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + 'min' => -32768, + 'max' => 32767, )), + )), + ), + ), + 'SELECT adaid FROM ada WHERE adaid IN (\'1\') AND email LIKE \'1970-01-01\'' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( @@ -2686,7 +2208,7 @@ array ( 0 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'akid', + 'value' => 'adaid', 'isClassString' => false, )), 1 => @@ -2698,34 +2220,18 @@ array ( 0 => PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + 'min' => -32768, + 'max' => 32767, )), 1 => PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + 'min' => -32768, + 'max' => 32767, )), ), 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT count(*) AS c FROM typemix WHERE c_datetime=:last_dt' => - array ( - 'result' => - array ( - 5 => NULL, - ), - ), - 'SELECT count(*) FROM typemix WHERE c_date = \'1970-01-01\'' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -2737,14 +2243,46 @@ )), 1 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'count(*)', + 'value' => 'adaid', 'isClassString' => false, )), ), )), 'itemType' => - PHPStan\Type\IntegerType::__set_state(array( + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, )), + )), + ), + ), + 'SELECT adaid FROM ada WHERE adaid IN (:adaids)' => + array ( + 'result' => + array ( + 5 => NULL, + ), + ), + 'SELECT adaid FROM ada WHERE adaid IN (:ids)' => + array ( + 'result' => + array ( + 5 => NULL, + ), + ), + 'SELECT adaid FROM ada WHERE adaid IN (:ids) AND email LIKE :time' => + array ( + 'result' => + array ( + 5 => NULL, + ), + ), + 'SELECT adaid FROM ada WHERE adaid IN (NULL) AND email LIKE \'1970-01-01\'' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( @@ -2754,7 +2292,7 @@ array ( 0 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'count(*)', + 'value' => 'adaid', 'isClassString' => false, )), 1 => @@ -2765,24 +2303,19 @@ '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' => array ( ), - )), - ), - ), - 'SELECT count(*) FROM typemix WHERE c_datetime = \'1970-01-01\'' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -2794,14 +2327,25 @@ )), 1 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'count(*)', + 'value' => 'adaid', 'isClassString' => false, )), ), )), 'itemType' => - PHPStan\Type\IntegerType::__set_state(array( + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, )), + )), + ), + ), + 'SELECT adaid FROM ada WHERE email LIKE ":gesperrt%"' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( @@ -2811,7 +2355,7 @@ array ( 0 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'count(*)', + 'value' => 'adaid', 'isClassString' => false, )), 1 => @@ -2822,24 +2366,19 @@ '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' => array ( ), - )), - ), - ), - 'SELECT eladaid FROM ak' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -2851,26 +2390,25 @@ )), 1 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'eladaid', + 'value' => 'adaid', 'isClassString' => false, )), ), )), 'itemType' => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => false, - 'types' => - array ( - 0 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, - )), - 1 => - PHPStan\Type\NullType::__set_state(array( - )), - ), + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, )), + )), + ), + ), + 'SELECT adaid FROM ada WHERE email LIKE \'%questions ?%\'' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( @@ -2880,7 +2418,7 @@ array ( 0 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'eladaid', + 'value' => 'adaid', 'isClassString' => false, )), 1 => @@ -2891,48 +2429,19 @@ 'valueTypes' => array ( 0 => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => false, - 'types' => - array ( - 0 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, - )), - 1 => - PHPStan\Type\NullType::__set_state(array( - )), - ), + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, )), 1 => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => false, - 'types' => - array ( - 0 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, - )), - 1 => - PHPStan\Type\NullType::__set_state(array( - )), - ), + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, )), ), 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT email FROM ada' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -2944,14 +2453,25 @@ )), 1 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', + 'value' => 'adaid', 'isClassString' => false, )), ), )), 'itemType' => - PHPStan\Type\StringType::__set_state(array( + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, )), + )), + ), + ), + 'SELECT adaid FROM ada WHERE email LIKE \':gesperrt%\'' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( @@ -2961,7 +2481,7 @@ array ( 0 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', + 'value' => 'adaid', 'isClassString' => false, )), 1 => @@ -2972,64 +2492,19 @@ 'valueTypes' => array ( 0 => - PHPStan\Type\StringType::__set_state(array( + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, )), 1 => - PHPStan\Type\StringType::__set_state(array( - )), - ), - 'optionalKeys' => - array ( - ), - )), - 3 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( - 'keyType' => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', - 'isClassString' => false, - )), - 'itemType' => - PHPStan\Type\StringType::__set_state(array( - )), - 'allArrays' => NULL, - 'nextAutoIndexes' => - array ( - 0 => 0, - ), - 'keyTypes' => - array ( - 0 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', - 'isClassString' => false, - )), - ), - 'valueTypes' => - array ( - 0 => - PHPStan\Type\StringType::__set_state(array( + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, )), ), 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT email adaid WHERE gesperrt freigabe1u1 FROM ada' => - array ( - 'result' => - array ( - 5 => NULL, - ), - ), - 'SELECT email, adaid FROM ada' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -3040,76 +2515,51 @@ 'value' => 0, )), 1 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 1, - )), - 2 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( 'value' => 'adaid', 'isClassString' => false, )), - 3 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', - 'isClassString' => false, - )), ), )), 'itemType' => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => false, - 'types' => - array ( - 0 => - PHPStan\Type\StringType::__set_state(array( - )), - 1 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - ), + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, )), + )), + ), + ), + 'SELECT adaid FROM ada WHERE email LIKE \'hello?%\'' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( - 0 => 2, + 0 => 1, ), - 'keyTypes' => - array ( - 0 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', - 'isClassString' => false, - )), - 1 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 0, - )), - 2 => + 'keyTypes' => + array ( + 0 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( 'value' => 'adaid', 'isClassString' => false, )), - 3 => + 1 => PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 1, + 'value' => 0, )), ), 'valueTypes' => array ( 0 => - PHPStan\Type\StringType::__set_state(array( - )), - 1 => - PHPStan\Type\StringType::__set_state(array( - )), - 2 => PHPStan\Type\IntegerRangeType::__set_state(array( 'min' => -32768, 'max' => 32767, )), - 3 => + 1 => PHPStan\Type\IntegerRangeType::__set_state(array( 'min' => -32768, 'max' => 32767, @@ -3118,82 +2568,69 @@ 'optionalKeys' => array ( ), - )), - 3 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, 'types' => array ( 0 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 0, )), 1 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', + 'value' => 'adaid', 'isClassString' => false, )), ), )), 'itemType' => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => false, - 'types' => - array ( - 0 => - PHPStan\Type\StringType::__set_state(array( - )), - 1 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - ), + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, )), + )), + ), + ), + 'SELECT akid FROM ak WHERE eadavk>1.0' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( - 0 => 0, + 0 => 1, ), 'keyTypes' => array ( 0 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', + 'value' => 'akid', 'isClassString' => false, )), 1 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 0, )), ), 'valueTypes' => array ( 0 => - PHPStan\Type\StringType::__set_state(array( + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), 1 => PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, + 'min' => -2147483648, + 'max' => 2147483647, )), ), 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT email, adaid FROM ada LIMIT 1' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -3204,93 +2641,59 @@ 'value' => 0, )), 1 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 1, - )), - 2 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - )), - 3 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', + 'value' => 'akid', 'isClassString' => false, )), ), )), 'itemType' => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => false, - 'types' => - array ( - 0 => - PHPStan\Type\StringType::__set_state(array( - )), - 1 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - ), + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), + )), + ), + ), + 'SELECT akid FROM ak WHERE eadavk>1.1' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( - 0 => 2, + 0 => 1, ), 'keyTypes' => array ( 0 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', + 'value' => 'akid', 'isClassString' => false, )), 1 => PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( 'value' => 0, )), - 2 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - )), - 3 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 1, - )), ), 'valueTypes' => array ( 0 => - PHPStan\Type\StringType::__set_state(array( - )), - 1 => - PHPStan\Type\StringType::__set_state(array( - )), - 2 => PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, + 'min' => -2147483648, + 'max' => 2147483647, )), - 3 => + 1 => PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, + 'min' => -2147483648, + 'max' => 2147483647, )), ), 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT email, adaid FROM ada LIMIT 1, 10' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -3301,93 +2704,62 @@ 'value' => 0, )), 1 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 1, - )), - 2 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - )), - 3 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', + 'value' => 'akid', 'isClassString' => false, )), ), )), 'itemType' => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => false, - 'types' => - array ( - 0 => - PHPStan\Type\StringType::__set_state(array( - )), - 1 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - ), + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), + )), + ), + ), + 'SELECT count(*) AS c FROM typemix WHERE c_datetime=:last_dt' => + array ( + 'result' => + array ( + 5 => NULL, + ), + ), + 'SELECT count(*) FROM typemix WHERE c_date = \'1970-01-01\'' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( - 0 => 2, + 0 => 1, ), 'keyTypes' => array ( 0 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', + 'value' => 'count(*)', 'isClassString' => false, )), 1 => PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( 'value' => 0, )), - 2 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - )), - 3 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 1, - )), ), 'valueTypes' => array ( 0 => - PHPStan\Type\StringType::__set_state(array( + PHPStan\Type\IntegerType::__set_state(array( )), 1 => - PHPStan\Type\StringType::__set_state(array( - )), - 2 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 3 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, + PHPStan\Type\IntegerType::__set_state(array( )), ), 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT email, adaid FROM ada WHERE adaid = \'1\'' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -3398,93 +2770,53 @@ 'value' => 0, )), 1 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 1, - )), - 2 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - )), - 3 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', - 'isClassString' => false, - )), - ), - )), - 'itemType' => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => false, - 'types' => - array ( - 0 => - PHPStan\Type\StringType::__set_state(array( - )), - 1 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'count(*)', + 'isClassString' => false, )), ), )), + 'itemType' => + PHPStan\Type\IntegerType::__set_state(array( + )), + )), + ), + ), + 'SELECT count(*) FROM typemix WHERE c_datetime = \'1970-01-01\'' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( - 0 => 2, + 0 => 1, ), 'keyTypes' => array ( 0 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', + 'value' => 'count(*)', 'isClassString' => false, )), 1 => PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( 'value' => 0, )), - 2 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - )), - 3 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 1, - )), ), 'valueTypes' => array ( 0 => - PHPStan\Type\StringType::__set_state(array( + PHPStan\Type\IntegerType::__set_state(array( )), 1 => - PHPStan\Type\StringType::__set_state(array( - )), - 2 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 3 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, + PHPStan\Type\IntegerType::__set_state(array( )), ), 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT email, adaid FROM ada WHERE adaid = \'1\' and email = \'email@example.org\'' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -3495,93 +2827,77 @@ 'value' => 0, )), 1 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 1, - )), - 2 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - )), - 3 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', + 'value' => 'count(*)', 'isClassString' => false, )), ), )), 'itemType' => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => false, - 'types' => - array ( - 0 => - PHPStan\Type\StringType::__set_state(array( - )), - 1 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - ), + PHPStan\Type\IntegerType::__set_state(array( )), + )), + ), + ), + 'SELECT eladaid FROM ak' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( - 0 => 2, + 0 => 1, ), 'keyTypes' => array ( 0 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', + 'value' => 'eladaid', 'isClassString' => false, )), 1 => PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( 'value' => 0, )), - 2 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - )), - 3 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 1, - )), ), 'valueTypes' => array ( 0 => - PHPStan\Type\StringType::__set_state(array( + PHPStan\Type\UnionType::__set_state(array( + 'sortedTypes' => false, + 'types' => + array ( + 0 => + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, + )), + 1 => + PHPStan\Type\NullType::__set_state(array( + )), + ), )), 1 => - PHPStan\Type\StringType::__set_state(array( - )), - 2 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 3 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, + PHPStan\Type\UnionType::__set_state(array( + 'sortedTypes' => false, + 'types' => + array ( + 0 => + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, + )), + 1 => + PHPStan\Type\NullType::__set_state(array( + )), + ), )), ), 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT email, adaid FROM ada WHERE adaid = 1' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -3592,17 +2908,8 @@ 'value' => 0, )), 1 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 1, - )), - 2 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - )), - 3 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', + 'value' => 'eladaid', 'isClassString' => false, )), ), @@ -3613,19 +2920,29 @@ 'types' => array ( 0 => - PHPStan\Type\StringType::__set_state(array( + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), 1 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, + PHPStan\Type\NullType::__set_state(array( )), ), )), + )), + ), + ), + 'SELECT email +FROM ada' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( - 0 => 2, + 0 => 1, ), 'keyTypes' => array ( @@ -3638,15 +2955,6 @@ PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( 'value' => 0, )), - 2 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - )), - 3 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 1, - )), ), 'valueTypes' => array ( @@ -3656,29 +2964,10 @@ 1 => PHPStan\Type\StringType::__set_state(array( )), - 2 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 3 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), ), 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT email, adaid FROM ada WHERE adaid = 2' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -3689,15 +2978,6 @@ 'value' => 0, )), 1 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 1, - )), - 2 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - )), - 3 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( 'value' => 'email', 'isClassString' => false, @@ -3705,24 +2985,21 @@ ), )), 'itemType' => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => false, - 'types' => - array ( - 0 => - PHPStan\Type\StringType::__set_state(array( - )), - 1 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - ), + PHPStan\Type\StringType::__set_state(array( )), + )), + ), + ), + 'SELECT email FROM ada' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( - 0 => 2, + 0 => 1, ), 'keyTypes' => array ( @@ -3735,15 +3012,6 @@ PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( 'value' => 0, )), - 2 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - )), - 3 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 1, - )), ), 'valueTypes' => array ( @@ -3751,31 +3019,12 @@ PHPStan\Type\StringType::__set_state(array( )), 1 => - PHPStan\Type\StringType::__set_state(array( - )), - 2 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 3 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, + PHPStan\Type\StringType::__set_state(array( )), ), 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT email, adaid FROM ada WHERE adaid = 3' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -3786,15 +3035,6 @@ 'value' => 0, )), 1 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 1, - )), - 2 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - )), - 3 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( 'value' => 'email', 'isClassString' => false, @@ -3802,24 +3042,15 @@ ), )), 'itemType' => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => false, - 'types' => - array ( - 0 => - PHPStan\Type\StringType::__set_state(array( - )), - 1 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - ), + PHPStan\Type\StringType::__set_state(array( )), + )), + 3 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( - 0 => 2, + 0 => 0, ), 'keyTypes' => array ( @@ -3828,112 +3059,40 @@ 'value' => 'email', 'isClassString' => false, )), - 1 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 0, - )), - 2 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - )), - 3 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 1, - )), ), 'valueTypes' => array ( 0 => PHPStan\Type\StringType::__set_state(array( )), - 1 => - PHPStan\Type\StringType::__set_state(array( - )), - 2 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 3 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), ), 'optionalKeys' => array ( ), + 'keyType' => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'email', + 'isClassString' => false, + )), + 'itemType' => + PHPStan\Type\StringType::__set_state(array( + )), )), ), ), - 'SELECT email, adaid FROM ada WHERE adaid = :adaid' => - array ( - 'result' => - array ( - 5 => NULL, - ), - ), - 'SELECT email, adaid FROM ada WHERE adaid = ?' => - array ( - 'result' => - array ( - 5 => NULL, - ), - ), - 'SELECT email, adaid FROM ada WHERE adaid = ? and email = ?' => + 'SELECT email adaid WHERE gesperrt freigabe1u1 FROM ada' => array ( 'result' => array ( 5 => NULL, ), ), - 'SELECT email, adaid FROM ada WHERE adaid IN(1,3)' => + 'SELECT email, adaid FROM ada' => array ( 'result' => array ( 5 => PHPStan\Type\Constant\ConstantArrayType::__set_state(array( - 'keyType' => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => true, - '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\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - )), - 3 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', - 'isClassString' => false, - )), - ), - )), - 'itemType' => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => false, - 'types' => - array ( - 0 => - PHPStan\Type\StringType::__set_state(array( - )), - 1 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - ), - )), 'allArrays' => NULL, 'nextAutoIndexes' => array ( @@ -3982,22 +3141,6 @@ 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT email, adaid FROM ada WHERE adaid=' => - array ( - 'result' => - array ( - 5 => NULL, - ), - ), - 'SELECT email, adaid FROM ada WHERE adaid=1' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -4038,10 +3181,13 @@ )), ), )), + )), + 3 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( - 0 => 2, + 0 => 0, ), 'keyTypes' => array ( @@ -4051,18 +3197,10 @@ 'isClassString' => false, )), 1 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 0, - )), - 2 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( 'value' => 'adaid', 'isClassString' => false, )), - 3 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 1, - )), ), 'valueTypes' => array ( @@ -4070,14 +3208,6 @@ PHPStan\Type\StringType::__set_state(array( )), 1 => - PHPStan\Type\StringType::__set_state(array( - )), - 2 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 3 => PHPStan\Type\IntegerRangeType::__set_state(array( 'min' => -32768, 'max' => 32767, @@ -4086,9 +3216,6 @@ 'optionalKeys' => array ( ), - )), - 3 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -4121,10 +3248,19 @@ )), ), )), + )), + ), + ), + 'SELECT email, adaid FROM ada LIMIT 1' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( - 0 => 0, + 0 => 2, ), 'keyTypes' => array ( @@ -4134,10 +3270,18 @@ 'isClassString' => false, )), 1 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 0, + )), + 2 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( 'value' => 'adaid', 'isClassString' => false, )), + 3 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 1, + )), ), 'valueTypes' => array ( @@ -4145,6 +3289,14 @@ PHPStan\Type\StringType::__set_state(array( )), 1 => + PHPStan\Type\StringType::__set_state(array( + )), + 2 => + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + 3 => PHPStan\Type\IntegerRangeType::__set_state(array( 'min' => -32768, 'max' => 32767, @@ -4153,15 +3305,6 @@ 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT email, adaid FROM ada WHERE email <=> \'\'' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -4202,6 +3345,15 @@ )), ), )), + )), + ), + ), + 'SELECT email, adaid FROM ada LIMIT 1, 10' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( @@ -4250,22 +3402,6 @@ 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT email, adaid FROM ada WHERE email <=> :email' => - array ( - 'result' => - array ( - 5 => NULL, - ), - ), - 'SELECT email, adaid FROM ada WHERE email = \'1970-01-01\'' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -4306,6 +3442,15 @@ )), ), )), + )), + ), + ), + 'SELECT email, adaid FROM ada WHERE adaid = \'1\'' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( @@ -4354,15 +3499,6 @@ 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT email, adaid FROM ada WHERE email = \'email@example.org\'' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -4403,6 +3539,15 @@ )), ), )), + )), + ), + ), + 'SELECT email, adaid FROM ada WHERE adaid = \'1\' and email = \'email@example.org\'' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( @@ -4451,15 +3596,6 @@ 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT email, adaid FROM ada WHERE email = \'test@example.org\'' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -4500,6 +3636,15 @@ )), ), )), + )), + ), + ), + 'SELECT email, adaid FROM ada WHERE adaid = 1' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( @@ -4548,15 +3693,6 @@ 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT email, adaid FROM ada WHERE email = \'webmaster@example.org\'' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -4597,6 +3733,15 @@ )), ), )), + )), + ), + ), + 'SELECT email, adaid FROM ada WHERE adaid = 2' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( @@ -4645,36 +3790,6 @@ 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT email, adaid FROM ada WHERE email = :email' => - array ( - 'result' => - array ( - 5 => NULL, - ), - ), - 'SELECT email, adaid FROM ada WHERE email = :test1 AND email = :test2' => - array ( - 'result' => - array ( - 5 => NULL, - ), - ), - 'SELECT email, adaid FROM ada WHERE email = ?' => - array ( - 'result' => - array ( - 5 => NULL, - ), - ), - 'SELECT email, adaid FROM ada WHERE email=\'foo\'' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -4715,6 +3830,15 @@ )), ), )), + )), + ), + ), + 'SELECT email, adaid FROM ada WHERE adaid = 3' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( @@ -4763,15 +3887,6 @@ 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT email, adaid FROM ada WHERE email=\'test@example.org\'' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -4812,6 +3927,36 @@ )), ), )), + )), + ), + ), + 'SELECT email, adaid FROM ada WHERE adaid = :adaid' => + array ( + 'result' => + array ( + 5 => NULL, + ), + ), + 'SELECT email, adaid FROM ada WHERE adaid = ?' => + array ( + 'result' => + array ( + 5 => NULL, + ), + ), + 'SELECT email, adaid FROM ada WHERE adaid = ? and email = ?' => + array ( + 'result' => + array ( + 5 => NULL, + ), + ), + 'SELECT email, adaid FROM ada WHERE adaid IN(1,3)' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( @@ -4860,15 +4005,6 @@ 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT email, adaid FROM ada WHERE gesperrt = \'1\'' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -4909,10 +4045,26 @@ )), ), )), + )), + ), + ), + 'SELECT email, adaid FROM ada WHERE adaid=' => + array ( + 'result' => + array ( + 5 => NULL, + ), + ), + 'SELECT email, adaid FROM ada WHERE adaid=1' => + array ( + 'result' => + array ( + 3 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( - 0 => 2, + 0 => 0, ), 'keyTypes' => array ( @@ -4922,18 +4074,10 @@ 'isClassString' => false, )), 1 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 0, - )), - 2 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( 'value' => 'adaid', 'isClassString' => false, )), - 3 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 1, - )), ), 'valueTypes' => array ( @@ -4941,14 +4085,6 @@ PHPStan\Type\StringType::__set_state(array( )), 1 => - PHPStan\Type\StringType::__set_state(array( - )), - 2 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 3 => PHPStan\Type\IntegerRangeType::__set_state(array( 'min' => -32768, 'max' => 32767, @@ -4957,56 +4093,21 @@ 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT email, adaid, gesperrt, freigabe1u1 FROM ada' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, '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, )), - 5 => + 1 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( 'value' => 'email', 'isClassString' => false, )), - 6 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'freigabe1u1', - 'isClassString' => false, - )), - 7 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - )), ), )), 'itemType' => @@ -5024,10 +4125,13 @@ )), ), )), + )), + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( - 0 => 4, + 0 => 2, ), 'keyTypes' => array ( @@ -5049,24 +4153,6 @@ PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( 'value' => 1, )), - 4 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - )), - 5 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 2, - )), - 6 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'freigabe1u1', - 'isClassString' => false, - )), - 7 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 3, - )), ), 'valueTypes' => array ( @@ -5086,39 +4172,10 @@ 'min' => -32768, 'max' => 32767, )), - 4 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 5 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 6 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 7 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), ), 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT email, adaid, gesperrt, freigabe1u1 FROM ada LIMIT 1' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -5130,36 +4187,18 @@ )), 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, + 'value' => 1, )), - 4 => + 2 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( 'value' => 'adaid', 'isClassString' => false, )), - 5 => + 3 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( 'value' => 'email', 'isClassString' => false, )), - 6 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'freigabe1u1', - 'isClassString' => false, - )), - 7 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - )), ), )), 'itemType' => @@ -5177,10 +4216,19 @@ )), ), )), + )), + ), + ), + 'SELECT email, adaid FROM ada WHERE email <=> \'\'' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( - 0 => 4, + 0 => 2, ), 'keyTypes' => array ( @@ -5202,24 +4250,6 @@ PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( 'value' => 1, )), - 4 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - )), - 5 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 2, - )), - 6 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'freigabe1u1', - 'isClassString' => false, - )), - 7 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 3, - )), ), 'valueTypes' => array ( @@ -5239,39 +4269,10 @@ 'min' => -32768, 'max' => 32767, )), - 4 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 5 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 6 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 7 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), ), 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT email, adaid, gesperrt, freigabe1u1 FROM ada LIMIT 1, 10' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -5286,33 +4287,15 @@ '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, )), - 5 => + 3 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( 'value' => 'email', 'isClassString' => false, )), - 6 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'freigabe1u1', - 'isClassString' => false, - )), - 7 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - )), ), )), 'itemType' => @@ -5330,10 +4313,26 @@ )), ), )), + )), + ), + ), + 'SELECT email, adaid FROM ada WHERE email <=> :email' => + array ( + 'result' => + array ( + 5 => NULL, + ), + ), + 'SELECT email, adaid FROM ada WHERE email = \'1970-01-01\'' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( - 0 => 4, + 0 => 2, ), 'keyTypes' => array ( @@ -5355,24 +4354,6 @@ PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( 'value' => 1, )), - 4 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - )), - 5 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 2, - )), - 6 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'freigabe1u1', - 'isClassString' => false, - )), - 7 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 3, - )), ), 'valueTypes' => array ( @@ -5392,39 +4373,10 @@ 'min' => -32768, 'max' => 32767, )), - 4 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 5 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 6 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 7 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), ), 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT email, adaid, gesperrt, freigabe1u1 FROM ada WHERE adaid = \'1\'' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -5439,33 +4391,15 @@ '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, )), - 5 => + 3 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( 'value' => 'email', 'isClassString' => false, )), - 6 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'freigabe1u1', - 'isClassString' => false, - )), - 7 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - )), ), )), 'itemType' => @@ -5483,10 +4417,19 @@ )), ), )), + )), + ), + ), + 'SELECT email, adaid FROM ada WHERE email = \'email@example.org\'' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( - 0 => 4, + 0 => 2, ), 'keyTypes' => array ( @@ -5508,24 +4451,6 @@ PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( 'value' => 1, )), - 4 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - )), - 5 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 2, - )), - 6 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'freigabe1u1', - 'isClassString' => false, - )), - 7 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 3, - )), ), 'valueTypes' => array ( @@ -5545,39 +4470,10 @@ 'min' => -32768, 'max' => 32767, )), - 4 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 5 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 6 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 7 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), ), 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT email, adaid, gesperrt, freigabe1u1 FROM ada WHERE adaid = 1' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -5592,33 +4488,15 @@ '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, )), - 5 => + 3 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( 'value' => 'email', 'isClassString' => false, )), - 6 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'freigabe1u1', - 'isClassString' => false, - )), - 7 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - )), ), )), 'itemType' => @@ -5636,10 +4514,19 @@ )), ), )), + )), + ), + ), + 'SELECT email, adaid FROM ada WHERE email = \'test@example.org\'' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( - 0 => 4, + 0 => 2, ), 'keyTypes' => array ( @@ -5661,24 +4548,6 @@ PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( 'value' => 1, )), - 4 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - )), - 5 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 2, - )), - 6 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'freigabe1u1', - 'isClassString' => false, - )), - 7 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 3, - )), ), 'valueTypes' => array ( @@ -5698,46 +4567,10 @@ 'min' => -32768, 'max' => 32767, )), - 4 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 5 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 6 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 7 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), ), 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT email, adaid, gesperrt, freigabe1u1 FROM ada WHERE adaid = ?' => - array ( - 'result' => - array ( - 5 => NULL, - ), - ), - 'SELECT email, adaid, gesperrt, freigabe1u1 FROM ada WHERE adaid IN(1,3)' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -5752,33 +4585,15 @@ '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, )), - 5 => + 3 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( 'value' => 'email', 'isClassString' => false, )), - 6 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'freigabe1u1', - 'isClassString' => false, - )), - 7 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - )), ), )), 'itemType' => @@ -5796,10 +4611,19 @@ )), ), )), + )), + ), + ), + 'SELECT email, adaid FROM ada WHERE email = \'webmaster@example.org\'' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( - 0 => 4, + 0 => 2, ), 'keyTypes' => array ( @@ -5821,24 +4645,6 @@ PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( 'value' => 1, )), - 4 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - )), - 5 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 2, - )), - 6 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'freigabe1u1', - 'isClassString' => false, - )), - 7 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 3, - )), ), 'valueTypes' => array ( @@ -5858,39 +4664,10 @@ 'min' => -32768, 'max' => 32767, )), - 4 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 5 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 6 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 7 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), ), 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT email, adaid, gesperrt, freigabe1u1 FROM ada WHERE adaid=1' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -5905,33 +4682,15 @@ '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, )), - 5 => + 3 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( 'value' => 'email', 'isClassString' => false, )), - 6 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'freigabe1u1', - 'isClassString' => false, - )), - 7 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - )), ), )), 'itemType' => @@ -5949,10 +4708,40 @@ )), ), )), + )), + ), + ), + 'SELECT email, adaid FROM ada WHERE email = :email' => + array ( + 'result' => + array ( + 5 => NULL, + ), + ), + 'SELECT email, adaid FROM ada WHERE email = :test1 AND email = :test2' => + array ( + 'result' => + array ( + 5 => NULL, + ), + ), + 'SELECT email, adaid FROM ada WHERE email = ?' => + array ( + 'result' => + array ( + 5 => NULL, + ), + ), + 'SELECT email, adaid FROM ada WHERE email=\'foo\'' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( - 0 => 4, + 0 => 2, ), 'keyTypes' => array ( @@ -5974,24 +4763,6 @@ PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( 'value' => 1, )), - 4 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - )), - 5 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 2, - )), - 6 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'freigabe1u1', - 'isClassString' => false, - )), - 7 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 3, - )), ), 'valueTypes' => array ( @@ -6011,39 +4782,10 @@ 'min' => -32768, 'max' => 32767, )), - 4 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 5 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 6 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 7 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), ), 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT email, adaid, gesperrt, freigabe1u1 FROM ada WHERE email = \'1970-01-01\'' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -6058,33 +4800,15 @@ '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, )), - 5 => + 3 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( 'value' => 'email', 'isClassString' => false, )), - 6 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'freigabe1u1', - 'isClassString' => false, - )), - 7 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - )), ), )), 'itemType' => @@ -6102,10 +4826,19 @@ )), ), )), + )), + ), + ), + 'SELECT email, adaid FROM ada WHERE email=\'test@example.org\'' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( - 0 => 4, + 0 => 2, ), 'keyTypes' => array ( @@ -6127,24 +4860,6 @@ PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( 'value' => 1, )), - 4 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - )), - 5 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 2, - )), - 6 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'freigabe1u1', - 'isClassString' => false, - )), - 7 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 3, - )), ), 'valueTypes' => array ( @@ -6164,39 +4879,10 @@ 'min' => -32768, 'max' => 32767, )), - 4 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 5 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 6 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 7 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), ), 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT email, adaid, gesperrt, freigabe1u1 FROM ada WHERE email = \'test@example.org\'' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -6211,33 +4897,15 @@ '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, )), - 5 => + 3 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( 'value' => 'email', 'isClassString' => false, )), - 6 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'freigabe1u1', - 'isClassString' => false, - )), - 7 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - )), ), )), 'itemType' => @@ -6255,10 +4923,19 @@ )), ), )), + )), + ), + ), + 'SELECT email, adaid FROM ada WHERE gesperrt = \'1\'' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( - 0 => 4, + 0 => 2, ), 'keyTypes' => array ( @@ -6280,24 +4957,6 @@ PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( 'value' => 1, )), - 4 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - )), - 5 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 2, - )), - 6 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'freigabe1u1', - 'isClassString' => false, - )), - 7 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 3, - )), ), 'valueTypes' => array ( @@ -6317,39 +4976,10 @@ 'min' => -32768, 'max' => 32767, )), - 4 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 5 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 6 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 7 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), ), 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT email, adaid, gesperrt, freigabe1u1 FROM ada WHERE email=\'foo\'' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -6364,33 +4994,15 @@ '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, )), - 5 => + 3 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( 'value' => 'email', 'isClassString' => false, )), - 6 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'freigabe1u1', - 'isClassString' => false, - )), - 7 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - )), ), )), 'itemType' => @@ -6408,6 +5020,15 @@ )), ), )), + )), + ), + ), + 'SELECT email, adaid, gesperrt, freigabe1u1 FROM ada' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( @@ -6494,15 +5115,6 @@ 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT email, adaid, gesperrt, freigabe1u1 FROM ada WHERE gesperrt = \'1\'' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -6561,92 +5173,6 @@ )), ), )), - 'allArrays' => NULL, - 'nextAutoIndexes' => - array ( - 0 => 4, - ), - 'keyTypes' => - array ( - 0 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', - 'isClassString' => false, - )), - 1 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 0, - )), - 2 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - )), - 3 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 1, - )), - 4 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - )), - 5 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 2, - )), - 6 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'freigabe1u1', - 'isClassString' => false, - )), - 7 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 3, - )), - ), - 'valueTypes' => - array ( - 0 => - PHPStan\Type\StringType::__set_state(array( - )), - 1 => - PHPStan\Type\StringType::__set_state(array( - )), - 2 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 3 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 4 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 5 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 6 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 7 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - ), - 'optionalKeys' => - array ( - ), )), ), ), diff --git a/tests/default/config/.phpstan-dba-pdo.cache b/tests/default/config/.phpstan-dba-pdo.cache index f367dfffa..1b01a424f 100644 --- a/tests/default/config/.phpstan-dba-pdo.cache +++ b/tests/default/config/.phpstan-dba-pdo.cache @@ -1,14 +1,51 @@ 'v6-schema-hash', + 'schemaVersion' => 'v7-normalized-eol', 'schemaHash' => NULL, 'records' => array ( - 'SELECT * FROM typemix' => + ' + SELECT + adaid + FROM + ada' => array ( 'result' => array ( 5 => PHPStan\Type\Constant\ConstantArrayType::__set_state(array( + 'allArrays' => NULL, + 'nextAutoIndexes' => + array ( + 0 => 1, + ), + 'keyTypes' => + array ( + 0 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'adaid', + 'isClassString' => false, + )), + 1 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 0, + )), + ), + 'valueTypes' => + array ( + 0 => + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + 1 => + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + ), + 'optionalKeys' => + array ( + ), 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -19,355 +56,26 @@ '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\ConstantIntegerType::__set_state(array( - 'value' => 5, - )), - 6 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 6, - )), - 7 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 7, - )), - 8 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 8, - )), - 9 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 9, - )), - 10 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 10, - )), - 11 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 11, - )), - 12 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 12, - )), - 13 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 13, - )), - 14 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 14, - )), - 15 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 15, - )), - 16 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 16, - )), - 17 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 17, - )), - 18 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 18, - )), - 19 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 19, - )), - 20 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 20, - )), - 21 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 21, - )), - 22 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 22, - )), - 23 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 23, - )), - 24 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 24, - )), - 25 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 25, - )), - 26 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 26, - )), - 27 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 27, - )), - 28 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 28, - )), - 29 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 29, - )), - 30 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 30, - )), - 31 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 31, - )), - 32 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 32, - )), - 33 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 33, - )), - 34 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 34, - )), - 35 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 35, - )), - 36 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 36, - )), - 37 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'c_bigint', - 'isClassString' => false, - )), - 38 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'c_bit', - 'isClassString' => false, - )), - 39 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'c_blob', - 'isClassString' => false, - )), - 40 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'c_boolean', - 'isClassString' => false, - )), - 41 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'c_char5', - 'isClassString' => false, - )), - 42 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'c_date', - 'isClassString' => false, - )), - 43 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'c_datetime', - 'isClassString' => false, - )), - 44 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'c_double', - 'isClassString' => false, - )), - 45 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'c_enum', - 'isClassString' => false, - )), - 46 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'c_int', - 'isClassString' => false, - )), - 47 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'c_json', - 'isClassString' => false, - )), - 48 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'c_json_not_null', - 'isClassString' => false, - )), - 49 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'c_long_text', - 'isClassString' => false, - )), - 50 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'c_longblob', - 'isClassString' => false, - )), - 51 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'c_medium_text', - 'isClassString' => false, - )), - 52 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'c_mediumblog', - 'isClassString' => false, - )), - 53 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'c_mediumint', - 'isClassString' => false, - )), - 54 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'c_real', - 'isClassString' => false, - )), - 55 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'c_set', - 'isClassString' => false, - )), - 56 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'c_smallint', - 'isClassString' => false, - )), - 57 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'c_text', - 'isClassString' => false, - )), - 58 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'c_time', - 'isClassString' => false, - )), - 59 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'c_timestamp', - 'isClassString' => false, - )), - 60 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'c_tiny_text', - 'isClassString' => false, - )), - 61 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'c_tinyblob', - 'isClassString' => false, - )), - 62 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'c_tinyint', - 'isClassString' => false, - )), - 63 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'c_unsigned_bigint', - 'isClassString' => false, - )), - 64 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'c_unsigned_int', - 'isClassString' => false, - )), - 65 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'c_unsigned_mediumint', - 'isClassString' => false, - )), - 66 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'c_unsigned_smallint', - 'isClassString' => false, - )), - 67 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'c_unsigned_tinyint', - 'isClassString' => false, - )), - 68 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'c_varbinary25', - 'isClassString' => false, - )), - 69 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'c_varbinary255', - 'isClassString' => false, - )), - 70 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'c_varchar25', - 'isClassString' => false, - )), - 71 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'c_varchar255', - 'isClassString' => false, - )), - 72 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'c_year', - 'isClassString' => false, - )), - 73 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'pid', + 'value' => 'adaid', 'isClassString' => false, )), ), )), 'itemType' => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => false, - 'types' => - array ( - 0 => - PHPStan\Type\StringType::__set_state(array( - )), - 1 => - PHPStan\Type\FloatType::__set_state(array( - )), - 2 => - PHPStan\Type\IntegerType::__set_state(array( - )), - 3 => - PHPStan\Type\NullType::__set_state(array( - )), - ), + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, )), + )), + ), + ), + 'SELECT * FROM typemix' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( @@ -1245,15 +953,6 @@ 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT MAX(adaid), MIN(adaid), COUNT(adaid), AVG(adaid) FROM ada WHERE adaid = 1' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -1276,672 +975,494 @@ 'value' => 3, )), 4 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'AVG(adaid)', - 'isClassString' => false, + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 4, )), 5 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'COUNT(adaid)', - 'isClassString' => false, + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 5, )), 6 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'MAX(adaid)', - 'isClassString' => false, + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 6, )), 7 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'MIN(adaid)', - 'isClassString' => false, + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 7, )), - ), - )), - 'itemType' => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => false, - 'types' => - array ( - 0 => - PHPStan\Type\IntegerType::__set_state(array( + 8 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 8, )), - 1 => - PHPStan\Type\FloatType::__set_state(array( + 9 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 9, )), - 2 => - PHPStan\Type\NullType::__set_state(array( + 10 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 10, )), - ), - )), - 'allArrays' => NULL, - 'nextAutoIndexes' => - array ( - 0 => 4, - ), - 'keyTypes' => - array ( - 0 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'MAX(adaid)', - 'isClassString' => false, - )), - 1 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 0, - )), - 2 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'MIN(adaid)', - 'isClassString' => false, - )), - 3 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 1, - )), - 4 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'COUNT(adaid)', - 'isClassString' => false, - )), - 5 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 2, - )), - 6 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'AVG(adaid)', - 'isClassString' => false, - )), - 7 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 3, - )), - ), - 'valueTypes' => - array ( - 0 => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => false, - 'types' => - array ( - 0 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 1 => - PHPStan\Type\NullType::__set_state(array( - )), - ), - )), - 1 => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => false, - 'types' => - array ( - 0 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 1 => - PHPStan\Type\NullType::__set_state(array( - )), - ), - )), - 2 => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => false, - 'types' => - array ( - 0 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 1 => - PHPStan\Type\NullType::__set_state(array( - )), - ), - )), - 3 => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => false, - 'types' => - array ( - 0 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 1 => - PHPStan\Type\NullType::__set_state(array( - )), - ), - )), - 4 => - PHPStan\Type\IntegerType::__set_state(array( - )), - 5 => - PHPStan\Type\IntegerType::__set_state(array( - )), - 6 => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => false, - 'types' => - array ( - 0 => - PHPStan\Type\FloatType::__set_state(array( - )), - 1 => - PHPStan\Type\NullType::__set_state(array( - )), - ), - )), - 7 => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => false, - 'types' => - array ( - 0 => - PHPStan\Type\FloatType::__set_state(array( - )), - 1 => - PHPStan\Type\NullType::__set_state(array( - )), - ), - )), - ), - 'optionalKeys' => - array ( - ), - )), - ), - ), - 'SELECT adaid FROM ada' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( - 'keyType' => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => true, - 'types' => - array ( - 0 => + 11 => PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 0, + 'value' => 11, )), - 1 => + 12 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 12, + )), + 13 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 13, + )), + 14 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 14, + )), + 15 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 15, + )), + 16 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 16, + )), + 17 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 17, + )), + 18 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 18, + )), + 19 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 19, + )), + 20 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 20, + )), + 21 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 21, + )), + 22 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 22, + )), + 23 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 23, + )), + 24 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 24, + )), + 25 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 25, + )), + 26 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 26, + )), + 27 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 27, + )), + 28 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 28, + )), + 29 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 29, + )), + 30 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 30, + )), + 31 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 31, + )), + 32 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 32, + )), + 33 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 33, + )), + 34 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 34, + )), + 35 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 35, + )), + 36 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 36, + )), + 37 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', + 'value' => 'c_bigint', 'isClassString' => false, )), - ), - )), - 'itemType' => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 'allArrays' => NULL, - 'nextAutoIndexes' => - array ( - 0 => 1, - ), - 'keyTypes' => - array ( - 0 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - )), - 1 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 0, - )), - ), - 'valueTypes' => - array ( - 0 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 1 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - ), - 'optionalKeys' => - array ( - ), - )), - 3 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( - 'keyType' => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - )), - 'itemType' => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 'allArrays' => NULL, - 'nextAutoIndexes' => - array ( - 0 => 0, - ), - 'keyTypes' => - array ( - 0 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - )), - ), - 'valueTypes' => - array ( - 0 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - ), - 'optionalKeys' => - array ( - ), - )), - ), - ), - 'SELECT adaid FROM ada LIMIT 1 FOR SHARE' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( - 'keyType' => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => true, - 'types' => - array ( - 0 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 0, + 38 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'c_bit', + 'isClassString' => false, )), - 1 => + 39 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', + 'value' => 'c_blob', 'isClassString' => false, )), - ), - )), - 'itemType' => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 'allArrays' => NULL, - 'nextAutoIndexes' => - array ( - 0 => 1, - ), - 'keyTypes' => - array ( - 0 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - )), - 1 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 0, - )), - ), - 'valueTypes' => - array ( - 0 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 1 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - ), - 'optionalKeys' => - array ( - ), - )), - ), - ), - 'SELECT adaid FROM ada LIMIT 1 FOR SHARE NOWAIT' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( - 'keyType' => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => true, - 'types' => - array ( - 0 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 0, + 40 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'c_boolean', + 'isClassString' => false, + )), + 41 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'c_char5', + 'isClassString' => false, + )), + 42 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'c_date', + 'isClassString' => false, + )), + 43 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'c_datetime', + 'isClassString' => false, + )), + 44 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'c_double', + 'isClassString' => false, + )), + 45 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'c_enum', + 'isClassString' => false, + )), + 46 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'c_int', + 'isClassString' => false, + )), + 47 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'c_json', + 'isClassString' => false, + )), + 48 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'c_json_not_null', + 'isClassString' => false, + )), + 49 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'c_long_text', + 'isClassString' => false, + )), + 50 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'c_longblob', + 'isClassString' => false, + )), + 51 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'c_medium_text', + 'isClassString' => false, + )), + 52 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'c_mediumblog', + 'isClassString' => false, + )), + 53 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'c_mediumint', + 'isClassString' => false, + )), + 54 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'c_real', + 'isClassString' => false, + )), + 55 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'c_set', + 'isClassString' => false, + )), + 56 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'c_smallint', + 'isClassString' => false, + )), + 57 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'c_text', + 'isClassString' => false, + )), + 58 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'c_time', + 'isClassString' => false, + )), + 59 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'c_timestamp', + 'isClassString' => false, + )), + 60 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'c_tiny_text', + 'isClassString' => false, + )), + 61 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'c_tinyblob', + 'isClassString' => false, + )), + 62 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'c_tinyint', + 'isClassString' => false, + )), + 63 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'c_unsigned_bigint', + 'isClassString' => false, + )), + 64 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'c_unsigned_int', + 'isClassString' => false, + )), + 65 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'c_unsigned_mediumint', + 'isClassString' => false, + )), + 66 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'c_unsigned_smallint', + 'isClassString' => false, + )), + 67 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'c_unsigned_tinyint', + 'isClassString' => false, + )), + 68 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'c_varbinary25', + 'isClassString' => false, + )), + 69 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'c_varbinary255', + 'isClassString' => false, )), - 1 => + 70 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', + 'value' => 'c_varchar25', 'isClassString' => false, )), - ), - )), - 'itemType' => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 'allArrays' => NULL, - 'nextAutoIndexes' => - array ( - 0 => 1, - ), - 'keyTypes' => - array ( - 0 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - )), - 1 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 0, - )), - ), - 'valueTypes' => - array ( - 0 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 1 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - ), - 'optionalKeys' => - array ( - ), - )), - ), - ), - 'SELECT adaid FROM ada LIMIT 1 FOR SHARE SKIP LOCKED' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( - 'keyType' => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => true, - 'types' => - array ( - 0 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 0, - )), - 1 => + 71 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', + 'value' => 'c_varchar255', 'isClassString' => false, )), - ), - )), - 'itemType' => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 'allArrays' => NULL, - 'nextAutoIndexes' => - array ( - 0 => 1, - ), - 'keyTypes' => - array ( - 0 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - )), - 1 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 0, - )), - ), - 'valueTypes' => - array ( - 0 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 1 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - ), - 'optionalKeys' => - array ( - ), - )), - ), - ), - 'SELECT adaid FROM ada LIMIT 1 FOR UPDATE NOWAIT' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( - 'keyType' => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => true, - 'types' => - array ( - 0 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 0, + 72 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'c_year', + 'isClassString' => false, )), - 1 => + 73 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', + 'value' => 'pid', 'isClassString' => false, )), ), )), 'itemType' => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 'allArrays' => NULL, - 'nextAutoIndexes' => - array ( - 0 => 1, - ), - 'keyTypes' => - array ( - 0 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - )), - 1 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 0, - )), - ), - 'valueTypes' => - array ( - 0 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 1 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - ), - 'optionalKeys' => - array ( - ), - )), - ), - ), - 'SELECT adaid FROM ada LIMIT 1 FOR UPDATE SKIP LOCKED' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( - 'keyType' => PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => true, + 'sortedTypes' => false, 'types' => array ( 0 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 0, + PHPStan\Type\StringType::__set_state(array( )), 1 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, + PHPStan\Type\FloatType::__set_state(array( + )), + 2 => + PHPStan\Type\IntegerType::__set_state(array( + )), + 3 => + PHPStan\Type\NullType::__set_state(array( )), ), )), - 'itemType' => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 'allArrays' => NULL, - 'nextAutoIndexes' => - array ( - 0 => 1, - ), - 'keyTypes' => - array ( - 0 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - )), - 1 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 0, - )), - ), - 'valueTypes' => - array ( - 0 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 1 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - ), - 'optionalKeys' => - array ( - ), )), ), ), - 'SELECT adaid FROM ada LIMIT 1 OFFSET 1' => + 'SELECT MAX(adaid), MIN(adaid), COUNT(adaid), AVG(adaid) FROM ada WHERE adaid = 1' => array ( 'result' => array ( 5 => PHPStan\Type\Constant\ConstantArrayType::__set_state(array( - 'keyType' => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => true, - 'types' => - array ( - 0 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 0, - )), - 1 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - )), - ), - )), - 'itemType' => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), 'allArrays' => NULL, 'nextAutoIndexes' => array ( - 0 => 1, + 0 => 4, ), 'keyTypes' => array ( 0 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', + 'value' => 'MAX(adaid)', 'isClassString' => false, )), 1 => PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( 'value' => 0, )), + 2 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'MIN(adaid)', + 'isClassString' => false, + )), + 3 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 1, + )), + 4 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'COUNT(adaid)', + 'isClassString' => false, + )), + 5 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 2, + )), + 6 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'AVG(adaid)', + 'isClassString' => false, + )), + 7 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 3, + )), ), 'valueTypes' => array ( 0 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, + PHPStan\Type\UnionType::__set_state(array( + 'sortedTypes' => false, + 'types' => + array ( + 0 => + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + 1 => + PHPStan\Type\NullType::__set_state(array( + )), + ), )), 1 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, + PHPStan\Type\UnionType::__set_state(array( + 'sortedTypes' => false, + 'types' => + array ( + 0 => + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + 1 => + PHPStan\Type\NullType::__set_state(array( + )), + ), + )), + 2 => + PHPStan\Type\UnionType::__set_state(array( + 'sortedTypes' => false, + 'types' => + array ( + 0 => + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + 1 => + PHPStan\Type\NullType::__set_state(array( + )), + ), + )), + 3 => + PHPStan\Type\UnionType::__set_state(array( + 'sortedTypes' => false, + 'types' => + array ( + 0 => + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + 1 => + PHPStan\Type\NullType::__set_state(array( + )), + ), + )), + 4 => + PHPStan\Type\IntegerType::__set_state(array( + )), + 5 => + PHPStan\Type\IntegerType::__set_state(array( + )), + 6 => + PHPStan\Type\UnionType::__set_state(array( + 'sortedTypes' => false, + 'types' => + array ( + 0 => + PHPStan\Type\FloatType::__set_state(array( + )), + 1 => + PHPStan\Type\NullType::__set_state(array( + )), + ), + )), + 7 => + PHPStan\Type\UnionType::__set_state(array( + 'sortedTypes' => false, + 'types' => + array ( + 0 => + PHPStan\Type\FloatType::__set_state(array( + )), + 1 => + PHPStan\Type\NullType::__set_state(array( + )), + ), )), ), 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT adaid FROM ada LIMIT 1 OFFSET 1 FOR UPDATE' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -1952,17 +1473,65 @@ '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', + 'value' => 'AVG(adaid)', + 'isClassString' => false, + )), + 5 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'COUNT(adaid)', + 'isClassString' => false, + )), + 6 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'MAX(adaid)', + 'isClassString' => false, + )), + 7 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'MIN(adaid)', 'isClassString' => false, )), ), )), 'itemType' => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, + PHPStan\Type\UnionType::__set_state(array( + 'sortedTypes' => false, + 'types' => + array ( + 0 => + PHPStan\Type\IntegerType::__set_state(array( + )), + 1 => + PHPStan\Type\FloatType::__set_state(array( + )), + 2 => + PHPStan\Type\NullType::__set_state(array( + )), + ), )), + )), + ), + ), + 'SELECT adaid +FROM ada' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( @@ -1996,15 +1565,6 @@ 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT adaid FROM ada WHERE adaid IN (\'1\')' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -2026,6 +1586,15 @@ 'min' => -32768, 'max' => 32767, )), + )), + ), + ), + 'SELECT adaid FROM ada' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( @@ -2059,15 +1628,6 @@ 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT adaid FROM ada WHERE adaid IN (\'1\') AND email LIKE \'1970-01-01\'' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -2089,10 +1649,13 @@ 'min' => -32768, 'max' => 32767, )), + )), + 3 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( - 0 => 1, + 0 => 0, ), 'keyTypes' => array ( @@ -2101,57 +1664,37 @@ 'value' => 'adaid', 'isClassString' => false, )), - 1 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 0, - )), ), 'valueTypes' => array ( 0 => PHPStan\Type\IntegerRangeType::__set_state(array( 'min' => -32768, - 'max' => 32767, - )), - 1 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - ), - 'optionalKeys' => - array ( - ), - )), - ), - ), - 'SELECT adaid FROM ada WHERE adaid IN (\'1.0\')' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( - 'keyType' => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => true, - 'types' => - array ( - 0 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 0, - )), - 1 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - )), - ), + 'max' => 32767, + )), + ), + 'optionalKeys' => + array ( + ), + 'keyType' => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'adaid', + 'isClassString' => false, )), 'itemType' => PHPStan\Type\IntegerRangeType::__set_state(array( 'min' => -32768, 'max' => 32767, )), + )), + ), + ), + 'SELECT adaid FROM ada LIMIT 1 FOR SHARE' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( @@ -2185,36 +1728,6 @@ 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT adaid FROM ada WHERE adaid IN (:adaids)' => - array ( - 'result' => - array ( - 5 => NULL, - ), - ), - 'SELECT adaid FROM ada WHERE adaid IN (:ids)' => - array ( - 'result' => - array ( - 5 => NULL, - ), - ), - 'SELECT adaid FROM ada WHERE adaid IN (:ids) AND email LIKE :time' => - array ( - 'result' => - array ( - 5 => NULL, - ), - ), - 'SELECT adaid FROM ada WHERE adaid IN (NULL) AND email LIKE \'1970-01-01\'' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -2236,6 +1749,15 @@ 'min' => -32768, 'max' => 32767, )), + )), + ), + ), + 'SELECT adaid FROM ada LIMIT 1 FOR SHARE NOWAIT' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( @@ -2269,15 +1791,6 @@ 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT adaid FROM ada WHERE email LIKE ":gesperrt%"' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -2299,6 +1812,15 @@ 'min' => -32768, 'max' => 32767, )), + )), + ), + ), + 'SELECT adaid FROM ada LIMIT 1 FOR SHARE SKIP LOCKED' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( @@ -2332,15 +1854,6 @@ 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT adaid FROM ada WHERE email LIKE "hello?%"' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -2362,6 +1875,15 @@ 'min' => -32768, 'max' => 32767, )), + )), + ), + ), + 'SELECT adaid FROM ada LIMIT 1 FOR UPDATE NOWAIT' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( @@ -2395,15 +1917,6 @@ 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT adaid FROM ada WHERE email LIKE \'%questions ?%\'' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -2425,6 +1938,15 @@ 'min' => -32768, 'max' => 32767, )), + )), + ), + ), + 'SELECT adaid FROM ada LIMIT 1 FOR UPDATE SKIP LOCKED' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( @@ -2458,15 +1980,6 @@ 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT adaid FROM ada WHERE email LIKE \':gesperrt%\'' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -2488,6 +2001,15 @@ 'min' => -32768, 'max' => 32767, )), + )), + ), + ), + 'SELECT adaid FROM ada LIMIT 1 OFFSET 1' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( @@ -2521,15 +2043,6 @@ 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT adaid FROM ada WHERE email LIKE \'hello?%\'' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -2551,6 +2064,15 @@ 'min' => -32768, 'max' => 32767, )), + )), + ), + ), + 'SELECT adaid FROM ada LIMIT 1 OFFSET 1 FOR UPDATE' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( @@ -2584,15 +2106,6 @@ 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT akid FROM ak WHERE eadavk>1.0' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -2604,16 +2117,25 @@ )), 1 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'akid', + 'value' => 'adaid', 'isClassString' => false, )), ), )), 'itemType' => PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + 'min' => -32768, + 'max' => 32767, )), + )), + ), + ), + 'SELECT adaid FROM ada WHERE adaid IN (\'1\')' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( @@ -2623,7 +2145,7 @@ array ( 0 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'akid', + 'value' => 'adaid', 'isClassString' => false, )), 1 => @@ -2635,27 +2157,18 @@ array ( 0 => PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + 'min' => -32768, + 'max' => 32767, )), 1 => PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + 'min' => -32768, + 'max' => 32767, )), ), 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT akid FROM ak WHERE eadavk>1.1' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -2667,16 +2180,25 @@ )), 1 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'akid', + 'value' => 'adaid', 'isClassString' => false, )), ), )), 'itemType' => PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + 'min' => -32768, + 'max' => 32767, )), + )), + ), + ), + 'SELECT adaid FROM ada WHERE adaid IN (\'1\') AND email LIKE \'1970-01-01\'' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( @@ -2686,7 +2208,7 @@ array ( 0 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'akid', + 'value' => 'adaid', 'isClassString' => false, )), 1 => @@ -2698,34 +2220,18 @@ array ( 0 => PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + 'min' => -32768, + 'max' => 32767, )), 1 => PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + 'min' => -32768, + 'max' => 32767, )), ), 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT count(*) AS c FROM typemix WHERE c_datetime=:last_dt' => - array ( - 'result' => - array ( - 5 => NULL, - ), - ), - 'SELECT count(*) FROM typemix WHERE c_date = \'1970-01-01\'' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -2737,14 +2243,46 @@ )), 1 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'count(*)', + 'value' => 'adaid', 'isClassString' => false, )), ), )), 'itemType' => - PHPStan\Type\IntegerType::__set_state(array( + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, )), + )), + ), + ), + 'SELECT adaid FROM ada WHERE adaid IN (:adaids)' => + array ( + 'result' => + array ( + 5 => NULL, + ), + ), + 'SELECT adaid FROM ada WHERE adaid IN (:ids)' => + array ( + 'result' => + array ( + 5 => NULL, + ), + ), + 'SELECT adaid FROM ada WHERE adaid IN (:ids) AND email LIKE :time' => + array ( + 'result' => + array ( + 5 => NULL, + ), + ), + 'SELECT adaid FROM ada WHERE adaid IN (NULL) AND email LIKE \'1970-01-01\'' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( @@ -2754,7 +2292,7 @@ array ( 0 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'count(*)', + 'value' => 'adaid', 'isClassString' => false, )), 1 => @@ -2765,24 +2303,19 @@ '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' => array ( ), - )), - ), - ), - 'SELECT count(*) FROM typemix WHERE c_datetime = \'1970-01-01\'' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -2794,14 +2327,25 @@ )), 1 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'count(*)', + 'value' => 'adaid', 'isClassString' => false, )), ), )), 'itemType' => - PHPStan\Type\IntegerType::__set_state(array( + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, )), + )), + ), + ), + 'SELECT adaid FROM ada WHERE email LIKE ":gesperrt%"' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( @@ -2811,7 +2355,7 @@ array ( 0 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'count(*)', + 'value' => 'adaid', 'isClassString' => false, )), 1 => @@ -2822,24 +2366,19 @@ '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' => array ( ), - )), - ), - ), - 'SELECT eladaid FROM ak' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -2851,26 +2390,25 @@ )), 1 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'eladaid', + 'value' => 'adaid', 'isClassString' => false, )), ), )), 'itemType' => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => false, - 'types' => - array ( - 0 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, - )), - 1 => - PHPStan\Type\NullType::__set_state(array( - )), - ), + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, )), + )), + ), + ), + 'SELECT adaid FROM ada WHERE email LIKE \'%questions ?%\'' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( @@ -2880,7 +2418,7 @@ array ( 0 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'eladaid', + 'value' => 'adaid', 'isClassString' => false, )), 1 => @@ -2891,48 +2429,19 @@ 'valueTypes' => array ( 0 => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => false, - 'types' => - array ( - 0 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, - )), - 1 => - PHPStan\Type\NullType::__set_state(array( - )), - ), + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, )), 1 => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => false, - 'types' => - array ( - 0 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, - )), - 1 => - PHPStan\Type\NullType::__set_state(array( - )), - ), + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, )), ), 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT email FROM ada' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -2944,14 +2453,25 @@ )), 1 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', + 'value' => 'adaid', 'isClassString' => false, )), ), )), 'itemType' => - PHPStan\Type\StringType::__set_state(array( + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, )), + )), + ), + ), + 'SELECT adaid FROM ada WHERE email LIKE \':gesperrt%\'' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( @@ -2961,7 +2481,7 @@ array ( 0 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', + 'value' => 'adaid', 'isClassString' => false, )), 1 => @@ -2972,64 +2492,19 @@ 'valueTypes' => array ( 0 => - PHPStan\Type\StringType::__set_state(array( + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, )), 1 => - PHPStan\Type\StringType::__set_state(array( - )), - ), - 'optionalKeys' => - array ( - ), - )), - 3 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( - 'keyType' => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', - 'isClassString' => false, - )), - 'itemType' => - PHPStan\Type\StringType::__set_state(array( - )), - 'allArrays' => NULL, - 'nextAutoIndexes' => - array ( - 0 => 0, - ), - 'keyTypes' => - array ( - 0 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', - 'isClassString' => false, - )), - ), - 'valueTypes' => - array ( - 0 => - PHPStan\Type\StringType::__set_state(array( + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, )), ), 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT email adaid WHERE gesperrt freigabe1u1 FROM ada' => - array ( - 'result' => - array ( - 5 => NULL, - ), - ), - 'SELECT email, adaid FROM ada' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -3040,76 +2515,51 @@ 'value' => 0, )), 1 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 1, - )), - 2 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( 'value' => 'adaid', 'isClassString' => false, )), - 3 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', - 'isClassString' => false, - )), ), )), 'itemType' => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => false, - 'types' => - array ( - 0 => - PHPStan\Type\StringType::__set_state(array( - )), - 1 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - ), + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, )), + )), + ), + ), + 'SELECT adaid FROM ada WHERE email LIKE \'hello?%\'' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( - 0 => 2, + 0 => 1, ), - 'keyTypes' => - array ( - 0 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', - 'isClassString' => false, - )), - 1 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 0, - )), - 2 => + 'keyTypes' => + array ( + 0 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( 'value' => 'adaid', 'isClassString' => false, )), - 3 => + 1 => PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 1, + 'value' => 0, )), ), 'valueTypes' => array ( 0 => - PHPStan\Type\StringType::__set_state(array( - )), - 1 => - PHPStan\Type\StringType::__set_state(array( - )), - 2 => PHPStan\Type\IntegerRangeType::__set_state(array( 'min' => -32768, 'max' => 32767, )), - 3 => + 1 => PHPStan\Type\IntegerRangeType::__set_state(array( 'min' => -32768, 'max' => 32767, @@ -3118,82 +2568,69 @@ 'optionalKeys' => array ( ), - )), - 3 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, 'types' => array ( 0 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 0, )), 1 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', + 'value' => 'adaid', 'isClassString' => false, )), ), )), 'itemType' => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => false, - 'types' => - array ( - 0 => - PHPStan\Type\StringType::__set_state(array( - )), - 1 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - ), + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, )), + )), + ), + ), + 'SELECT akid FROM ak WHERE eadavk>1.0' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( - 0 => 0, + 0 => 1, ), 'keyTypes' => array ( 0 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', + 'value' => 'akid', 'isClassString' => false, )), 1 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 0, )), ), 'valueTypes' => array ( 0 => - PHPStan\Type\StringType::__set_state(array( + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), 1 => PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, + 'min' => -2147483648, + 'max' => 2147483647, )), ), 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT email, adaid FROM ada LIMIT 1' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -3204,93 +2641,59 @@ 'value' => 0, )), 1 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 1, - )), - 2 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - )), - 3 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', + 'value' => 'akid', 'isClassString' => false, )), ), )), 'itemType' => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => false, - 'types' => - array ( - 0 => - PHPStan\Type\StringType::__set_state(array( - )), - 1 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - ), + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), + )), + ), + ), + 'SELECT akid FROM ak WHERE eadavk>1.1' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( - 0 => 2, + 0 => 1, ), 'keyTypes' => array ( 0 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', + 'value' => 'akid', 'isClassString' => false, )), 1 => PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( 'value' => 0, )), - 2 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - )), - 3 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 1, - )), ), 'valueTypes' => array ( 0 => - PHPStan\Type\StringType::__set_state(array( - )), - 1 => - PHPStan\Type\StringType::__set_state(array( - )), - 2 => PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, + 'min' => -2147483648, + 'max' => 2147483647, )), - 3 => + 1 => PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, + 'min' => -2147483648, + 'max' => 2147483647, )), ), 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT email, adaid FROM ada LIMIT 1, 10' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -3301,93 +2704,62 @@ 'value' => 0, )), 1 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 1, - )), - 2 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - )), - 3 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', + 'value' => 'akid', 'isClassString' => false, )), ), )), 'itemType' => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => false, - 'types' => - array ( - 0 => - PHPStan\Type\StringType::__set_state(array( - )), - 1 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - ), + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), + )), + ), + ), + 'SELECT count(*) AS c FROM typemix WHERE c_datetime=:last_dt' => + array ( + 'result' => + array ( + 5 => NULL, + ), + ), + 'SELECT count(*) FROM typemix WHERE c_date = \'1970-01-01\'' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( - 0 => 2, + 0 => 1, ), 'keyTypes' => array ( 0 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', + 'value' => 'count(*)', 'isClassString' => false, )), 1 => PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( 'value' => 0, )), - 2 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - )), - 3 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 1, - )), ), 'valueTypes' => array ( 0 => - PHPStan\Type\StringType::__set_state(array( + PHPStan\Type\IntegerType::__set_state(array( )), 1 => - PHPStan\Type\StringType::__set_state(array( - )), - 2 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 3 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, + PHPStan\Type\IntegerType::__set_state(array( )), ), 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT email, adaid FROM ada WHERE adaid = \'1\'' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -3398,93 +2770,53 @@ 'value' => 0, )), 1 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 1, - )), - 2 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - )), - 3 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', - 'isClassString' => false, - )), - ), - )), - 'itemType' => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => false, - 'types' => - array ( - 0 => - PHPStan\Type\StringType::__set_state(array( - )), - 1 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'count(*)', + 'isClassString' => false, )), ), )), + 'itemType' => + PHPStan\Type\IntegerType::__set_state(array( + )), + )), + ), + ), + 'SELECT count(*) FROM typemix WHERE c_datetime = \'1970-01-01\'' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( - 0 => 2, + 0 => 1, ), 'keyTypes' => array ( 0 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', + 'value' => 'count(*)', 'isClassString' => false, )), 1 => PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( 'value' => 0, )), - 2 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - )), - 3 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 1, - )), ), 'valueTypes' => array ( 0 => - PHPStan\Type\StringType::__set_state(array( + PHPStan\Type\IntegerType::__set_state(array( )), 1 => - PHPStan\Type\StringType::__set_state(array( - )), - 2 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 3 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, + PHPStan\Type\IntegerType::__set_state(array( )), ), 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT email, adaid FROM ada WHERE adaid = \'1\' and email = \'email@example.org\'' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -3495,93 +2827,77 @@ 'value' => 0, )), 1 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 1, - )), - 2 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - )), - 3 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', + 'value' => 'count(*)', 'isClassString' => false, )), ), )), 'itemType' => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => false, - 'types' => - array ( - 0 => - PHPStan\Type\StringType::__set_state(array( - )), - 1 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - ), + PHPStan\Type\IntegerType::__set_state(array( )), + )), + ), + ), + 'SELECT eladaid FROM ak' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( - 0 => 2, + 0 => 1, ), 'keyTypes' => array ( 0 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', + 'value' => 'eladaid', 'isClassString' => false, )), 1 => PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( 'value' => 0, )), - 2 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - )), - 3 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 1, - )), ), 'valueTypes' => array ( 0 => - PHPStan\Type\StringType::__set_state(array( + PHPStan\Type\UnionType::__set_state(array( + 'sortedTypes' => false, + 'types' => + array ( + 0 => + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, + )), + 1 => + PHPStan\Type\NullType::__set_state(array( + )), + ), )), 1 => - PHPStan\Type\StringType::__set_state(array( - )), - 2 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 3 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, + PHPStan\Type\UnionType::__set_state(array( + 'sortedTypes' => false, + 'types' => + array ( + 0 => + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, + )), + 1 => + PHPStan\Type\NullType::__set_state(array( + )), + ), )), ), 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT email, adaid FROM ada WHERE adaid = 1' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -3592,17 +2908,8 @@ 'value' => 0, )), 1 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 1, - )), - 2 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - )), - 3 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', + 'value' => 'eladaid', 'isClassString' => false, )), ), @@ -3613,19 +2920,29 @@ 'types' => array ( 0 => - PHPStan\Type\StringType::__set_state(array( + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), 1 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, + PHPStan\Type\NullType::__set_state(array( )), ), )), + )), + ), + ), + 'SELECT email +FROM ada' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( - 0 => 2, + 0 => 1, ), 'keyTypes' => array ( @@ -3638,15 +2955,6 @@ PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( 'value' => 0, )), - 2 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - )), - 3 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 1, - )), ), 'valueTypes' => array ( @@ -3656,29 +2964,10 @@ 1 => PHPStan\Type\StringType::__set_state(array( )), - 2 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 3 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), ), 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT email, adaid FROM ada WHERE adaid = 2' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -3689,15 +2978,6 @@ 'value' => 0, )), 1 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 1, - )), - 2 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - )), - 3 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( 'value' => 'email', 'isClassString' => false, @@ -3705,24 +2985,21 @@ ), )), 'itemType' => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => false, - 'types' => - array ( - 0 => - PHPStan\Type\StringType::__set_state(array( - )), - 1 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - ), + PHPStan\Type\StringType::__set_state(array( )), + )), + ), + ), + 'SELECT email FROM ada' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( - 0 => 2, + 0 => 1, ), 'keyTypes' => array ( @@ -3735,15 +3012,6 @@ PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( 'value' => 0, )), - 2 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - )), - 3 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 1, - )), ), 'valueTypes' => array ( @@ -3751,31 +3019,12 @@ PHPStan\Type\StringType::__set_state(array( )), 1 => - PHPStan\Type\StringType::__set_state(array( - )), - 2 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 3 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, + PHPStan\Type\StringType::__set_state(array( )), ), 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT email, adaid FROM ada WHERE adaid = 3' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -3786,15 +3035,6 @@ 'value' => 0, )), 1 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 1, - )), - 2 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - )), - 3 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( 'value' => 'email', 'isClassString' => false, @@ -3802,24 +3042,15 @@ ), )), 'itemType' => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => false, - 'types' => - array ( - 0 => - PHPStan\Type\StringType::__set_state(array( - )), - 1 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - ), + PHPStan\Type\StringType::__set_state(array( )), + )), + 3 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( - 0 => 2, + 0 => 0, ), 'keyTypes' => array ( @@ -3828,112 +3059,40 @@ 'value' => 'email', 'isClassString' => false, )), - 1 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 0, - )), - 2 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - )), - 3 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 1, - )), ), 'valueTypes' => array ( 0 => PHPStan\Type\StringType::__set_state(array( )), - 1 => - PHPStan\Type\StringType::__set_state(array( - )), - 2 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 3 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), ), 'optionalKeys' => array ( ), + 'keyType' => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'email', + 'isClassString' => false, + )), + 'itemType' => + PHPStan\Type\StringType::__set_state(array( + )), )), ), ), - 'SELECT email, adaid FROM ada WHERE adaid = :adaid' => - array ( - 'result' => - array ( - 5 => NULL, - ), - ), - 'SELECT email, adaid FROM ada WHERE adaid = ?' => - array ( - 'result' => - array ( - 5 => NULL, - ), - ), - 'SELECT email, adaid FROM ada WHERE adaid = ? and email = ?' => + 'SELECT email adaid WHERE gesperrt freigabe1u1 FROM ada' => array ( 'result' => array ( 5 => NULL, ), ), - 'SELECT email, adaid FROM ada WHERE adaid IN(1,3)' => + 'SELECT email, adaid FROM ada' => array ( 'result' => array ( 5 => PHPStan\Type\Constant\ConstantArrayType::__set_state(array( - 'keyType' => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => true, - '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\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - )), - 3 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', - 'isClassString' => false, - )), - ), - )), - 'itemType' => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => false, - 'types' => - array ( - 0 => - PHPStan\Type\StringType::__set_state(array( - )), - 1 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - ), - )), 'allArrays' => NULL, 'nextAutoIndexes' => array ( @@ -3982,22 +3141,6 @@ 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT email, adaid FROM ada WHERE adaid=' => - array ( - 'result' => - array ( - 5 => NULL, - ), - ), - 'SELECT email, adaid FROM ada WHERE adaid=1' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -4038,10 +3181,13 @@ )), ), )), + )), + 3 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( - 0 => 2, + 0 => 0, ), 'keyTypes' => array ( @@ -4051,18 +3197,10 @@ 'isClassString' => false, )), 1 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 0, - )), - 2 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( 'value' => 'adaid', 'isClassString' => false, )), - 3 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 1, - )), ), 'valueTypes' => array ( @@ -4070,14 +3208,6 @@ PHPStan\Type\StringType::__set_state(array( )), 1 => - PHPStan\Type\StringType::__set_state(array( - )), - 2 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 3 => PHPStan\Type\IntegerRangeType::__set_state(array( 'min' => -32768, 'max' => 32767, @@ -4086,9 +3216,6 @@ 'optionalKeys' => array ( ), - )), - 3 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -4121,10 +3248,19 @@ )), ), )), + )), + ), + ), + 'SELECT email, adaid FROM ada LIMIT 1' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( - 0 => 0, + 0 => 2, ), 'keyTypes' => array ( @@ -4134,10 +3270,18 @@ 'isClassString' => false, )), 1 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 0, + )), + 2 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( 'value' => 'adaid', 'isClassString' => false, )), + 3 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 1, + )), ), 'valueTypes' => array ( @@ -4145,6 +3289,14 @@ PHPStan\Type\StringType::__set_state(array( )), 1 => + PHPStan\Type\StringType::__set_state(array( + )), + 2 => + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + 3 => PHPStan\Type\IntegerRangeType::__set_state(array( 'min' => -32768, 'max' => 32767, @@ -4153,15 +3305,6 @@ 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT email, adaid FROM ada WHERE email <=> \'\'' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -4202,6 +3345,15 @@ )), ), )), + )), + ), + ), + 'SELECT email, adaid FROM ada LIMIT 1, 10' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( @@ -4250,22 +3402,6 @@ 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT email, adaid FROM ada WHERE email <=> :email' => - array ( - 'result' => - array ( - 5 => NULL, - ), - ), - 'SELECT email, adaid FROM ada WHERE email = \'1970-01-01\'' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -4306,6 +3442,15 @@ )), ), )), + )), + ), + ), + 'SELECT email, adaid FROM ada WHERE adaid = \'1\'' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( @@ -4354,15 +3499,6 @@ 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT email, adaid FROM ada WHERE email = \'email@example.org\'' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -4403,6 +3539,15 @@ )), ), )), + )), + ), + ), + 'SELECT email, adaid FROM ada WHERE adaid = \'1\' and email = \'email@example.org\'' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( @@ -4451,15 +3596,6 @@ 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT email, adaid FROM ada WHERE email = \'test@example.org\'' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -4500,6 +3636,15 @@ )), ), )), + )), + ), + ), + 'SELECT email, adaid FROM ada WHERE adaid = 1' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( @@ -4548,15 +3693,6 @@ 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT email, adaid FROM ada WHERE email = \'webmaster@example.org\'' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -4597,6 +3733,15 @@ )), ), )), + )), + ), + ), + 'SELECT email, adaid FROM ada WHERE adaid = 2' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( @@ -4645,36 +3790,6 @@ 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT email, adaid FROM ada WHERE email = :email' => - array ( - 'result' => - array ( - 5 => NULL, - ), - ), - 'SELECT email, adaid FROM ada WHERE email = :test1 AND email = :test2' => - array ( - 'result' => - array ( - 5 => NULL, - ), - ), - 'SELECT email, adaid FROM ada WHERE email = ?' => - array ( - 'result' => - array ( - 5 => NULL, - ), - ), - 'SELECT email, adaid FROM ada WHERE email=\'foo\'' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -4715,6 +3830,15 @@ )), ), )), + )), + ), + ), + 'SELECT email, adaid FROM ada WHERE adaid = 3' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( @@ -4763,15 +3887,6 @@ 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT email, adaid FROM ada WHERE email=\'test@example.org\'' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -4812,6 +3927,36 @@ )), ), )), + )), + ), + ), + 'SELECT email, adaid FROM ada WHERE adaid = :adaid' => + array ( + 'result' => + array ( + 5 => NULL, + ), + ), + 'SELECT email, adaid FROM ada WHERE adaid = ?' => + array ( + 'result' => + array ( + 5 => NULL, + ), + ), + 'SELECT email, adaid FROM ada WHERE adaid = ? and email = ?' => + array ( + 'result' => + array ( + 5 => NULL, + ), + ), + 'SELECT email, adaid FROM ada WHERE adaid IN(1,3)' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( @@ -4860,15 +4005,6 @@ 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT email, adaid FROM ada WHERE gesperrt = \'1\'' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -4909,10 +4045,26 @@ )), ), )), + )), + ), + ), + 'SELECT email, adaid FROM ada WHERE adaid=' => + array ( + 'result' => + array ( + 5 => NULL, + ), + ), + 'SELECT email, adaid FROM ada WHERE adaid=1' => + array ( + 'result' => + array ( + 3 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( - 0 => 2, + 0 => 0, ), 'keyTypes' => array ( @@ -4922,18 +4074,10 @@ 'isClassString' => false, )), 1 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 0, - )), - 2 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( 'value' => 'adaid', 'isClassString' => false, )), - 3 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 1, - )), ), 'valueTypes' => array ( @@ -4941,14 +4085,6 @@ PHPStan\Type\StringType::__set_state(array( )), 1 => - PHPStan\Type\StringType::__set_state(array( - )), - 2 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 3 => PHPStan\Type\IntegerRangeType::__set_state(array( 'min' => -32768, 'max' => 32767, @@ -4957,56 +4093,21 @@ 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT email, adaid, gesperrt, freigabe1u1 FROM ada' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, '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, )), - 5 => + 1 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( 'value' => 'email', 'isClassString' => false, )), - 6 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'freigabe1u1', - 'isClassString' => false, - )), - 7 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - )), ), )), 'itemType' => @@ -5024,10 +4125,13 @@ )), ), )), + )), + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( - 0 => 4, + 0 => 2, ), 'keyTypes' => array ( @@ -5049,24 +4153,6 @@ PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( 'value' => 1, )), - 4 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - )), - 5 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 2, - )), - 6 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'freigabe1u1', - 'isClassString' => false, - )), - 7 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 3, - )), ), 'valueTypes' => array ( @@ -5086,39 +4172,10 @@ 'min' => -32768, 'max' => 32767, )), - 4 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 5 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 6 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 7 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), ), 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT email, adaid, gesperrt, freigabe1u1 FROM ada LIMIT 1' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -5130,36 +4187,18 @@ )), 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, + 'value' => 1, )), - 4 => + 2 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( 'value' => 'adaid', 'isClassString' => false, )), - 5 => + 3 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( 'value' => 'email', 'isClassString' => false, )), - 6 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'freigabe1u1', - 'isClassString' => false, - )), - 7 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - )), ), )), 'itemType' => @@ -5177,10 +4216,19 @@ )), ), )), + )), + ), + ), + 'SELECT email, adaid FROM ada WHERE email <=> \'\'' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( - 0 => 4, + 0 => 2, ), 'keyTypes' => array ( @@ -5202,24 +4250,6 @@ PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( 'value' => 1, )), - 4 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - )), - 5 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 2, - )), - 6 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'freigabe1u1', - 'isClassString' => false, - )), - 7 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 3, - )), ), 'valueTypes' => array ( @@ -5239,39 +4269,10 @@ 'min' => -32768, 'max' => 32767, )), - 4 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 5 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 6 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 7 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), ), 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT email, adaid, gesperrt, freigabe1u1 FROM ada LIMIT 1, 10' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -5286,33 +4287,15 @@ '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, )), - 5 => + 3 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( 'value' => 'email', 'isClassString' => false, )), - 6 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'freigabe1u1', - 'isClassString' => false, - )), - 7 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - )), ), )), 'itemType' => @@ -5330,10 +4313,26 @@ )), ), )), + )), + ), + ), + 'SELECT email, adaid FROM ada WHERE email <=> :email' => + array ( + 'result' => + array ( + 5 => NULL, + ), + ), + 'SELECT email, adaid FROM ada WHERE email = \'1970-01-01\'' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( - 0 => 4, + 0 => 2, ), 'keyTypes' => array ( @@ -5355,24 +4354,6 @@ PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( 'value' => 1, )), - 4 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - )), - 5 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 2, - )), - 6 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'freigabe1u1', - 'isClassString' => false, - )), - 7 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 3, - )), ), 'valueTypes' => array ( @@ -5392,39 +4373,10 @@ 'min' => -32768, 'max' => 32767, )), - 4 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 5 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 6 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 7 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), ), 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT email, adaid, gesperrt, freigabe1u1 FROM ada WHERE adaid = \'1\'' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -5439,33 +4391,15 @@ '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, )), - 5 => + 3 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( 'value' => 'email', 'isClassString' => false, )), - 6 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'freigabe1u1', - 'isClassString' => false, - )), - 7 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - )), ), )), 'itemType' => @@ -5483,10 +4417,19 @@ )), ), )), + )), + ), + ), + 'SELECT email, adaid FROM ada WHERE email = \'email@example.org\'' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( - 0 => 4, + 0 => 2, ), 'keyTypes' => array ( @@ -5508,24 +4451,6 @@ PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( 'value' => 1, )), - 4 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - )), - 5 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 2, - )), - 6 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'freigabe1u1', - 'isClassString' => false, - )), - 7 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 3, - )), ), 'valueTypes' => array ( @@ -5545,39 +4470,10 @@ 'min' => -32768, 'max' => 32767, )), - 4 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 5 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 6 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 7 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), ), 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT email, adaid, gesperrt, freigabe1u1 FROM ada WHERE adaid = 1' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -5592,33 +4488,15 @@ '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, )), - 5 => + 3 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( 'value' => 'email', 'isClassString' => false, )), - 6 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'freigabe1u1', - 'isClassString' => false, - )), - 7 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - )), ), )), 'itemType' => @@ -5636,10 +4514,19 @@ )), ), )), + )), + ), + ), + 'SELECT email, adaid FROM ada WHERE email = \'test@example.org\'' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( - 0 => 4, + 0 => 2, ), 'keyTypes' => array ( @@ -5661,24 +4548,6 @@ PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( 'value' => 1, )), - 4 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - )), - 5 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 2, - )), - 6 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'freigabe1u1', - 'isClassString' => false, - )), - 7 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 3, - )), ), 'valueTypes' => array ( @@ -5698,46 +4567,10 @@ 'min' => -32768, 'max' => 32767, )), - 4 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 5 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 6 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 7 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), ), 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT email, adaid, gesperrt, freigabe1u1 FROM ada WHERE adaid = ?' => - array ( - 'result' => - array ( - 5 => NULL, - ), - ), - 'SELECT email, adaid, gesperrt, freigabe1u1 FROM ada WHERE adaid IN(1,3)' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -5752,33 +4585,15 @@ '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, )), - 5 => + 3 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( 'value' => 'email', 'isClassString' => false, )), - 6 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'freigabe1u1', - 'isClassString' => false, - )), - 7 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - )), ), )), 'itemType' => @@ -5796,10 +4611,19 @@ )), ), )), + )), + ), + ), + 'SELECT email, adaid FROM ada WHERE email = \'webmaster@example.org\'' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( - 0 => 4, + 0 => 2, ), 'keyTypes' => array ( @@ -5821,24 +4645,6 @@ PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( 'value' => 1, )), - 4 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - )), - 5 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 2, - )), - 6 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'freigabe1u1', - 'isClassString' => false, - )), - 7 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 3, - )), ), 'valueTypes' => array ( @@ -5858,39 +4664,10 @@ 'min' => -32768, 'max' => 32767, )), - 4 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 5 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 6 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 7 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), ), 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT email, adaid, gesperrt, freigabe1u1 FROM ada WHERE adaid=1' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -5905,33 +4682,15 @@ '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, )), - 5 => + 3 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( 'value' => 'email', 'isClassString' => false, )), - 6 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'freigabe1u1', - 'isClassString' => false, - )), - 7 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - )), ), )), 'itemType' => @@ -5949,10 +4708,40 @@ )), ), )), + )), + ), + ), + 'SELECT email, adaid FROM ada WHERE email = :email' => + array ( + 'result' => + array ( + 5 => NULL, + ), + ), + 'SELECT email, adaid FROM ada WHERE email = :test1 AND email = :test2' => + array ( + 'result' => + array ( + 5 => NULL, + ), + ), + 'SELECT email, adaid FROM ada WHERE email = ?' => + array ( + 'result' => + array ( + 5 => NULL, + ), + ), + 'SELECT email, adaid FROM ada WHERE email=\'foo\'' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( - 0 => 4, + 0 => 2, ), 'keyTypes' => array ( @@ -5974,24 +4763,6 @@ PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( 'value' => 1, )), - 4 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - )), - 5 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 2, - )), - 6 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'freigabe1u1', - 'isClassString' => false, - )), - 7 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 3, - )), ), 'valueTypes' => array ( @@ -6011,39 +4782,10 @@ 'min' => -32768, 'max' => 32767, )), - 4 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 5 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 6 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 7 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), ), 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT email, adaid, gesperrt, freigabe1u1 FROM ada WHERE email = \'1970-01-01\'' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -6058,33 +4800,15 @@ '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, )), - 5 => + 3 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( 'value' => 'email', 'isClassString' => false, )), - 6 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'freigabe1u1', - 'isClassString' => false, - )), - 7 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - )), ), )), 'itemType' => @@ -6102,10 +4826,19 @@ )), ), )), + )), + ), + ), + 'SELECT email, adaid FROM ada WHERE email=\'test@example.org\'' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( - 0 => 4, + 0 => 2, ), 'keyTypes' => array ( @@ -6127,24 +4860,6 @@ PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( 'value' => 1, )), - 4 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - )), - 5 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 2, - )), - 6 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'freigabe1u1', - 'isClassString' => false, - )), - 7 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 3, - )), ), 'valueTypes' => array ( @@ -6164,39 +4879,10 @@ 'min' => -32768, 'max' => 32767, )), - 4 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 5 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 6 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 7 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), ), 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT email, adaid, gesperrt, freigabe1u1 FROM ada WHERE email = \'test@example.org\'' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -6211,33 +4897,15 @@ '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, )), - 5 => + 3 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( 'value' => 'email', 'isClassString' => false, )), - 6 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'freigabe1u1', - 'isClassString' => false, - )), - 7 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - )), ), )), 'itemType' => @@ -6255,10 +4923,19 @@ )), ), )), + )), + ), + ), + 'SELECT email, adaid FROM ada WHERE gesperrt = \'1\'' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( - 0 => 4, + 0 => 2, ), 'keyTypes' => array ( @@ -6280,24 +4957,6 @@ PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( 'value' => 1, )), - 4 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - )), - 5 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 2, - )), - 6 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'freigabe1u1', - 'isClassString' => false, - )), - 7 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 3, - )), ), 'valueTypes' => array ( @@ -6317,39 +4976,10 @@ 'min' => -32768, 'max' => 32767, )), - 4 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 5 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 6 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 7 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), ), 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT email, adaid, gesperrt, freigabe1u1 FROM ada WHERE email=\'foo\'' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -6364,33 +4994,15 @@ '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, )), - 5 => + 3 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( 'value' => 'email', 'isClassString' => false, )), - 6 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'freigabe1u1', - 'isClassString' => false, - )), - 7 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - )), ), )), 'itemType' => @@ -6408,6 +5020,15 @@ )), ), )), + )), + ), + ), + 'SELECT email, adaid, gesperrt, freigabe1u1 FROM ada' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( @@ -6494,15 +5115,6 @@ 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT email, adaid, gesperrt, freigabe1u1 FROM ada WHERE gesperrt = \'1\'' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -6561,92 +5173,6 @@ )), ), )), - 'allArrays' => NULL, - 'nextAutoIndexes' => - array ( - 0 => 4, - ), - 'keyTypes' => - array ( - 0 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', - 'isClassString' => false, - )), - 1 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 0, - )), - 2 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - )), - 3 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 1, - )), - 4 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - )), - 5 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 2, - )), - 6 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'freigabe1u1', - 'isClassString' => false, - )), - 7 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 3, - )), - ), - 'valueTypes' => - array ( - 0 => - PHPStan\Type\StringType::__set_state(array( - )), - 1 => - PHPStan\Type\StringType::__set_state(array( - )), - 2 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 3 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 4 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 5 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 6 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 7 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - ), - 'optionalKeys' => - array ( - ), )), ), ), diff --git a/tests/default/config/.phpunit-phpstan-dba-mysqli.cache b/tests/default/config/.phpunit-phpstan-dba-mysqli.cache index 420c8802f..1bda104e0 100644 --- a/tests/default/config/.phpunit-phpstan-dba-mysqli.cache +++ b/tests/default/config/.phpunit-phpstan-dba-mysqli.cache @@ -1,8 +1,75 @@ 'v6-schema-hash', + 'schemaVersion' => 'v7-normalized-eol', 'schemaHash' => NULL, 'records' => array ( + ' + SELECT + adaid + FROM + ada' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( + 'allArrays' => NULL, + 'nextAutoIndexes' => + array ( + 0 => 1, + ), + 'keyTypes' => + array ( + 0 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'adaid', + 'isClassString' => false, + )), + 1 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 0, + )), + ), + 'valueTypes' => + array ( + 0 => + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + 1 => + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + ), + 'optionalKeys' => + array ( + ), + 'keyType' => + PHPStan\Type\UnionType::__set_state(array( + 'sortedTypes' => true, + 'types' => + array ( + 0 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 0, + )), + 1 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'adaid', + 'isClassString' => false, + )), + ), + )), + 'itemType' => + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + )), + ), + ), 'SELECT * FROM typemix' => array ( 'result' => @@ -1578,7 +1645,8 @@ )), ), ), - 'SELECT a.email, b.adaid, b.gesperrt FROM ada a LEFT JOIN ada b ON a.adaid=b.adaid' => + 'SELECT adaid +FROM ada' => array ( 'result' => array ( @@ -1587,105 +1655,31 @@ 'allArrays' => NULL, 'nextAutoIndexes' => array ( - 0 => 3, + 0 => 1, ), 'keyTypes' => array ( 0 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', + 'value' => 'adaid', 'isClassString' => false, )), 1 => PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( 'value' => 0, )), - 2 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - )), - 3 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 1, - )), - 4 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - )), - 5 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 2, - )), ), 'valueTypes' => array ( 0 => - PHPStan\Type\StringType::__set_state(array( + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, )), 1 => - PHPStan\Type\StringType::__set_state(array( - )), - 2 => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => false, - 'types' => - array ( - 0 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 1 => - PHPStan\Type\NullType::__set_state(array( - )), - ), - )), - 3 => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => false, - 'types' => - array ( - 0 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 1 => - PHPStan\Type\NullType::__set_state(array( - )), - ), - )), - 4 => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => false, - 'types' => - array ( - 0 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 1 => - PHPStan\Type\NullType::__set_state(array( - )), - ), - )), - 5 => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => false, - 'types' => - array ( - 0 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 1 => - PHPStan\Type\NullType::__set_state(array( - )), - ), + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, )), ), 'optionalKeys' => @@ -1701,47 +1695,16 @@ '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' => 'adaid', 'isClassString' => false, )), - 4 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', - 'isClassString' => false, - )), - 5 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - )), ), )), 'itemType' => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => false, - 'types' => - array ( - 0 => - PHPStan\Type\StringType::__set_state(array( - )), - 1 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 2 => - PHPStan\Type\NullType::__set_state(array( - )), - ), + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, )), )), ), @@ -2413,7 +2376,28 @@ )), ), ), - 'SELECT adaid FROM ada WHERE adaid IN (\'1.0\')' => + 'SELECT adaid FROM ada WHERE adaid IN (:adaids)' => + array ( + 'result' => + array ( + 5 => NULL, + ), + ), + 'SELECT adaid FROM ada WHERE adaid IN (:ids)' => + array ( + 'result' => + array ( + 5 => NULL, + ), + ), + 'SELECT adaid FROM ada WHERE adaid IN (:ids) AND email LIKE :time' => + array ( + 'result' => + array ( + 5 => NULL, + ), + ), + 'SELECT adaid FROM ada WHERE adaid IN (NULL) AND email LIKE \'1970-01-01\'' => array ( 'result' => array ( @@ -2476,7 +2460,7 @@ )), ), ), - 'SELECT adaid FROM ada WHERE adaid IN (\'1970-01-01\') AND email LIKE \'1970-01-01\'' => + 'SELECT adaid FROM ada WHERE email LIKE ":gesperrt%"' => array ( 'result' => array ( @@ -2539,28 +2523,7 @@ )), ), ), - 'SELECT adaid FROM ada WHERE adaid IN (:adaids)' => - array ( - 'result' => - array ( - 5 => NULL, - ), - ), - 'SELECT adaid FROM ada WHERE adaid IN (:ids)' => - array ( - 'result' => - array ( - 5 => NULL, - ), - ), - 'SELECT adaid FROM ada WHERE adaid IN (:ids) AND email LIKE :time' => - array ( - 'result' => - array ( - 5 => NULL, - ), - ), - 'SELECT adaid FROM ada WHERE adaid IN (NULL) AND email LIKE \'1970-01-01\'' => + 'SELECT adaid FROM ada WHERE email LIKE \'%questions ?%\'' => array ( 'result' => array ( @@ -2623,7 +2586,7 @@ )), ), ), - 'SELECT adaid FROM ada WHERE email LIKE ":gesperrt%"' => + 'SELECT adaid FROM ada WHERE email LIKE \':gesperrt%\'' => array ( 'result' => array ( @@ -2686,7 +2649,7 @@ )), ), ), - 'SELECT adaid FROM ada WHERE email LIKE "hello?%"' => + 'SELECT adaid FROM ada WHERE email LIKE \'hello?%\'' => array ( 'result' => array ( @@ -2749,7 +2712,7 @@ )), ), ), - 'SELECT adaid FROM ada WHERE email LIKE \'%questions ?%\'' => + 'SELECT akid FROM ak WHERE eadavk>1.0' => array ( 'result' => array ( @@ -2764,7 +2727,7 @@ array ( 0 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', + 'value' => 'akid', 'isClassString' => false, )), 1 => @@ -2776,13 +2739,13 @@ array ( 0 => PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, + 'min' => -2147483648, + 'max' => 2147483647, )), 1 => PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, + 'min' => -2147483648, + 'max' => 2147483647, )), ), 'optionalKeys' => @@ -2799,20 +2762,20 @@ )), 1 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', + 'value' => 'akid', 'isClassString' => false, )), ), )), 'itemType' => PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, + 'min' => -2147483648, + 'max' => 2147483647, )), )), ), ), - 'SELECT adaid FROM ada WHERE email LIKE \':gesperrt%\'' => + 'SELECT akid FROM ak WHERE eadavk>1.1' => array ( 'result' => array ( @@ -2827,196 +2790,7 @@ array ( 0 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - )), - 1 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 0, - )), - ), - 'valueTypes' => - array ( - 0 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 1 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - ), - 'optionalKeys' => - array ( - ), - 'keyType' => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => true, - 'types' => - array ( - 0 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 0, - )), - 1 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - )), - ), - )), - 'itemType' => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - )), - ), - ), - 'SELECT adaid FROM ada WHERE email LIKE \'hello?%\'' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( - 'allArrays' => NULL, - 'nextAutoIndexes' => - array ( - 0 => 1, - ), - 'keyTypes' => - array ( - 0 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - )), - 1 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 0, - )), - ), - 'valueTypes' => - array ( - 0 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 1 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - ), - 'optionalKeys' => - array ( - ), - 'keyType' => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => true, - 'types' => - array ( - 0 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 0, - )), - 1 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - )), - ), - )), - 'itemType' => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - )), - ), - ), - 'SELECT akid FROM ak WHERE eadavk>1.0' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( - 'allArrays' => NULL, - 'nextAutoIndexes' => - array ( - 0 => 1, - ), - 'keyTypes' => - array ( - 0 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'akid', - 'isClassString' => false, - )), - 1 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 0, - )), - ), - 'valueTypes' => - array ( - 0 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, - )), - 1 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, - )), - ), - 'optionalKeys' => - array ( - ), - 'keyType' => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => true, - 'types' => - array ( - 0 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 0, - )), - 1 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'akid', - 'isClassString' => false, - )), - ), - )), - 'itemType' => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, - )), - )), - ), - ), - 'SELECT akid FROM ak WHERE eadavk>1.1' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( - 'allArrays' => NULL, - 'nextAutoIndexes' => - array ( - 0 => 1, - ), - 'keyTypes' => - array ( - 0 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'akid', + 'value' => 'akid', 'isClassString' => false, )), 1 => @@ -3278,6 +3052,64 @@ )), ), ), + 'SELECT email +FROM ada' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( + 'allArrays' => NULL, + 'nextAutoIndexes' => + array ( + 0 => 1, + ), + 'keyTypes' => + array ( + 0 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'email', + 'isClassString' => false, + )), + 1 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 0, + )), + ), + 'valueTypes' => + array ( + 0 => + PHPStan\Type\StringType::__set_state(array( + )), + 1 => + PHPStan\Type\StringType::__set_state(array( + )), + ), + 'optionalKeys' => + array ( + ), + 'keyType' => + PHPStan\Type\UnionType::__set_state(array( + 'sortedTypes' => true, + 'types' => + array ( + 0 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 0, + )), + 1 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'email', + 'isClassString' => false, + )), + ), + )), + 'itemType' => + PHPStan\Type\StringType::__set_state(array( + )), + )), + ), + ), 'SELECT email FROM ada' => array ( 'result' => @@ -5464,1543 +5296,6 @@ )), ), ), - 'SELECT email, adaid, gesperrt, freigabe1u1 FROM ada LIMIT 1' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( - 'allArrays' => NULL, - 'nextAutoIndexes' => - array ( - 0 => 4, - ), - 'keyTypes' => - array ( - 0 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', - 'isClassString' => false, - )), - 1 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 0, - )), - 2 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - )), - 3 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 1, - )), - 4 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - )), - 5 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 2, - )), - 6 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'freigabe1u1', - 'isClassString' => false, - )), - 7 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 3, - )), - ), - 'valueTypes' => - array ( - 0 => - PHPStan\Type\StringType::__set_state(array( - )), - 1 => - PHPStan\Type\StringType::__set_state(array( - )), - 2 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 3 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 4 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 5 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 6 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 7 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - ), - 'optionalKeys' => - array ( - ), - 'keyType' => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => true, - '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, - )), - 5 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', - 'isClassString' => false, - )), - 6 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'freigabe1u1', - 'isClassString' => false, - )), - 7 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - )), - ), - )), - 'itemType' => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => false, - 'types' => - array ( - 0 => - PHPStan\Type\StringType::__set_state(array( - )), - 1 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - ), - )), - )), - ), - ), - 'SELECT email, adaid, gesperrt, freigabe1u1 FROM ada LIMIT 1, 10' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( - 'allArrays' => NULL, - 'nextAutoIndexes' => - array ( - 0 => 4, - ), - 'keyTypes' => - array ( - 0 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', - 'isClassString' => false, - )), - 1 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 0, - )), - 2 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - )), - 3 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 1, - )), - 4 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - )), - 5 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 2, - )), - 6 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'freigabe1u1', - 'isClassString' => false, - )), - 7 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 3, - )), - ), - 'valueTypes' => - array ( - 0 => - PHPStan\Type\StringType::__set_state(array( - )), - 1 => - PHPStan\Type\StringType::__set_state(array( - )), - 2 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 3 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 4 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 5 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 6 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 7 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - ), - 'optionalKeys' => - array ( - ), - 'keyType' => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => true, - '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, - )), - 5 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', - 'isClassString' => false, - )), - 6 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'freigabe1u1', - 'isClassString' => false, - )), - 7 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - )), - ), - )), - 'itemType' => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => false, - 'types' => - array ( - 0 => - PHPStan\Type\StringType::__set_state(array( - )), - 1 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - ), - )), - )), - ), - ), - 'SELECT email, adaid, gesperrt, freigabe1u1 FROM ada WHERE adaid = \'1\'' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( - 'allArrays' => NULL, - 'nextAutoIndexes' => - array ( - 0 => 4, - ), - 'keyTypes' => - array ( - 0 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', - 'isClassString' => false, - )), - 1 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 0, - )), - 2 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - )), - 3 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 1, - )), - 4 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - )), - 5 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 2, - )), - 6 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'freigabe1u1', - 'isClassString' => false, - )), - 7 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 3, - )), - ), - 'valueTypes' => - array ( - 0 => - PHPStan\Type\StringType::__set_state(array( - )), - 1 => - PHPStan\Type\StringType::__set_state(array( - )), - 2 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 3 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 4 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 5 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 6 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 7 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - ), - 'optionalKeys' => - array ( - ), - 'keyType' => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => true, - '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, - )), - 5 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', - 'isClassString' => false, - )), - 6 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'freigabe1u1', - 'isClassString' => false, - )), - 7 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - )), - ), - )), - 'itemType' => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => false, - 'types' => - array ( - 0 => - PHPStan\Type\StringType::__set_state(array( - )), - 1 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - ), - )), - )), - ), - ), - 'SELECT email, adaid, gesperrt, freigabe1u1 FROM ada WHERE adaid = 1' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( - 'allArrays' => NULL, - 'nextAutoIndexes' => - array ( - 0 => 4, - ), - 'keyTypes' => - array ( - 0 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', - 'isClassString' => false, - )), - 1 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 0, - )), - 2 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - )), - 3 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 1, - )), - 4 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - )), - 5 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 2, - )), - 6 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'freigabe1u1', - 'isClassString' => false, - )), - 7 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 3, - )), - ), - 'valueTypes' => - array ( - 0 => - PHPStan\Type\StringType::__set_state(array( - )), - 1 => - PHPStan\Type\StringType::__set_state(array( - )), - 2 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 3 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 4 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 5 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 6 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 7 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - ), - 'optionalKeys' => - array ( - ), - 'keyType' => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => true, - '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, - )), - 5 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', - 'isClassString' => false, - )), - 6 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'freigabe1u1', - 'isClassString' => false, - )), - 7 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - )), - ), - )), - 'itemType' => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => false, - 'types' => - array ( - 0 => - PHPStan\Type\StringType::__set_state(array( - )), - 1 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - ), - )), - )), - ), - ), - 'SELECT email, adaid, gesperrt, freigabe1u1 FROM ada WHERE adaid = ?' => - array ( - 'result' => - array ( - 5 => NULL, - ), - ), - 'SELECT email, adaid, gesperrt, freigabe1u1 FROM ada WHERE adaid IN(1,3)' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( - 'allArrays' => NULL, - 'nextAutoIndexes' => - array ( - 0 => 4, - ), - 'keyTypes' => - array ( - 0 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', - 'isClassString' => false, - )), - 1 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 0, - )), - 2 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - )), - 3 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 1, - )), - 4 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - )), - 5 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 2, - )), - 6 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'freigabe1u1', - 'isClassString' => false, - )), - 7 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 3, - )), - ), - 'valueTypes' => - array ( - 0 => - PHPStan\Type\StringType::__set_state(array( - )), - 1 => - PHPStan\Type\StringType::__set_state(array( - )), - 2 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 3 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 4 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 5 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 6 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 7 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - ), - 'optionalKeys' => - array ( - ), - 'keyType' => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => true, - '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, - )), - 5 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', - 'isClassString' => false, - )), - 6 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'freigabe1u1', - 'isClassString' => false, - )), - 7 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - )), - ), - )), - 'itemType' => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => false, - 'types' => - array ( - 0 => - PHPStan\Type\StringType::__set_state(array( - )), - 1 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - ), - )), - )), - ), - ), - 'SELECT email, adaid, gesperrt, freigabe1u1 FROM ada WHERE adaid=1' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( - 'allArrays' => NULL, - 'nextAutoIndexes' => - array ( - 0 => 4, - ), - 'keyTypes' => - array ( - 0 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', - 'isClassString' => false, - )), - 1 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 0, - )), - 2 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - )), - 3 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 1, - )), - 4 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - )), - 5 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 2, - )), - 6 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'freigabe1u1', - 'isClassString' => false, - )), - 7 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 3, - )), - ), - 'valueTypes' => - array ( - 0 => - PHPStan\Type\StringType::__set_state(array( - )), - 1 => - PHPStan\Type\StringType::__set_state(array( - )), - 2 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 3 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 4 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 5 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 6 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 7 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - ), - 'optionalKeys' => - array ( - ), - 'keyType' => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => true, - '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, - )), - 5 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', - 'isClassString' => false, - )), - 6 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'freigabe1u1', - 'isClassString' => false, - )), - 7 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - )), - ), - )), - 'itemType' => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => false, - 'types' => - array ( - 0 => - PHPStan\Type\StringType::__set_state(array( - )), - 1 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - ), - )), - )), - ), - ), - 'SELECT email, adaid, gesperrt, freigabe1u1 FROM ada WHERE email = \'1970-01-01\'' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( - 'allArrays' => NULL, - 'nextAutoIndexes' => - array ( - 0 => 4, - ), - 'keyTypes' => - array ( - 0 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', - 'isClassString' => false, - )), - 1 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 0, - )), - 2 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - )), - 3 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 1, - )), - 4 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - )), - 5 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 2, - )), - 6 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'freigabe1u1', - 'isClassString' => false, - )), - 7 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 3, - )), - ), - 'valueTypes' => - array ( - 0 => - PHPStan\Type\StringType::__set_state(array( - )), - 1 => - PHPStan\Type\StringType::__set_state(array( - )), - 2 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 3 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 4 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 5 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 6 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 7 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - ), - 'optionalKeys' => - array ( - ), - 'keyType' => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => true, - '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, - )), - 5 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', - 'isClassString' => false, - )), - 6 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'freigabe1u1', - 'isClassString' => false, - )), - 7 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - )), - ), - )), - 'itemType' => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => false, - 'types' => - array ( - 0 => - PHPStan\Type\StringType::__set_state(array( - )), - 1 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - ), - )), - )), - ), - ), - 'SELECT email, adaid, gesperrt, freigabe1u1 FROM ada WHERE email = \'test@example.org\'' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( - 'allArrays' => NULL, - 'nextAutoIndexes' => - array ( - 0 => 4, - ), - 'keyTypes' => - array ( - 0 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', - 'isClassString' => false, - )), - 1 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 0, - )), - 2 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - )), - 3 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 1, - )), - 4 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - )), - 5 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 2, - )), - 6 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'freigabe1u1', - 'isClassString' => false, - )), - 7 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 3, - )), - ), - 'valueTypes' => - array ( - 0 => - PHPStan\Type\StringType::__set_state(array( - )), - 1 => - PHPStan\Type\StringType::__set_state(array( - )), - 2 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 3 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 4 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 5 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 6 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 7 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - ), - 'optionalKeys' => - array ( - ), - 'keyType' => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => true, - '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, - )), - 5 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', - 'isClassString' => false, - )), - 6 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'freigabe1u1', - 'isClassString' => false, - )), - 7 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - )), - ), - )), - 'itemType' => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => false, - 'types' => - array ( - 0 => - PHPStan\Type\StringType::__set_state(array( - )), - 1 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - ), - )), - )), - ), - ), - 'SELECT email, adaid, gesperrt, freigabe1u1 FROM ada WHERE email=\'foo\'' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( - 'allArrays' => NULL, - 'nextAutoIndexes' => - array ( - 0 => 4, - ), - 'keyTypes' => - array ( - 0 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', - 'isClassString' => false, - )), - 1 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 0, - )), - 2 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - )), - 3 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 1, - )), - 4 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - )), - 5 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 2, - )), - 6 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'freigabe1u1', - 'isClassString' => false, - )), - 7 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 3, - )), - ), - 'valueTypes' => - array ( - 0 => - PHPStan\Type\StringType::__set_state(array( - )), - 1 => - PHPStan\Type\StringType::__set_state(array( - )), - 2 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 3 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 4 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 5 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 6 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 7 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - ), - 'optionalKeys' => - array ( - ), - 'keyType' => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => true, - '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, - )), - 5 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', - 'isClassString' => false, - )), - 6 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'freigabe1u1', - 'isClassString' => false, - )), - 7 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - )), - ), - )), - 'itemType' => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => false, - 'types' => - array ( - 0 => - PHPStan\Type\StringType::__set_state(array( - )), - 1 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - ), - )), - )), - ), - ), - 'SELECT email, adaid, gesperrt, freigabe1u1 FROM ada WHERE gesperrt = \'1\'' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( - 'allArrays' => NULL, - 'nextAutoIndexes' => - array ( - 0 => 4, - ), - 'keyTypes' => - array ( - 0 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', - 'isClassString' => false, - )), - 1 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 0, - )), - 2 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - )), - 3 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 1, - )), - 4 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - )), - 5 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 2, - )), - 6 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'freigabe1u1', - 'isClassString' => false, - )), - 7 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 3, - )), - ), - 'valueTypes' => - array ( - 0 => - PHPStan\Type\StringType::__set_state(array( - )), - 1 => - PHPStan\Type\StringType::__set_state(array( - )), - 2 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 3 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 4 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 5 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 6 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 7 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - ), - 'optionalKeys' => - array ( - ), - 'keyType' => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => true, - '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, - )), - 5 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', - 'isClassString' => false, - )), - 6 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'freigabe1u1', - 'isClassString' => false, - )), - 7 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - )), - ), - )), - 'itemType' => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => false, - 'types' => - array ( - 0 => - PHPStan\Type\StringType::__set_state(array( - )), - 1 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - ), - )), - )), - ), - ), ), 'runtimeConfig' => array ( diff --git a/tests/default/config/.phpunit-phpstan-dba-pdo.cache b/tests/default/config/.phpunit-phpstan-dba-pdo.cache index ef2de75e6..aa581cc2a 100644 --- a/tests/default/config/.phpunit-phpstan-dba-pdo.cache +++ b/tests/default/config/.phpunit-phpstan-dba-pdo.cache @@ -1,14 +1,51 @@ 'v6-schema-hash', + 'schemaVersion' => 'v7-normalized-eol', 'schemaHash' => NULL, 'records' => array ( - 'SELECT * FROM typemix' => + ' + SELECT + adaid + FROM + ada' => array ( 'result' => array ( 5 => PHPStan\Type\Constant\ConstantArrayType::__set_state(array( + 'allArrays' => NULL, + 'nextAutoIndexes' => + array ( + 0 => 1, + ), + 'keyTypes' => + array ( + 0 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'adaid', + 'isClassString' => false, + )), + 1 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 0, + )), + ), + 'valueTypes' => + array ( + 0 => + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + 1 => + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + ), + 'optionalKeys' => + array ( + ), 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -19,355 +56,26 @@ '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\ConstantIntegerType::__set_state(array( - 'value' => 5, - )), - 6 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 6, - )), - 7 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 7, - )), - 8 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 8, - )), - 9 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 9, - )), - 10 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 10, - )), - 11 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 11, - )), - 12 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 12, - )), - 13 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 13, - )), - 14 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 14, - )), - 15 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 15, - )), - 16 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 16, - )), - 17 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 17, - )), - 18 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 18, - )), - 19 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 19, - )), - 20 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 20, - )), - 21 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 21, - )), - 22 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 22, - )), - 23 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 23, - )), - 24 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 24, - )), - 25 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 25, - )), - 26 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 26, - )), - 27 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 27, - )), - 28 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 28, - )), - 29 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 29, - )), - 30 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 30, - )), - 31 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 31, - )), - 32 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 32, - )), - 33 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 33, - )), - 34 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 34, - )), - 35 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 35, - )), - 36 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 36, - )), - 37 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'c_bigint', - 'isClassString' => false, - )), - 38 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'c_bit', - 'isClassString' => false, - )), - 39 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'c_blob', - 'isClassString' => false, - )), - 40 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'c_boolean', - 'isClassString' => false, - )), - 41 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'c_char5', - 'isClassString' => false, - )), - 42 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'c_date', - 'isClassString' => false, - )), - 43 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'c_datetime', - 'isClassString' => false, - )), - 44 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'c_double', - 'isClassString' => false, - )), - 45 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'c_enum', - 'isClassString' => false, - )), - 46 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'c_int', - 'isClassString' => false, - )), - 47 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'c_json', - 'isClassString' => false, - )), - 48 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'c_json_not_null', - 'isClassString' => false, - )), - 49 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'c_long_text', - 'isClassString' => false, - )), - 50 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'c_longblob', - 'isClassString' => false, - )), - 51 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'c_medium_text', - 'isClassString' => false, - )), - 52 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'c_mediumblog', - 'isClassString' => false, - )), - 53 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'c_mediumint', - 'isClassString' => false, - )), - 54 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'c_real', - 'isClassString' => false, - )), - 55 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'c_set', - 'isClassString' => false, - )), - 56 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'c_smallint', - 'isClassString' => false, - )), - 57 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'c_text', - 'isClassString' => false, - )), - 58 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'c_time', - 'isClassString' => false, - )), - 59 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'c_timestamp', - 'isClassString' => false, - )), - 60 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'c_tiny_text', - 'isClassString' => false, - )), - 61 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'c_tinyblob', - 'isClassString' => false, - )), - 62 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'c_tinyint', - 'isClassString' => false, - )), - 63 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'c_unsigned_bigint', - 'isClassString' => false, - )), - 64 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'c_unsigned_int', - 'isClassString' => false, - )), - 65 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'c_unsigned_mediumint', - 'isClassString' => false, - )), - 66 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'c_unsigned_smallint', - 'isClassString' => false, - )), - 67 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'c_unsigned_tinyint', - 'isClassString' => false, - )), - 68 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'c_varbinary25', - 'isClassString' => false, - )), - 69 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'c_varbinary255', - 'isClassString' => false, - )), - 70 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'c_varchar25', - 'isClassString' => false, - )), - 71 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'c_varchar255', - 'isClassString' => false, - )), - 72 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'c_year', - 'isClassString' => false, - )), - 73 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'pid', + 'value' => 'adaid', 'isClassString' => false, )), ), )), 'itemType' => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => false, - 'types' => - array ( - 0 => - PHPStan\Type\StringType::__set_state(array( - )), - 1 => - PHPStan\Type\FloatType::__set_state(array( - )), - 2 => - PHPStan\Type\IntegerType::__set_state(array( - )), - 3 => - PHPStan\Type\NullType::__set_state(array( - )), - ), + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, )), + )), + ), + ), + 'SELECT * FROM typemix' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( @@ -1245,15 +953,6 @@ 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT MAX(adaid), MIN(adaid), COUNT(adaid), AVG(adaid) FROM ada WHERE adaid = 1' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -1276,672 +975,494 @@ 'value' => 3, )), 4 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'AVG(adaid)', - 'isClassString' => false, + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 4, )), 5 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'COUNT(adaid)', - 'isClassString' => false, + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 5, )), 6 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'MAX(adaid)', - 'isClassString' => false, + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 6, )), 7 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'MIN(adaid)', - 'isClassString' => false, + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 7, )), - ), - )), - 'itemType' => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => false, - 'types' => - array ( - 0 => - PHPStan\Type\IntegerType::__set_state(array( + 8 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 8, )), - 1 => - PHPStan\Type\FloatType::__set_state(array( + 9 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 9, )), - 2 => - PHPStan\Type\NullType::__set_state(array( + 10 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 10, )), - ), - )), - 'allArrays' => NULL, - 'nextAutoIndexes' => - array ( - 0 => 4, - ), - 'keyTypes' => - array ( - 0 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'MAX(adaid)', - 'isClassString' => false, - )), - 1 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 0, - )), - 2 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'MIN(adaid)', - 'isClassString' => false, - )), - 3 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 1, - )), - 4 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'COUNT(adaid)', - 'isClassString' => false, - )), - 5 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 2, - )), - 6 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'AVG(adaid)', - 'isClassString' => false, - )), - 7 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 3, - )), - ), - 'valueTypes' => - array ( - 0 => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => true, - 'types' => - array ( - 0 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 1 => - PHPStan\Type\NullType::__set_state(array( - )), - ), - )), - 1 => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => false, - 'types' => - array ( - 0 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 1 => - PHPStan\Type\NullType::__set_state(array( - )), - ), - )), - 2 => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => true, - 'types' => - array ( - 0 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 1 => - PHPStan\Type\NullType::__set_state(array( - )), - ), - )), - 3 => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => false, - 'types' => - array ( - 0 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 1 => - PHPStan\Type\NullType::__set_state(array( - )), - ), - )), - 4 => - PHPStan\Type\IntegerType::__set_state(array( - )), - 5 => - PHPStan\Type\IntegerType::__set_state(array( - )), - 6 => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => true, - 'types' => - array ( - 0 => - PHPStan\Type\FloatType::__set_state(array( - )), - 1 => - PHPStan\Type\NullType::__set_state(array( - )), - ), - )), - 7 => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => false, - 'types' => - array ( - 0 => - PHPStan\Type\FloatType::__set_state(array( - )), - 1 => - PHPStan\Type\NullType::__set_state(array( - )), - ), - )), - ), - 'optionalKeys' => - array ( - ), - )), - ), - ), - 'SELECT adaid FROM ada' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( - 'keyType' => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => true, - 'types' => - array ( - 0 => + 11 => PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 0, + 'value' => 11, )), - 1 => + 12 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 12, + )), + 13 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 13, + )), + 14 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 14, + )), + 15 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 15, + )), + 16 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 16, + )), + 17 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 17, + )), + 18 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 18, + )), + 19 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 19, + )), + 20 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 20, + )), + 21 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 21, + )), + 22 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 22, + )), + 23 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 23, + )), + 24 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 24, + )), + 25 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 25, + )), + 26 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 26, + )), + 27 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 27, + )), + 28 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 28, + )), + 29 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 29, + )), + 30 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 30, + )), + 31 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 31, + )), + 32 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 32, + )), + 33 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 33, + )), + 34 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 34, + )), + 35 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 35, + )), + 36 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 36, + )), + 37 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', + 'value' => 'c_bigint', 'isClassString' => false, )), - ), - )), - 'itemType' => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 'allArrays' => NULL, - 'nextAutoIndexes' => - array ( - 0 => 1, - ), - 'keyTypes' => - array ( - 0 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - )), - 1 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 0, - )), - ), - 'valueTypes' => - array ( - 0 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 1 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - ), - 'optionalKeys' => - array ( - ), - )), - 3 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( - 'keyType' => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - )), - 'itemType' => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 'allArrays' => NULL, - 'nextAutoIndexes' => - array ( - 0 => 0, - ), - 'keyTypes' => - array ( - 0 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - )), - ), - 'valueTypes' => - array ( - 0 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - ), - 'optionalKeys' => - array ( - ), - )), - ), - ), - 'SELECT adaid FROM ada LIMIT 1 FOR SHARE' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( - 'keyType' => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => true, - 'types' => - array ( - 0 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 0, + 38 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'c_bit', + 'isClassString' => false, )), - 1 => + 39 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', + 'value' => 'c_blob', 'isClassString' => false, )), - ), - )), - 'itemType' => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 'allArrays' => NULL, - 'nextAutoIndexes' => - array ( - 0 => 1, - ), - 'keyTypes' => - array ( - 0 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - )), - 1 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 0, - )), - ), - 'valueTypes' => - array ( - 0 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 1 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - ), - 'optionalKeys' => - array ( - ), - )), - ), - ), - 'SELECT adaid FROM ada LIMIT 1 FOR SHARE NOWAIT' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( - 'keyType' => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => true, - 'types' => - array ( - 0 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 0, + 40 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'c_boolean', + 'isClassString' => false, + )), + 41 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'c_char5', + 'isClassString' => false, + )), + 42 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'c_date', + 'isClassString' => false, + )), + 43 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'c_datetime', + 'isClassString' => false, + )), + 44 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'c_double', + 'isClassString' => false, + )), + 45 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'c_enum', + 'isClassString' => false, + )), + 46 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'c_int', + 'isClassString' => false, + )), + 47 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'c_json', + 'isClassString' => false, + )), + 48 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'c_json_not_null', + 'isClassString' => false, + )), + 49 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'c_long_text', + 'isClassString' => false, + )), + 50 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'c_longblob', + 'isClassString' => false, + )), + 51 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'c_medium_text', + 'isClassString' => false, + )), + 52 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'c_mediumblog', + 'isClassString' => false, + )), + 53 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'c_mediumint', + 'isClassString' => false, + )), + 54 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'c_real', + 'isClassString' => false, + )), + 55 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'c_set', + 'isClassString' => false, + )), + 56 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'c_smallint', + 'isClassString' => false, + )), + 57 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'c_text', + 'isClassString' => false, + )), + 58 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'c_time', + 'isClassString' => false, + )), + 59 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'c_timestamp', + 'isClassString' => false, + )), + 60 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'c_tiny_text', + 'isClassString' => false, + )), + 61 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'c_tinyblob', + 'isClassString' => false, + )), + 62 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'c_tinyint', + 'isClassString' => false, + )), + 63 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'c_unsigned_bigint', + 'isClassString' => false, + )), + 64 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'c_unsigned_int', + 'isClassString' => false, + )), + 65 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'c_unsigned_mediumint', + 'isClassString' => false, + )), + 66 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'c_unsigned_smallint', + 'isClassString' => false, + )), + 67 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'c_unsigned_tinyint', + 'isClassString' => false, + )), + 68 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'c_varbinary25', + 'isClassString' => false, + )), + 69 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'c_varbinary255', + 'isClassString' => false, )), - 1 => + 70 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', + 'value' => 'c_varchar25', 'isClassString' => false, )), - ), - )), - 'itemType' => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 'allArrays' => NULL, - 'nextAutoIndexes' => - array ( - 0 => 1, - ), - 'keyTypes' => - array ( - 0 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - )), - 1 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 0, - )), - ), - 'valueTypes' => - array ( - 0 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 1 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - ), - 'optionalKeys' => - array ( - ), - )), - ), - ), - 'SELECT adaid FROM ada LIMIT 1 FOR SHARE SKIP LOCKED' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( - 'keyType' => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => true, - 'types' => - array ( - 0 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 0, - )), - 1 => + 71 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', + 'value' => 'c_varchar255', 'isClassString' => false, )), - ), - )), - 'itemType' => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 'allArrays' => NULL, - 'nextAutoIndexes' => - array ( - 0 => 1, - ), - 'keyTypes' => - array ( - 0 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - )), - 1 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 0, - )), - ), - 'valueTypes' => - array ( - 0 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 1 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - ), - 'optionalKeys' => - array ( - ), - )), - ), - ), - 'SELECT adaid FROM ada LIMIT 1 FOR UPDATE NOWAIT' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( - 'keyType' => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => true, - 'types' => - array ( - 0 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 0, + 72 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'c_year', + 'isClassString' => false, )), - 1 => + 73 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', + 'value' => 'pid', 'isClassString' => false, )), ), )), 'itemType' => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 'allArrays' => NULL, - 'nextAutoIndexes' => - array ( - 0 => 1, - ), - 'keyTypes' => - array ( - 0 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - )), - 1 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 0, - )), - ), - 'valueTypes' => - array ( - 0 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 1 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - ), - 'optionalKeys' => - array ( - ), - )), - ), - ), - 'SELECT adaid FROM ada LIMIT 1 FOR UPDATE SKIP LOCKED' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( - 'keyType' => PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => true, + 'sortedTypes' => false, 'types' => array ( 0 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 0, + PHPStan\Type\StringType::__set_state(array( )), 1 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, + PHPStan\Type\FloatType::__set_state(array( + )), + 2 => + PHPStan\Type\IntegerType::__set_state(array( + )), + 3 => + PHPStan\Type\NullType::__set_state(array( )), ), )), - 'itemType' => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 'allArrays' => NULL, - 'nextAutoIndexes' => - array ( - 0 => 1, - ), - 'keyTypes' => - array ( - 0 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - )), - 1 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 0, - )), - ), - 'valueTypes' => - array ( - 0 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 1 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - ), - 'optionalKeys' => - array ( - ), )), ), ), - 'SELECT adaid FROM ada LIMIT 1 OFFSET 1' => + 'SELECT MAX(adaid), MIN(adaid), COUNT(adaid), AVG(adaid) FROM ada WHERE adaid = 1' => array ( 'result' => array ( 5 => PHPStan\Type\Constant\ConstantArrayType::__set_state(array( - 'keyType' => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => true, - 'types' => - array ( - 0 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 0, - )), - 1 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - )), - ), - )), - 'itemType' => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), 'allArrays' => NULL, 'nextAutoIndexes' => array ( - 0 => 1, + 0 => 4, ), 'keyTypes' => array ( 0 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', + 'value' => 'MAX(adaid)', 'isClassString' => false, )), 1 => PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( 'value' => 0, )), + 2 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'MIN(adaid)', + 'isClassString' => false, + )), + 3 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 1, + )), + 4 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'COUNT(adaid)', + 'isClassString' => false, + )), + 5 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 2, + )), + 6 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'AVG(adaid)', + 'isClassString' => false, + )), + 7 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 3, + )), ), 'valueTypes' => array ( 0 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, + PHPStan\Type\UnionType::__set_state(array( + 'sortedTypes' => true, + 'types' => + array ( + 0 => + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + 1 => + PHPStan\Type\NullType::__set_state(array( + )), + ), )), 1 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, + PHPStan\Type\UnionType::__set_state(array( + 'sortedTypes' => false, + 'types' => + array ( + 0 => + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + 1 => + PHPStan\Type\NullType::__set_state(array( + )), + ), + )), + 2 => + PHPStan\Type\UnionType::__set_state(array( + 'sortedTypes' => true, + 'types' => + array ( + 0 => + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + 1 => + PHPStan\Type\NullType::__set_state(array( + )), + ), + )), + 3 => + PHPStan\Type\UnionType::__set_state(array( + 'sortedTypes' => false, + 'types' => + array ( + 0 => + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + 1 => + PHPStan\Type\NullType::__set_state(array( + )), + ), + )), + 4 => + PHPStan\Type\IntegerType::__set_state(array( + )), + 5 => + PHPStan\Type\IntegerType::__set_state(array( + )), + 6 => + PHPStan\Type\UnionType::__set_state(array( + 'sortedTypes' => true, + 'types' => + array ( + 0 => + PHPStan\Type\FloatType::__set_state(array( + )), + 1 => + PHPStan\Type\NullType::__set_state(array( + )), + ), + )), + 7 => + PHPStan\Type\UnionType::__set_state(array( + 'sortedTypes' => false, + 'types' => + array ( + 0 => + PHPStan\Type\FloatType::__set_state(array( + )), + 1 => + PHPStan\Type\NullType::__set_state(array( + )), + ), )), ), 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT adaid FROM ada LIMIT 1 OFFSET 1 FOR UPDATE' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -1952,17 +1473,65 @@ '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', + 'value' => 'AVG(adaid)', + 'isClassString' => false, + )), + 5 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'COUNT(adaid)', + 'isClassString' => false, + )), + 6 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'MAX(adaid)', + 'isClassString' => false, + )), + 7 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'MIN(adaid)', 'isClassString' => false, )), ), )), 'itemType' => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, + PHPStan\Type\UnionType::__set_state(array( + 'sortedTypes' => false, + 'types' => + array ( + 0 => + PHPStan\Type\IntegerType::__set_state(array( + )), + 1 => + PHPStan\Type\FloatType::__set_state(array( + )), + 2 => + PHPStan\Type\NullType::__set_state(array( + )), + ), )), + )), + ), + ), + 'SELECT adaid +FROM ada' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( @@ -1996,15 +1565,6 @@ 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT adaid FROM ada WHERE adaid IN (\'1\')' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -2026,6 +1586,15 @@ 'min' => -32768, 'max' => 32767, )), + )), + ), + ), + 'SELECT adaid FROM ada' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( @@ -2059,15 +1628,6 @@ 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT adaid FROM ada WHERE adaid IN (\'1\') AND email LIKE \'1970-01-01\'' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -2089,10 +1649,13 @@ 'min' => -32768, 'max' => 32767, )), + )), + 3 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( - 0 => 1, + 0 => 0, ), 'keyTypes' => array ( @@ -2101,57 +1664,37 @@ 'value' => 'adaid', 'isClassString' => false, )), - 1 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 0, - )), ), 'valueTypes' => array ( 0 => PHPStan\Type\IntegerRangeType::__set_state(array( 'min' => -32768, - 'max' => 32767, - )), - 1 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - ), - 'optionalKeys' => - array ( - ), - )), - ), - ), - 'SELECT adaid FROM ada WHERE adaid IN (\'1.0\')' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( - 'keyType' => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => true, - 'types' => - array ( - 0 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 0, - )), - 1 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - )), - ), + 'max' => 32767, + )), + ), + 'optionalKeys' => + array ( + ), + 'keyType' => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'adaid', + 'isClassString' => false, )), 'itemType' => PHPStan\Type\IntegerRangeType::__set_state(array( 'min' => -32768, 'max' => 32767, )), + )), + ), + ), + 'SELECT adaid FROM ada LIMIT 1 FOR SHARE' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( @@ -2185,36 +1728,6 @@ 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT adaid FROM ada WHERE adaid IN (:adaids)' => - array ( - 'result' => - array ( - 5 => NULL, - ), - ), - 'SELECT adaid FROM ada WHERE adaid IN (:ids)' => - array ( - 'result' => - array ( - 5 => NULL, - ), - ), - 'SELECT adaid FROM ada WHERE adaid IN (:ids) AND email LIKE :time' => - array ( - 'result' => - array ( - 5 => NULL, - ), - ), - 'SELECT adaid FROM ada WHERE adaid IN (NULL) AND email LIKE \'1970-01-01\'' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -2236,6 +1749,15 @@ 'min' => -32768, 'max' => 32767, )), + )), + ), + ), + 'SELECT adaid FROM ada LIMIT 1 FOR SHARE NOWAIT' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( @@ -2269,15 +1791,6 @@ 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT adaid FROM ada WHERE email LIKE ":gesperrt%"' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -2299,6 +1812,15 @@ 'min' => -32768, 'max' => 32767, )), + )), + ), + ), + 'SELECT adaid FROM ada LIMIT 1 FOR SHARE SKIP LOCKED' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( @@ -2332,15 +1854,6 @@ 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT adaid FROM ada WHERE email LIKE "hello?%"' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -2362,6 +1875,15 @@ 'min' => -32768, 'max' => 32767, )), + )), + ), + ), + 'SELECT adaid FROM ada LIMIT 1 FOR UPDATE NOWAIT' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( @@ -2395,15 +1917,6 @@ 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT adaid FROM ada WHERE email LIKE \'%questions ?%\'' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -2425,6 +1938,15 @@ 'min' => -32768, 'max' => 32767, )), + )), + ), + ), + 'SELECT adaid FROM ada LIMIT 1 FOR UPDATE SKIP LOCKED' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( @@ -2458,15 +1980,6 @@ 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT adaid FROM ada WHERE email LIKE \':gesperrt%\'' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -2488,6 +2001,15 @@ 'min' => -32768, 'max' => 32767, )), + )), + ), + ), + 'SELECT adaid FROM ada LIMIT 1 OFFSET 1' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( @@ -2521,15 +2043,6 @@ 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT adaid FROM ada WHERE email LIKE \'hello?%\'' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -2551,6 +2064,15 @@ 'min' => -32768, 'max' => 32767, )), + )), + ), + ), + 'SELECT adaid FROM ada LIMIT 1 OFFSET 1 FOR UPDATE' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( @@ -2584,15 +2106,6 @@ 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT akid FROM ak WHERE eadavk>1.0' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -2604,16 +2117,25 @@ )), 1 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'akid', + 'value' => 'adaid', 'isClassString' => false, )), ), )), 'itemType' => PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + 'min' => -32768, + 'max' => 32767, )), + )), + ), + ), + 'SELECT adaid FROM ada WHERE adaid IN (\'1\')' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( @@ -2623,7 +2145,7 @@ array ( 0 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'akid', + 'value' => 'adaid', 'isClassString' => false, )), 1 => @@ -2635,27 +2157,18 @@ array ( 0 => PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + 'min' => -32768, + 'max' => 32767, )), 1 => PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + 'min' => -32768, + 'max' => 32767, )), ), 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT akid FROM ak WHERE eadavk>1.1' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -2667,16 +2180,25 @@ )), 1 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'akid', + 'value' => 'adaid', 'isClassString' => false, )), ), )), 'itemType' => PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + 'min' => -32768, + 'max' => 32767, )), + )), + ), + ), + 'SELECT adaid FROM ada WHERE adaid IN (\'1\') AND email LIKE \'1970-01-01\'' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( @@ -2686,7 +2208,7 @@ array ( 0 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'akid', + 'value' => 'adaid', 'isClassString' => false, )), 1 => @@ -2698,34 +2220,18 @@ array ( 0 => PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + 'min' => -32768, + 'max' => 32767, )), 1 => PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, + 'min' => -32768, + 'max' => 32767, )), ), 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT count(*) AS c FROM typemix WHERE c_datetime=:last_dt' => - array ( - 'result' => - array ( - 5 => NULL, - ), - ), - 'SELECT count(*) FROM typemix WHERE c_date = \'1970-01-01\'' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -2737,14 +2243,46 @@ )), 1 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'count(*)', + 'value' => 'adaid', 'isClassString' => false, )), ), )), 'itemType' => - PHPStan\Type\IntegerType::__set_state(array( + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, )), + )), + ), + ), + 'SELECT adaid FROM ada WHERE adaid IN (:adaids)' => + array ( + 'result' => + array ( + 5 => NULL, + ), + ), + 'SELECT adaid FROM ada WHERE adaid IN (:ids)' => + array ( + 'result' => + array ( + 5 => NULL, + ), + ), + 'SELECT adaid FROM ada WHERE adaid IN (:ids) AND email LIKE :time' => + array ( + 'result' => + array ( + 5 => NULL, + ), + ), + 'SELECT adaid FROM ada WHERE adaid IN (NULL) AND email LIKE \'1970-01-01\'' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( @@ -2754,7 +2292,7 @@ array ( 0 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'count(*)', + 'value' => 'adaid', 'isClassString' => false, )), 1 => @@ -2765,24 +2303,19 @@ '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' => array ( ), - )), - ), - ), - 'SELECT count(*) FROM typemix WHERE c_datetime = \'1970-01-01\'' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -2794,14 +2327,25 @@ )), 1 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'count(*)', + 'value' => 'adaid', 'isClassString' => false, )), ), )), 'itemType' => - PHPStan\Type\IntegerType::__set_state(array( + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, )), + )), + ), + ), + 'SELECT adaid FROM ada WHERE email LIKE ":gesperrt%"' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( @@ -2811,7 +2355,7 @@ array ( 0 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'count(*)', + 'value' => 'adaid', 'isClassString' => false, )), 1 => @@ -2822,24 +2366,19 @@ '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' => array ( ), - )), - ), - ), - 'SELECT eladaid FROM ak' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -2851,26 +2390,25 @@ )), 1 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'eladaid', + 'value' => 'adaid', 'isClassString' => false, )), ), )), 'itemType' => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => false, - 'types' => - array ( - 0 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, - )), - 1 => - PHPStan\Type\NullType::__set_state(array( - )), - ), + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, )), + )), + ), + ), + 'SELECT adaid FROM ada WHERE email LIKE \'%questions ?%\'' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( @@ -2880,7 +2418,7 @@ array ( 0 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'eladaid', + 'value' => 'adaid', 'isClassString' => false, )), 1 => @@ -2891,48 +2429,19 @@ 'valueTypes' => array ( 0 => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => true, - 'types' => - array ( - 0 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, - )), - 1 => - PHPStan\Type\NullType::__set_state(array( - )), - ), + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, )), 1 => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => false, - 'types' => - array ( - 0 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -2147483648, - 'max' => 2147483647, - )), - 1 => - PHPStan\Type\NullType::__set_state(array( - )), - ), + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, )), ), 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT email FROM ada' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -2944,14 +2453,25 @@ )), 1 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', + 'value' => 'adaid', 'isClassString' => false, )), ), )), 'itemType' => - PHPStan\Type\StringType::__set_state(array( + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, )), + )), + ), + ), + 'SELECT adaid FROM ada WHERE email LIKE \':gesperrt%\'' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( @@ -2961,7 +2481,7 @@ array ( 0 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', + 'value' => 'adaid', 'isClassString' => false, )), 1 => @@ -2972,64 +2492,19 @@ 'valueTypes' => array ( 0 => - PHPStan\Type\StringType::__set_state(array( + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, )), 1 => - PHPStan\Type\StringType::__set_state(array( - )), - ), - 'optionalKeys' => - array ( - ), - )), - 3 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( - 'keyType' => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', - 'isClassString' => false, - )), - 'itemType' => - PHPStan\Type\StringType::__set_state(array( - )), - 'allArrays' => NULL, - 'nextAutoIndexes' => - array ( - 0 => 0, - ), - 'keyTypes' => - array ( - 0 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', - 'isClassString' => false, - )), - ), - 'valueTypes' => - array ( - 0 => - PHPStan\Type\StringType::__set_state(array( + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, )), ), 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT email adaid WHERE gesperrt freigabe1u1 FROM ada' => - array ( - 'result' => - array ( - 5 => NULL, - ), - ), - 'SELECT email, adaid FROM ada' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -3040,76 +2515,51 @@ 'value' => 0, )), 1 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 1, - )), - 2 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( 'value' => 'adaid', 'isClassString' => false, )), - 3 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', - 'isClassString' => false, - )), ), )), 'itemType' => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => false, - 'types' => - array ( - 0 => - PHPStan\Type\StringType::__set_state(array( - )), - 1 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - ), + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, )), + )), + ), + ), + 'SELECT adaid FROM ada WHERE email LIKE \'hello?%\'' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( - 0 => 2, + 0 => 1, ), - 'keyTypes' => - array ( - 0 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', - 'isClassString' => false, - )), - 1 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 0, - )), - 2 => + 'keyTypes' => + array ( + 0 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( 'value' => 'adaid', 'isClassString' => false, )), - 3 => + 1 => PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 1, + 'value' => 0, )), ), 'valueTypes' => array ( 0 => - PHPStan\Type\StringType::__set_state(array( - )), - 1 => - PHPStan\Type\StringType::__set_state(array( - )), - 2 => PHPStan\Type\IntegerRangeType::__set_state(array( 'min' => -32768, 'max' => 32767, )), - 3 => + 1 => PHPStan\Type\IntegerRangeType::__set_state(array( 'min' => -32768, 'max' => 32767, @@ -3118,82 +2568,69 @@ 'optionalKeys' => array ( ), - )), - 3 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, 'types' => array ( 0 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 0, )), 1 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', + 'value' => 'adaid', 'isClassString' => false, )), ), )), 'itemType' => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => false, - 'types' => - array ( - 0 => - PHPStan\Type\StringType::__set_state(array( - )), - 1 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - ), + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, )), + )), + ), + ), + 'SELECT akid FROM ak WHERE eadavk>1.0' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( - 0 => 0, + 0 => 1, ), 'keyTypes' => array ( 0 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', + 'value' => 'akid', 'isClassString' => false, )), 1 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 0, )), ), 'valueTypes' => array ( 0 => - PHPStan\Type\StringType::__set_state(array( + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), 1 => PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, + 'min' => -2147483648, + 'max' => 2147483647, )), ), 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT email, adaid FROM ada LIMIT 1' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -3204,93 +2641,59 @@ 'value' => 0, )), 1 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 1, - )), - 2 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - )), - 3 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', + 'value' => 'akid', 'isClassString' => false, )), ), )), 'itemType' => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => false, - 'types' => - array ( - 0 => - PHPStan\Type\StringType::__set_state(array( - )), - 1 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - ), + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), + )), + ), + ), + 'SELECT akid FROM ak WHERE eadavk>1.1' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( - 0 => 2, + 0 => 1, ), 'keyTypes' => array ( 0 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', + 'value' => 'akid', 'isClassString' => false, )), 1 => PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( 'value' => 0, )), - 2 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - )), - 3 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 1, - )), ), 'valueTypes' => array ( 0 => - PHPStan\Type\StringType::__set_state(array( - )), - 1 => - PHPStan\Type\StringType::__set_state(array( - )), - 2 => PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, + 'min' => -2147483648, + 'max' => 2147483647, )), - 3 => + 1 => PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, + 'min' => -2147483648, + 'max' => 2147483647, )), ), 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT email, adaid FROM ada LIMIT 1, 10' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -3301,93 +2704,62 @@ 'value' => 0, )), 1 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 1, - )), - 2 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - )), - 3 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', + 'value' => 'akid', 'isClassString' => false, )), ), )), 'itemType' => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => false, - 'types' => - array ( - 0 => - PHPStan\Type\StringType::__set_state(array( - )), - 1 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - ), + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), + )), + ), + ), + 'SELECT count(*) AS c FROM typemix WHERE c_datetime=:last_dt' => + array ( + 'result' => + array ( + 5 => NULL, + ), + ), + 'SELECT count(*) FROM typemix WHERE c_date = \'1970-01-01\'' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( - 0 => 2, + 0 => 1, ), 'keyTypes' => array ( 0 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', + 'value' => 'count(*)', 'isClassString' => false, )), 1 => PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( 'value' => 0, )), - 2 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - )), - 3 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 1, - )), ), 'valueTypes' => array ( 0 => - PHPStan\Type\StringType::__set_state(array( + PHPStan\Type\IntegerType::__set_state(array( )), 1 => - PHPStan\Type\StringType::__set_state(array( - )), - 2 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 3 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, + PHPStan\Type\IntegerType::__set_state(array( )), ), 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT email, adaid FROM ada WHERE adaid = \'1\'' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -3398,93 +2770,53 @@ 'value' => 0, )), 1 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 1, - )), - 2 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - )), - 3 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', - 'isClassString' => false, - )), - ), - )), - 'itemType' => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => false, - 'types' => - array ( - 0 => - PHPStan\Type\StringType::__set_state(array( - )), - 1 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'count(*)', + 'isClassString' => false, )), ), )), + 'itemType' => + PHPStan\Type\IntegerType::__set_state(array( + )), + )), + ), + ), + 'SELECT count(*) FROM typemix WHERE c_datetime = \'1970-01-01\'' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( - 0 => 2, + 0 => 1, ), 'keyTypes' => array ( 0 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', + 'value' => 'count(*)', 'isClassString' => false, )), 1 => PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( 'value' => 0, )), - 2 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - )), - 3 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 1, - )), ), 'valueTypes' => array ( 0 => - PHPStan\Type\StringType::__set_state(array( + PHPStan\Type\IntegerType::__set_state(array( )), 1 => - PHPStan\Type\StringType::__set_state(array( - )), - 2 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 3 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, + PHPStan\Type\IntegerType::__set_state(array( )), ), 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT email, adaid FROM ada WHERE adaid = \'1\' and email = \'email@example.org\'' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -3495,93 +2827,77 @@ 'value' => 0, )), 1 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 1, - )), - 2 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - )), - 3 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', + 'value' => 'count(*)', 'isClassString' => false, )), ), )), 'itemType' => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => false, - 'types' => - array ( - 0 => - PHPStan\Type\StringType::__set_state(array( - )), - 1 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - ), + PHPStan\Type\IntegerType::__set_state(array( )), + )), + ), + ), + 'SELECT eladaid FROM ak' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( - 0 => 2, + 0 => 1, ), 'keyTypes' => array ( 0 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', + 'value' => 'eladaid', 'isClassString' => false, )), 1 => PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( 'value' => 0, )), - 2 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - )), - 3 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 1, - )), ), 'valueTypes' => array ( 0 => - PHPStan\Type\StringType::__set_state(array( + PHPStan\Type\UnionType::__set_state(array( + 'sortedTypes' => true, + 'types' => + array ( + 0 => + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, + )), + 1 => + PHPStan\Type\NullType::__set_state(array( + )), + ), )), 1 => - PHPStan\Type\StringType::__set_state(array( - )), - 2 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 3 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, + PHPStan\Type\UnionType::__set_state(array( + 'sortedTypes' => false, + 'types' => + array ( + 0 => + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, + )), + 1 => + PHPStan\Type\NullType::__set_state(array( + )), + ), )), ), 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT email, adaid FROM ada WHERE adaid = 1' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -3592,17 +2908,8 @@ 'value' => 0, )), 1 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 1, - )), - 2 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - )), - 3 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', + 'value' => 'eladaid', 'isClassString' => false, )), ), @@ -3613,19 +2920,29 @@ 'types' => array ( 0 => - PHPStan\Type\StringType::__set_state(array( + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -2147483648, + 'max' => 2147483647, )), 1 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, + PHPStan\Type\NullType::__set_state(array( )), ), )), + )), + ), + ), + 'SELECT email +FROM ada' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( - 0 => 2, + 0 => 1, ), 'keyTypes' => array ( @@ -3638,15 +2955,6 @@ PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( 'value' => 0, )), - 2 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - )), - 3 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 1, - )), ), 'valueTypes' => array ( @@ -3656,29 +2964,10 @@ 1 => PHPStan\Type\StringType::__set_state(array( )), - 2 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 3 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), ), 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT email, adaid FROM ada WHERE adaid = 2' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -3689,15 +2978,6 @@ 'value' => 0, )), 1 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 1, - )), - 2 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - )), - 3 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( 'value' => 'email', 'isClassString' => false, @@ -3705,24 +2985,21 @@ ), )), 'itemType' => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => false, - 'types' => - array ( - 0 => - PHPStan\Type\StringType::__set_state(array( - )), - 1 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - ), + PHPStan\Type\StringType::__set_state(array( )), + )), + ), + ), + 'SELECT email FROM ada' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( - 0 => 2, + 0 => 1, ), 'keyTypes' => array ( @@ -3735,15 +3012,6 @@ PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( 'value' => 0, )), - 2 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - )), - 3 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 1, - )), ), 'valueTypes' => array ( @@ -3751,31 +3019,12 @@ PHPStan\Type\StringType::__set_state(array( )), 1 => - PHPStan\Type\StringType::__set_state(array( - )), - 2 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 3 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, + PHPStan\Type\StringType::__set_state(array( )), ), 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT email, adaid FROM ada WHERE adaid = 3' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -3786,15 +3035,6 @@ 'value' => 0, )), 1 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 1, - )), - 2 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - )), - 3 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( 'value' => 'email', 'isClassString' => false, @@ -3802,24 +3042,15 @@ ), )), 'itemType' => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => false, - 'types' => - array ( - 0 => - PHPStan\Type\StringType::__set_state(array( - )), - 1 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - ), + PHPStan\Type\StringType::__set_state(array( )), + )), + 3 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( - 0 => 2, + 0 => 0, ), 'keyTypes' => array ( @@ -3828,112 +3059,40 @@ 'value' => 'email', 'isClassString' => false, )), - 1 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 0, - )), - 2 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - )), - 3 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 1, - )), ), 'valueTypes' => array ( 0 => PHPStan\Type\StringType::__set_state(array( )), - 1 => - PHPStan\Type\StringType::__set_state(array( - )), - 2 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 3 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), ), 'optionalKeys' => array ( ), + 'keyType' => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'email', + 'isClassString' => false, + )), + 'itemType' => + PHPStan\Type\StringType::__set_state(array( + )), )), ), ), - 'SELECT email, adaid FROM ada WHERE adaid = :adaid' => - array ( - 'result' => - array ( - 5 => NULL, - ), - ), - 'SELECT email, adaid FROM ada WHERE adaid = ?' => - array ( - 'result' => - array ( - 5 => NULL, - ), - ), - 'SELECT email, adaid FROM ada WHERE adaid = ? and email = ?' => + 'SELECT email adaid WHERE gesperrt freigabe1u1 FROM ada' => array ( 'result' => array ( 5 => NULL, ), ), - 'SELECT email, adaid FROM ada WHERE adaid IN(1,3)' => + 'SELECT email, adaid FROM ada' => array ( 'result' => array ( 5 => PHPStan\Type\Constant\ConstantArrayType::__set_state(array( - 'keyType' => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => true, - '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\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - )), - 3 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', - 'isClassString' => false, - )), - ), - )), - 'itemType' => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => false, - 'types' => - array ( - 0 => - PHPStan\Type\StringType::__set_state(array( - )), - 1 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - ), - )), 'allArrays' => NULL, 'nextAutoIndexes' => array ( @@ -3982,22 +3141,6 @@ 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT email, adaid FROM ada WHERE adaid=' => - array ( - 'result' => - array ( - 5 => NULL, - ), - ), - 'SELECT email, adaid FROM ada WHERE adaid=1' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -4038,10 +3181,13 @@ )), ), )), + )), + 3 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( - 0 => 2, + 0 => 0, ), 'keyTypes' => array ( @@ -4051,18 +3197,10 @@ 'isClassString' => false, )), 1 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 0, - )), - 2 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( 'value' => 'adaid', 'isClassString' => false, )), - 3 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 1, - )), ), 'valueTypes' => array ( @@ -4070,14 +3208,6 @@ PHPStan\Type\StringType::__set_state(array( )), 1 => - PHPStan\Type\StringType::__set_state(array( - )), - 2 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 3 => PHPStan\Type\IntegerRangeType::__set_state(array( 'min' => -32768, 'max' => 32767, @@ -4086,9 +3216,6 @@ 'optionalKeys' => array ( ), - )), - 3 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -4121,10 +3248,19 @@ )), ), )), + )), + ), + ), + 'SELECT email, adaid FROM ada LIMIT 1' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( - 0 => 0, + 0 => 2, ), 'keyTypes' => array ( @@ -4134,10 +3270,18 @@ 'isClassString' => false, )), 1 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 0, + )), + 2 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( 'value' => 'adaid', 'isClassString' => false, )), + 3 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 1, + )), ), 'valueTypes' => array ( @@ -4145,6 +3289,14 @@ PHPStan\Type\StringType::__set_state(array( )), 1 => + PHPStan\Type\StringType::__set_state(array( + )), + 2 => + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + 3 => PHPStan\Type\IntegerRangeType::__set_state(array( 'min' => -32768, 'max' => 32767, @@ -4153,15 +3305,6 @@ 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT email, adaid FROM ada WHERE email <=> \'\'' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -4202,6 +3345,15 @@ )), ), )), + )), + ), + ), + 'SELECT email, adaid FROM ada LIMIT 1, 10' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( @@ -4250,22 +3402,6 @@ 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT email, adaid FROM ada WHERE email <=> :email' => - array ( - 'result' => - array ( - 5 => NULL, - ), - ), - 'SELECT email, adaid FROM ada WHERE email = \'1970-01-01\'' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -4306,6 +3442,15 @@ )), ), )), + )), + ), + ), + 'SELECT email, adaid FROM ada WHERE adaid = \'1\'' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( @@ -4354,15 +3499,6 @@ 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT email, adaid FROM ada WHERE email = \'email@example.org\'' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -4403,6 +3539,15 @@ )), ), )), + )), + ), + ), + 'SELECT email, adaid FROM ada WHERE adaid = \'1\' and email = \'email@example.org\'' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( @@ -4451,15 +3596,6 @@ 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT email, adaid FROM ada WHERE email = \'test@example.org\'' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -4500,6 +3636,15 @@ )), ), )), + )), + ), + ), + 'SELECT email, adaid FROM ada WHERE adaid = 1' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( @@ -4548,15 +3693,6 @@ 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT email, adaid FROM ada WHERE email = \'webmaster@example.org\'' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -4597,6 +3733,15 @@ )), ), )), + )), + ), + ), + 'SELECT email, adaid FROM ada WHERE adaid = 2' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( @@ -4645,36 +3790,6 @@ 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT email, adaid FROM ada WHERE email = :email' => - array ( - 'result' => - array ( - 5 => NULL, - ), - ), - 'SELECT email, adaid FROM ada WHERE email = :test1 AND email = :test2' => - array ( - 'result' => - array ( - 5 => NULL, - ), - ), - 'SELECT email, adaid FROM ada WHERE email = ?' => - array ( - 'result' => - array ( - 5 => NULL, - ), - ), - 'SELECT email, adaid FROM ada WHERE email=\'foo\'' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -4715,6 +3830,15 @@ )), ), )), + )), + ), + ), + 'SELECT email, adaid FROM ada WHERE adaid = 3' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( @@ -4763,15 +3887,6 @@ 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT email, adaid FROM ada WHERE email=\'test@example.org\'' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -4812,6 +3927,36 @@ )), ), )), + )), + ), + ), + 'SELECT email, adaid FROM ada WHERE adaid = :adaid' => + array ( + 'result' => + array ( + 5 => NULL, + ), + ), + 'SELECT email, adaid FROM ada WHERE adaid = ?' => + array ( + 'result' => + array ( + 5 => NULL, + ), + ), + 'SELECT email, adaid FROM ada WHERE adaid = ? and email = ?' => + array ( + 'result' => + array ( + 5 => NULL, + ), + ), + 'SELECT email, adaid FROM ada WHERE adaid IN(1,3)' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( @@ -4860,15 +4005,6 @@ 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT email, adaid FROM ada WHERE gesperrt = \'1\'' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -4909,6 +4045,22 @@ )), ), )), + )), + ), + ), + 'SELECT email, adaid FROM ada WHERE adaid=' => + array ( + 'result' => + array ( + 5 => NULL, + ), + ), + 'SELECT email, adaid FROM ada WHERE adaid=1' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( @@ -4957,15 +4109,6 @@ 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT email, adaid, gesperrt, freigabe1u1 FROM ada' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -4980,33 +4123,15 @@ '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, )), - 5 => + 3 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( 'value' => 'email', 'isClassString' => false, )), - 6 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'freigabe1u1', - 'isClassString' => false, - )), - 7 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - )), ), )), 'itemType' => @@ -5024,10 +4149,13 @@ )), ), )), + )), + 3 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( - 0 => 4, + 0 => 0, ), 'keyTypes' => array ( @@ -5037,36 +4165,10 @@ 'isClassString' => false, )), 1 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 0, - )), - 2 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( 'value' => 'adaid', 'isClassString' => false, )), - 3 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 1, - )), - 4 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - )), - 5 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 2, - )), - 6 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'freigabe1u1', - 'isClassString' => false, - )), - 7 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 3, - )), ), 'valueTypes' => array ( @@ -5074,92 +4176,29 @@ PHPStan\Type\StringType::__set_state(array( )), 1 => - PHPStan\Type\StringType::__set_state(array( - )), - 2 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 3 => PHPStan\Type\IntegerRangeType::__set_state(array( 'min' => -32768, 'max' => 32767, )), - 4 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 5 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 6 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 7 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), ), 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT email, adaid, gesperrt, freigabe1u1 FROM ada LIMIT 1' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, - '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 => + 'types' => + array ( + 0 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( 'value' => 'adaid', 'isClassString' => false, )), - 5 => + 1 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( 'value' => 'email', 'isClassString' => false, )), - 6 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'freigabe1u1', - 'isClassString' => false, - )), - 7 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - )), ), )), 'itemType' => @@ -5177,10 +4216,19 @@ )), ), )), + )), + ), + ), + 'SELECT email, adaid FROM ada WHERE email <=> \'\'' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( - 0 => 4, + 0 => 2, ), 'keyTypes' => array ( @@ -5202,24 +4250,6 @@ PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( 'value' => 1, )), - 4 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - )), - 5 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 2, - )), - 6 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'freigabe1u1', - 'isClassString' => false, - )), - 7 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 3, - )), ), 'valueTypes' => array ( @@ -5239,39 +4269,10 @@ 'min' => -32768, 'max' => 32767, )), - 4 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 5 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 6 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 7 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), ), 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT email, adaid, gesperrt, freigabe1u1 FROM ada LIMIT 1, 10' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -5286,33 +4287,15 @@ '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, )), - 5 => + 3 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( 'value' => 'email', 'isClassString' => false, )), - 6 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'freigabe1u1', - 'isClassString' => false, - )), - 7 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - )), ), )), 'itemType' => @@ -5330,10 +4313,26 @@ )), ), )), + )), + ), + ), + 'SELECT email, adaid FROM ada WHERE email <=> :email' => + array ( + 'result' => + array ( + 5 => NULL, + ), + ), + 'SELECT email, adaid FROM ada WHERE email = \'1970-01-01\'' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( - 0 => 4, + 0 => 2, ), 'keyTypes' => array ( @@ -5355,24 +4354,6 @@ PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( 'value' => 1, )), - 4 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - )), - 5 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 2, - )), - 6 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'freigabe1u1', - 'isClassString' => false, - )), - 7 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 3, - )), ), 'valueTypes' => array ( @@ -5392,39 +4373,10 @@ 'min' => -32768, 'max' => 32767, )), - 4 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 5 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 6 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 7 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), ), 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT email, adaid, gesperrt, freigabe1u1 FROM ada WHERE adaid = \'1\'' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -5439,33 +4391,15 @@ '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, )), - 5 => + 3 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( 'value' => 'email', 'isClassString' => false, )), - 6 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'freigabe1u1', - 'isClassString' => false, - )), - 7 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - )), ), )), 'itemType' => @@ -5483,10 +4417,19 @@ )), ), )), + )), + ), + ), + 'SELECT email, adaid FROM ada WHERE email = \'email@example.org\'' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( - 0 => 4, + 0 => 2, ), 'keyTypes' => array ( @@ -5508,24 +4451,6 @@ PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( 'value' => 1, )), - 4 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - )), - 5 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 2, - )), - 6 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'freigabe1u1', - 'isClassString' => false, - )), - 7 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 3, - )), ), 'valueTypes' => array ( @@ -5545,39 +4470,10 @@ 'min' => -32768, 'max' => 32767, )), - 4 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 5 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 6 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 7 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), ), 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT email, adaid, gesperrt, freigabe1u1 FROM ada WHERE adaid = 1' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -5592,33 +4488,15 @@ '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, )), - 5 => + 3 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( 'value' => 'email', 'isClassString' => false, )), - 6 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'freigabe1u1', - 'isClassString' => false, - )), - 7 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - )), ), )), 'itemType' => @@ -5636,10 +4514,19 @@ )), ), )), + )), + ), + ), + 'SELECT email, adaid FROM ada WHERE email = \'test@example.org\'' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( - 0 => 4, + 0 => 2, ), 'keyTypes' => array ( @@ -5661,24 +4548,6 @@ PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( 'value' => 1, )), - 4 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - )), - 5 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 2, - )), - 6 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'freigabe1u1', - 'isClassString' => false, - )), - 7 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 3, - )), ), 'valueTypes' => array ( @@ -5698,46 +4567,10 @@ 'min' => -32768, 'max' => 32767, )), - 4 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 5 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 6 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 7 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), ), 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT email, adaid, gesperrt, freigabe1u1 FROM ada WHERE adaid = ?' => - array ( - 'result' => - array ( - 5 => NULL, - ), - ), - 'SELECT email, adaid, gesperrt, freigabe1u1 FROM ada WHERE adaid IN(1,3)' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -5752,33 +4585,15 @@ '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, )), - 5 => + 3 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( 'value' => 'email', 'isClassString' => false, )), - 6 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'freigabe1u1', - 'isClassString' => false, - )), - 7 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - )), ), )), 'itemType' => @@ -5796,10 +4611,19 @@ )), ), )), + )), + ), + ), + 'SELECT email, adaid FROM ada WHERE email = \'webmaster@example.org\'' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( - 0 => 4, + 0 => 2, ), 'keyTypes' => array ( @@ -5821,24 +4645,6 @@ PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( 'value' => 1, )), - 4 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - )), - 5 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 2, - )), - 6 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'freigabe1u1', - 'isClassString' => false, - )), - 7 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 3, - )), ), 'valueTypes' => array ( @@ -5858,39 +4664,10 @@ 'min' => -32768, 'max' => 32767, )), - 4 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 5 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 6 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 7 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), ), 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT email, adaid, gesperrt, freigabe1u1 FROM ada WHERE adaid=1' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -5905,33 +4682,15 @@ '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, )), - 5 => + 3 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( 'value' => 'email', 'isClassString' => false, )), - 6 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'freigabe1u1', - 'isClassString' => false, - )), - 7 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - )), ), )), 'itemType' => @@ -5949,10 +4708,40 @@ )), ), )), + )), + ), + ), + 'SELECT email, adaid FROM ada WHERE email = :email' => + array ( + 'result' => + array ( + 5 => NULL, + ), + ), + 'SELECT email, adaid FROM ada WHERE email = :test1 AND email = :test2' => + array ( + 'result' => + array ( + 5 => NULL, + ), + ), + 'SELECT email, adaid FROM ada WHERE email = ?' => + array ( + 'result' => + array ( + 5 => NULL, + ), + ), + 'SELECT email, adaid FROM ada WHERE email=\'foo\'' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( - 0 => 4, + 0 => 2, ), 'keyTypes' => array ( @@ -5974,24 +4763,6 @@ PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( 'value' => 1, )), - 4 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - )), - 5 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 2, - )), - 6 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'freigabe1u1', - 'isClassString' => false, - )), - 7 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 3, - )), ), 'valueTypes' => array ( @@ -6011,39 +4782,10 @@ 'min' => -32768, 'max' => 32767, )), - 4 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 5 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 6 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 7 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), ), 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT email, adaid, gesperrt, freigabe1u1 FROM ada WHERE email = \'1970-01-01\'' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -6058,33 +4800,15 @@ '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, )), - 5 => + 3 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( 'value' => 'email', 'isClassString' => false, )), - 6 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'freigabe1u1', - 'isClassString' => false, - )), - 7 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - )), ), )), 'itemType' => @@ -6102,10 +4826,19 @@ )), ), )), + )), + ), + ), + 'SELECT email, adaid FROM ada WHERE email=\'test@example.org\'' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( - 0 => 4, + 0 => 2, ), 'keyTypes' => array ( @@ -6127,24 +4860,6 @@ PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( 'value' => 1, )), - 4 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - )), - 5 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 2, - )), - 6 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'freigabe1u1', - 'isClassString' => false, - )), - 7 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 3, - )), ), 'valueTypes' => array ( @@ -6164,39 +4879,10 @@ 'min' => -32768, 'max' => 32767, )), - 4 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 5 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 6 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 7 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), ), 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT email, adaid, gesperrt, freigabe1u1 FROM ada WHERE email = \'test@example.org\'' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -6211,33 +4897,15 @@ '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, )), - 5 => + 3 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( 'value' => 'email', 'isClassString' => false, )), - 6 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'freigabe1u1', - 'isClassString' => false, - )), - 7 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - )), ), )), 'itemType' => @@ -6255,10 +4923,19 @@ )), ), )), + )), + ), + ), + 'SELECT email, adaid FROM ada WHERE gesperrt = \'1\'' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( - 0 => 4, + 0 => 2, ), 'keyTypes' => array ( @@ -6280,24 +4957,6 @@ PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( 'value' => 1, )), - 4 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - )), - 5 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 2, - )), - 6 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'freigabe1u1', - 'isClassString' => false, - )), - 7 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 3, - )), ), 'valueTypes' => array ( @@ -6317,39 +4976,10 @@ 'min' => -32768, 'max' => 32767, )), - 4 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 5 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 6 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 7 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), ), 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT email, adaid, gesperrt, freigabe1u1 FROM ada WHERE email=\'foo\'' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -6364,33 +4994,15 @@ '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, )), - 5 => + 3 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( 'value' => 'email', 'isClassString' => false, )), - 6 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'freigabe1u1', - 'isClassString' => false, - )), - 7 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - )), ), )), 'itemType' => @@ -6408,6 +5020,15 @@ )), ), )), + )), + ), + ), + 'SELECT email, adaid, gesperrt, freigabe1u1 FROM ada' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( @@ -6494,15 +5115,6 @@ 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT email, adaid, gesperrt, freigabe1u1 FROM ada WHERE gesperrt = \'1\'' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -6561,92 +5173,6 @@ )), ), )), - 'allArrays' => NULL, - 'nextAutoIndexes' => - array ( - 0 => 4, - ), - 'keyTypes' => - array ( - 0 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', - 'isClassString' => false, - )), - 1 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 0, - )), - 2 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - )), - 3 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 1, - )), - 4 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - )), - 5 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 2, - )), - 6 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'freigabe1u1', - 'isClassString' => false, - )), - 7 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 3, - )), - ), - 'valueTypes' => - array ( - 0 => - PHPStan\Type\StringType::__set_state(array( - )), - 1 => - PHPStan\Type\StringType::__set_state(array( - )), - 2 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 3 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 4 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 5 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 6 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 7 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - ), - 'optionalKeys' => - array ( - ), )), ), ), diff --git a/tests/default/data/bug372.php b/tests/default/data/bug372.php new file mode 100644 index 000000000..9ca3d4509 --- /dev/null +++ b/tests/default/data/bug372.php @@ -0,0 +1,31 @@ +query('SELECT email '."\r\n".'FROM ada'); + while ($row = $stmt->fetch()) { + assertType('string', $row['email']); + } + + $stmt = $pdo->query('SELECT adaid '."\n".'FROM ada'); + while ($row = $stmt->fetch()) { + assertType('int<-32768, 32767>', $row['adaid']); + } + + $stmt = $pdo->query( + ' + SELECT + adaid + FROM + ada'); // intentionally across separate lines + while ($row = $stmt->fetch()) { + assertType('int<-32768, 32767>', $row['adaid']); + } + } +} diff --git a/tests/defaultFetchAssoc/config/.phpstan-dba-mysqli.cache b/tests/defaultFetchAssoc/config/.phpstan-dba-mysqli.cache index 27088460f..1e2067686 100644 --- a/tests/defaultFetchAssoc/config/.phpstan-dba-mysqli.cache +++ b/tests/defaultFetchAssoc/config/.phpstan-dba-mysqli.cache @@ -1,5 +1,5 @@ 'v6-schema-hash', + 'schemaVersion' => 'v7-normalized-eol', 'schemaHash' => NULL, 'records' => array ( @@ -9,46 +9,6 @@ array ( 5 => PHPStan\Type\Constant\ConstantArrayType::__set_state(array( - 'keyType' => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => true, - '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\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - )), - 3 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', - 'isClassString' => false, - )), - ), - )), - 'itemType' => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => false, - 'types' => - array ( - 0 => - PHPStan\Type\StringType::__set_state(array( - )), - 1 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - ), - )), 'allArrays' => NULL, 'nextAutoIndexes' => array ( @@ -97,15 +57,6 @@ 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT email, adaid, gesperrt, freigabe1u1 FROM ada' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -120,33 +71,15 @@ '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, )), - 5 => + 3 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( 'value' => 'email', 'isClassString' => false, )), - 6 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'freigabe1u1', - 'isClassString' => false, - )), - 7 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - )), ), )), 'itemType' => @@ -164,92 +97,6 @@ )), ), )), - 'allArrays' => NULL, - 'nextAutoIndexes' => - array ( - 0 => 4, - ), - 'keyTypes' => - array ( - 0 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', - 'isClassString' => false, - )), - 1 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 0, - )), - 2 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - )), - 3 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 1, - )), - 4 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - )), - 5 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 2, - )), - 6 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'freigabe1u1', - 'isClassString' => false, - )), - 7 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 3, - )), - ), - 'valueTypes' => - array ( - 0 => - PHPStan\Type\StringType::__set_state(array( - )), - 1 => - PHPStan\Type\StringType::__set_state(array( - )), - 2 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 3 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 4 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 5 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 6 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 7 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - ), - 'optionalKeys' => - array ( - ), )), ), ), diff --git a/tests/defaultFetchAssoc/config/.phpstan-dba-pdo.cache b/tests/defaultFetchAssoc/config/.phpstan-dba-pdo.cache index 27088460f..1e2067686 100644 --- a/tests/defaultFetchAssoc/config/.phpstan-dba-pdo.cache +++ b/tests/defaultFetchAssoc/config/.phpstan-dba-pdo.cache @@ -1,5 +1,5 @@ 'v6-schema-hash', + 'schemaVersion' => 'v7-normalized-eol', 'schemaHash' => NULL, 'records' => array ( @@ -9,46 +9,6 @@ array ( 5 => PHPStan\Type\Constant\ConstantArrayType::__set_state(array( - 'keyType' => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => true, - '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\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - )), - 3 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', - 'isClassString' => false, - )), - ), - )), - 'itemType' => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => false, - 'types' => - array ( - 0 => - PHPStan\Type\StringType::__set_state(array( - )), - 1 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - ), - )), 'allArrays' => NULL, 'nextAutoIndexes' => array ( @@ -97,15 +57,6 @@ 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT email, adaid, gesperrt, freigabe1u1 FROM ada' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -120,33 +71,15 @@ '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, )), - 5 => + 3 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( 'value' => 'email', 'isClassString' => false, )), - 6 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'freigabe1u1', - 'isClassString' => false, - )), - 7 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - )), ), )), 'itemType' => @@ -164,92 +97,6 @@ )), ), )), - 'allArrays' => NULL, - 'nextAutoIndexes' => - array ( - 0 => 4, - ), - 'keyTypes' => - array ( - 0 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', - 'isClassString' => false, - )), - 1 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 0, - )), - 2 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - )), - 3 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 1, - )), - 4 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - )), - 5 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 2, - )), - 6 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'freigabe1u1', - 'isClassString' => false, - )), - 7 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 3, - )), - ), - 'valueTypes' => - array ( - 0 => - PHPStan\Type\StringType::__set_state(array( - )), - 1 => - PHPStan\Type\StringType::__set_state(array( - )), - 2 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 3 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 4 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 5 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 6 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 7 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - ), - 'optionalKeys' => - array ( - ), )), ), ), diff --git a/tests/defaultFetchAssoc/config/.phpunit-phpstan-dba-mysqli.cache b/tests/defaultFetchAssoc/config/.phpunit-phpstan-dba-mysqli.cache index 2e2fd8640..1e2067686 100644 --- a/tests/defaultFetchAssoc/config/.phpunit-phpstan-dba-mysqli.cache +++ b/tests/defaultFetchAssoc/config/.phpunit-phpstan-dba-mysqli.cache @@ -1,5 +1,5 @@ 'v6-schema-hash', + 'schemaVersion' => 'v7-normalized-eol', 'schemaHash' => NULL, 'records' => array ( @@ -100,159 +100,6 @@ )), ), ), - 'SELECT email, adaid, gesperrt, freigabe1u1 FROM ada' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( - 'allArrays' => NULL, - 'nextAutoIndexes' => - array ( - 0 => 4, - ), - 'keyTypes' => - array ( - 0 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', - 'isClassString' => false, - )), - 1 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 0, - )), - 2 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - )), - 3 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 1, - )), - 4 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - )), - 5 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 2, - )), - 6 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'freigabe1u1', - 'isClassString' => false, - )), - 7 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 3, - )), - ), - 'valueTypes' => - array ( - 0 => - PHPStan\Type\StringType::__set_state(array( - )), - 1 => - PHPStan\Type\StringType::__set_state(array( - )), - 2 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 3 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 4 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 5 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 6 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 7 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - ), - 'optionalKeys' => - array ( - ), - 'keyType' => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => true, - '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, - )), - 5 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', - 'isClassString' => false, - )), - 6 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'freigabe1u1', - 'isClassString' => false, - )), - 7 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - )), - ), - )), - 'itemType' => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => false, - 'types' => - array ( - 0 => - PHPStan\Type\StringType::__set_state(array( - )), - 1 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - ), - )), - )), - ), - ), ), 'runtimeConfig' => array ( diff --git a/tests/defaultFetchAssoc/config/.phpunit-phpstan-dba-pdo.cache b/tests/defaultFetchAssoc/config/.phpunit-phpstan-dba-pdo.cache index 27088460f..1e2067686 100644 --- a/tests/defaultFetchAssoc/config/.phpunit-phpstan-dba-pdo.cache +++ b/tests/defaultFetchAssoc/config/.phpunit-phpstan-dba-pdo.cache @@ -1,5 +1,5 @@ 'v6-schema-hash', + 'schemaVersion' => 'v7-normalized-eol', 'schemaHash' => NULL, 'records' => array ( @@ -9,46 +9,6 @@ array ( 5 => PHPStan\Type\Constant\ConstantArrayType::__set_state(array( - 'keyType' => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => true, - '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\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - )), - 3 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', - 'isClassString' => false, - )), - ), - )), - 'itemType' => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => false, - 'types' => - array ( - 0 => - PHPStan\Type\StringType::__set_state(array( - )), - 1 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - ), - )), 'allArrays' => NULL, 'nextAutoIndexes' => array ( @@ -97,15 +57,6 @@ 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT email, adaid, gesperrt, freigabe1u1 FROM ada' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -120,33 +71,15 @@ '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, )), - 5 => + 3 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( 'value' => 'email', 'isClassString' => false, )), - 6 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'freigabe1u1', - 'isClassString' => false, - )), - 7 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - )), ), )), 'itemType' => @@ -164,92 +97,6 @@ )), ), )), - 'allArrays' => NULL, - 'nextAutoIndexes' => - array ( - 0 => 4, - ), - 'keyTypes' => - array ( - 0 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', - 'isClassString' => false, - )), - 1 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 0, - )), - 2 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - )), - 3 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 1, - )), - 4 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - )), - 5 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 2, - )), - 6 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'freigabe1u1', - 'isClassString' => false, - )), - 7 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 3, - )), - ), - 'valueTypes' => - array ( - 0 => - PHPStan\Type\StringType::__set_state(array( - )), - 1 => - PHPStan\Type\StringType::__set_state(array( - )), - 2 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 3 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 4 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 5 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 6 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 7 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - ), - 'optionalKeys' => - array ( - ), )), ), ), diff --git a/tests/defaultFetchNumeric/config/.phpstan-dba-mysqli.cache b/tests/defaultFetchNumeric/config/.phpstan-dba-mysqli.cache index 27088460f..1e2067686 100644 --- a/tests/defaultFetchNumeric/config/.phpstan-dba-mysqli.cache +++ b/tests/defaultFetchNumeric/config/.phpstan-dba-mysqli.cache @@ -1,5 +1,5 @@ 'v6-schema-hash', + 'schemaVersion' => 'v7-normalized-eol', 'schemaHash' => NULL, 'records' => array ( @@ -9,46 +9,6 @@ array ( 5 => PHPStan\Type\Constant\ConstantArrayType::__set_state(array( - 'keyType' => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => true, - '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\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - )), - 3 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', - 'isClassString' => false, - )), - ), - )), - 'itemType' => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => false, - 'types' => - array ( - 0 => - PHPStan\Type\StringType::__set_state(array( - )), - 1 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - ), - )), 'allArrays' => NULL, 'nextAutoIndexes' => array ( @@ -97,15 +57,6 @@ 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT email, adaid, gesperrt, freigabe1u1 FROM ada' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -120,33 +71,15 @@ '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, )), - 5 => + 3 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( 'value' => 'email', 'isClassString' => false, )), - 6 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'freigabe1u1', - 'isClassString' => false, - )), - 7 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - )), ), )), 'itemType' => @@ -164,92 +97,6 @@ )), ), )), - 'allArrays' => NULL, - 'nextAutoIndexes' => - array ( - 0 => 4, - ), - 'keyTypes' => - array ( - 0 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', - 'isClassString' => false, - )), - 1 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 0, - )), - 2 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - )), - 3 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 1, - )), - 4 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - )), - 5 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 2, - )), - 6 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'freigabe1u1', - 'isClassString' => false, - )), - 7 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 3, - )), - ), - 'valueTypes' => - array ( - 0 => - PHPStan\Type\StringType::__set_state(array( - )), - 1 => - PHPStan\Type\StringType::__set_state(array( - )), - 2 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 3 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 4 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 5 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 6 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 7 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - ), - 'optionalKeys' => - array ( - ), )), ), ), diff --git a/tests/defaultFetchNumeric/config/.phpstan-dba-pdo.cache b/tests/defaultFetchNumeric/config/.phpstan-dba-pdo.cache index 27088460f..1e2067686 100644 --- a/tests/defaultFetchNumeric/config/.phpstan-dba-pdo.cache +++ b/tests/defaultFetchNumeric/config/.phpstan-dba-pdo.cache @@ -1,5 +1,5 @@ 'v6-schema-hash', + 'schemaVersion' => 'v7-normalized-eol', 'schemaHash' => NULL, 'records' => array ( @@ -9,46 +9,6 @@ array ( 5 => PHPStan\Type\Constant\ConstantArrayType::__set_state(array( - 'keyType' => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => true, - '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\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - )), - 3 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', - 'isClassString' => false, - )), - ), - )), - 'itemType' => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => false, - 'types' => - array ( - 0 => - PHPStan\Type\StringType::__set_state(array( - )), - 1 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - ), - )), 'allArrays' => NULL, 'nextAutoIndexes' => array ( @@ -97,15 +57,6 @@ 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT email, adaid, gesperrt, freigabe1u1 FROM ada' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -120,33 +71,15 @@ '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, )), - 5 => + 3 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( 'value' => 'email', 'isClassString' => false, )), - 6 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'freigabe1u1', - 'isClassString' => false, - )), - 7 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - )), ), )), 'itemType' => @@ -164,92 +97,6 @@ )), ), )), - 'allArrays' => NULL, - 'nextAutoIndexes' => - array ( - 0 => 4, - ), - 'keyTypes' => - array ( - 0 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', - 'isClassString' => false, - )), - 1 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 0, - )), - 2 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - )), - 3 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 1, - )), - 4 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - )), - 5 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 2, - )), - 6 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'freigabe1u1', - 'isClassString' => false, - )), - 7 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 3, - )), - ), - 'valueTypes' => - array ( - 0 => - PHPStan\Type\StringType::__set_state(array( - )), - 1 => - PHPStan\Type\StringType::__set_state(array( - )), - 2 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 3 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 4 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 5 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 6 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 7 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - ), - 'optionalKeys' => - array ( - ), )), ), ), diff --git a/tests/defaultFetchNumeric/config/.phpunit-phpstan-dba-mysqli.cache b/tests/defaultFetchNumeric/config/.phpunit-phpstan-dba-mysqli.cache index 2e2fd8640..1e2067686 100644 --- a/tests/defaultFetchNumeric/config/.phpunit-phpstan-dba-mysqli.cache +++ b/tests/defaultFetchNumeric/config/.phpunit-phpstan-dba-mysqli.cache @@ -1,5 +1,5 @@ 'v6-schema-hash', + 'schemaVersion' => 'v7-normalized-eol', 'schemaHash' => NULL, 'records' => array ( @@ -100,159 +100,6 @@ )), ), ), - 'SELECT email, adaid, gesperrt, freigabe1u1 FROM ada' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( - 'allArrays' => NULL, - 'nextAutoIndexes' => - array ( - 0 => 4, - ), - 'keyTypes' => - array ( - 0 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', - 'isClassString' => false, - )), - 1 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 0, - )), - 2 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - )), - 3 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 1, - )), - 4 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - )), - 5 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 2, - )), - 6 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'freigabe1u1', - 'isClassString' => false, - )), - 7 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 3, - )), - ), - 'valueTypes' => - array ( - 0 => - PHPStan\Type\StringType::__set_state(array( - )), - 1 => - PHPStan\Type\StringType::__set_state(array( - )), - 2 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 3 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 4 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 5 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 6 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 7 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - ), - 'optionalKeys' => - array ( - ), - 'keyType' => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => true, - '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, - )), - 5 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', - 'isClassString' => false, - )), - 6 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'freigabe1u1', - 'isClassString' => false, - )), - 7 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - )), - ), - )), - 'itemType' => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => false, - 'types' => - array ( - 0 => - PHPStan\Type\StringType::__set_state(array( - )), - 1 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - ), - )), - )), - ), - ), ), 'runtimeConfig' => array ( diff --git a/tests/defaultFetchNumeric/config/.phpunit-phpstan-dba-pdo.cache b/tests/defaultFetchNumeric/config/.phpunit-phpstan-dba-pdo.cache index 27088460f..1e2067686 100644 --- a/tests/defaultFetchNumeric/config/.phpunit-phpstan-dba-pdo.cache +++ b/tests/defaultFetchNumeric/config/.phpunit-phpstan-dba-pdo.cache @@ -1,5 +1,5 @@ 'v6-schema-hash', + 'schemaVersion' => 'v7-normalized-eol', 'schemaHash' => NULL, 'records' => array ( @@ -9,46 +9,6 @@ array ( 5 => PHPStan\Type\Constant\ConstantArrayType::__set_state(array( - 'keyType' => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => true, - '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\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - )), - 3 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', - 'isClassString' => false, - )), - ), - )), - 'itemType' => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => false, - 'types' => - array ( - 0 => - PHPStan\Type\StringType::__set_state(array( - )), - 1 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - ), - )), 'allArrays' => NULL, 'nextAutoIndexes' => array ( @@ -97,15 +57,6 @@ 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT email, adaid, gesperrt, freigabe1u1 FROM ada' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -120,33 +71,15 @@ '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, )), - 5 => + 3 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( 'value' => 'email', 'isClassString' => false, )), - 6 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'freigabe1u1', - 'isClassString' => false, - )), - 7 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - )), ), )), 'itemType' => @@ -164,92 +97,6 @@ )), ), )), - 'allArrays' => NULL, - 'nextAutoIndexes' => - array ( - 0 => 4, - ), - 'keyTypes' => - array ( - 0 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', - 'isClassString' => false, - )), - 1 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 0, - )), - 2 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - )), - 3 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 1, - )), - 4 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - )), - 5 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 2, - )), - 6 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'freigabe1u1', - 'isClassString' => false, - )), - 7 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 3, - )), - ), - 'valueTypes' => - array ( - 0 => - PHPStan\Type\StringType::__set_state(array( - )), - 1 => - PHPStan\Type\StringType::__set_state(array( - )), - 2 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 3 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - 4 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 5 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 6 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 7 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - ), - 'optionalKeys' => - array ( - ), )), ), ), diff --git a/tests/rules/config/.phpstan-dba-mysqli.cache b/tests/rules/config/.phpstan-dba-mysqli.cache index bba500b4f..1b7a311e8 100644 --- a/tests/rules/config/.phpstan-dba-mysqli.cache +++ b/tests/rules/config/.phpstan-dba-mysqli.cache @@ -1,5 +1,5 @@ 'v6-schema-hash', + 'schemaVersion' => 'v7-normalized-eol', 'schemaHash' => NULL, 'records' => array ( @@ -79,27 +79,6 @@ array ( 5 => PHPStan\Type\Constant\ConstantArrayType::__set_state(array( - 'keyType' => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => true, - 'types' => - array ( - 0 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 0, - )), - 1 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - )), - ), - )), - 'itemType' => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), 'allArrays' => NULL, 'nextAutoIndexes' => array ( @@ -133,6 +112,27 @@ 'optionalKeys' => array ( ), + 'keyType' => + PHPStan\Type\UnionType::__set_state(array( + 'sortedTypes' => true, + 'types' => + array ( + 0 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 0, + )), + 1 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'adaid', + 'isClassString' => false, + )), + ), + )), + 'itemType' => + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), )), ), ), @@ -163,25 +163,6 @@ array ( 5 => PHPStan\Type\Constant\ConstantArrayType::__set_state(array( - 'keyType' => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => true, - 'types' => - array ( - 0 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 0, - )), - 1 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', - 'isClassString' => false, - )), - ), - )), - 'itemType' => - PHPStan\Type\StringType::__set_state(array( - )), 'allArrays' => NULL, 'nextAutoIndexes' => array ( @@ -211,6 +192,25 @@ 'optionalKeys' => array ( ), + 'keyType' => + PHPStan\Type\UnionType::__set_state(array( + 'sortedTypes' => true, + 'types' => + array ( + 0 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 0, + )), + 1 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'email', + 'isClassString' => false, + )), + ), + )), + 'itemType' => + PHPStan\Type\StringType::__set_state(array( + )), )), ), ), @@ -219,7 +219,6 @@ 'result' => array ( 5 => NULL, - 4 => NULL, 3 => NULL, ), ), @@ -243,46 +242,6 @@ array ( 5 => PHPStan\Type\Constant\ConstantArrayType::__set_state(array( - 'keyType' => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => true, - '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\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - )), - 3 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', - 'isClassString' => false, - )), - ), - )), - 'itemType' => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => false, - 'types' => - array ( - 0 => - PHPStan\Type\StringType::__set_state(array( - )), - 1 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - ), - )), 'allArrays' => NULL, 'nextAutoIndexes' => array ( @@ -331,6 +290,46 @@ 'optionalKeys' => array ( ), + 'keyType' => + PHPStan\Type\UnionType::__set_state(array( + 'sortedTypes' => true, + '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\ConstantStringType::__set_state(array( + 'value' => 'adaid', + 'isClassString' => false, + )), + 3 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'email', + 'isClassString' => false, + )), + ), + )), + 'itemType' => + PHPStan\Type\UnionType::__set_state(array( + 'sortedTypes' => false, + 'types' => + array ( + 0 => + PHPStan\Type\StringType::__set_state(array( + )), + 1 => + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + ), + )), )), ), ), @@ -382,46 +381,6 @@ array ( 5 => PHPStan\Type\Constant\ConstantArrayType::__set_state(array( - 'keyType' => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => true, - '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\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - )), - 3 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', - 'isClassString' => false, - )), - ), - )), - 'itemType' => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => false, - 'types' => - array ( - 0 => - PHPStan\Type\StringType::__set_state(array( - )), - 1 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - ), - )), 'allArrays' => NULL, 'nextAutoIndexes' => array ( @@ -470,29 +429,6 @@ 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT email, adaid GROUP BY xy FROM ada LIMIT 1' => - array ( - 'result' => - array ( - 5 => NULL, - ), - ), - 'SELECT email, adaid GROUP BY xy FROM ada WHERE email=\'my_other_table\' LIMIT 1' => - array ( - 'result' => - array ( - 5 => NULL, - ), - ), - 'SELECT email, adaid, gesperrt, freigabe1u1 FROM ada' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -507,33 +443,15 @@ '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, )), - 5 => + 3 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( 'value' => 'email', 'isClassString' => false, )), - 6 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'freigabe1u1', - 'isClassString' => false, - )), - 7 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - )), ), )), 'itemType' => @@ -551,10 +469,33 @@ )), ), )), + )), + ), + ), + 'SELECT email, adaid GROUP BY xy FROM ada LIMIT 1' => + array ( + 'result' => + array ( + 5 => NULL, + ), + ), + 'SELECT email, adaid GROUP BY xy FROM ada WHERE email=\'my_other_table\' LIMIT 1' => + array ( + 'result' => + array ( + 5 => NULL, + ), + ), + 'SELECT email, adaid, gesperrt, freigabe1u1 FROM ada' => + array ( + 'result' => + array ( + 3 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( - 0 => 4, + 0 => 0, ), 'keyTypes' => array ( @@ -564,71 +505,37 @@ 'isClassString' => false, )), 1 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 0, - )), - 2 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( 'value' => 'adaid', 'isClassString' => false, )), - 3 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 1, - )), - 4 => + 2 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( 'value' => 'gesperrt', 'isClassString' => false, )), - 5 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 2, - )), - 6 => + 3 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( 'value' => 'freigabe1u1', 'isClassString' => false, )), - 7 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 3, - )), ), 'valueTypes' => array ( - 0 => - PHPStan\Type\StringType::__set_state(array( - )), - 1 => - PHPStan\Type\StringType::__set_state(array( - )), - 2 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, + 0 => + PHPStan\Type\StringType::__set_state(array( )), - 3 => + 1 => PHPStan\Type\IntegerRangeType::__set_state(array( 'min' => -32768, 'max' => 32767, )), - 4 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 5 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 6 => + 2 => PHPStan\Type\IntegerRangeType::__set_state(array( 'min' => -128, 'max' => 127, )), - 7 => + 3 => PHPStan\Type\IntegerRangeType::__set_state(array( 'min' => -128, 'max' => 127, @@ -637,9 +544,6 @@ 'optionalKeys' => array ( ), - )), - 3 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -682,10 +586,13 @@ )), ), )), + )), + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( - 0 => 0, + 0 => 4, ), 'keyTypes' => array ( @@ -695,20 +602,36 @@ 'isClassString' => false, )), 1 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 0, + )), + 2 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( 'value' => 'adaid', 'isClassString' => false, )), - 2 => + 3 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 1, + )), + 4 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( 'value' => 'gesperrt', 'isClassString' => false, )), - 3 => + 5 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 2, + )), + 6 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( 'value' => 'freigabe1u1', 'isClassString' => false, )), + 7 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 3, + )), ), 'valueTypes' => array ( @@ -716,16 +639,34 @@ PHPStan\Type\StringType::__set_state(array( )), 1 => + PHPStan\Type\StringType::__set_state(array( + )), + 2 => PHPStan\Type\IntegerRangeType::__set_state(array( 'min' => -32768, 'max' => 32767, )), - 2 => + 3 => + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + 4 => PHPStan\Type\IntegerRangeType::__set_state(array( 'min' => -128, 'max' => 127, )), - 3 => + 5 => + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -128, + 'max' => 127, + )), + 6 => + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -128, + 'max' => 127, + )), + 7 => PHPStan\Type\IntegerRangeType::__set_state(array( 'min' => -128, 'max' => 127, @@ -734,15 +675,6 @@ 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT email, adaid, gesperrt, freigabe1u1 FROM ada LIMIT 1' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -801,6 +733,15 @@ )), ), )), + )), + ), + ), + 'SELECT email, adaid, gesperrt, freigabe1u1 FROM ada LIMIT 1' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( @@ -887,15 +828,6 @@ 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT email, adaid, gesperrt, freigabe1u1 FROM ada WHERE email=\'my_other_table\' LIMIT 1' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -954,6 +886,15 @@ )), ), )), + )), + ), + ), + 'SELECT email, adaid, gesperrt, freigabe1u1 FROM ada WHERE email=\'my_other_table\' LIMIT 1' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( @@ -1040,15 +981,6 @@ 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT email, adaid, gesperrt, freigabe1u1 FROM ada WHERE adaid = \'1\'' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -1107,6 +1039,15 @@ )), ), )), + )), + ), + ), + 'SELECT email, adaid, gesperrt, freigabe1u1 FROM ada WHERE adaid = \'1\'' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( @@ -1193,44 +1134,6 @@ 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT email, adaid, gesperrt, freigabe1u1 FROM ada WHERE adaid = :adaid' => - array ( - 'result' => - array ( - 5 => NULL, - ), - ), - 'SELECT email, adaid, gesperrt, freigabe1u1 FROM ada WHERE adaid = :asdsa' => - array ( - 'result' => - array ( - 5 => NULL, - ), - ), - 'SELECT email, adaid, gesperrt, freigabe1u1 FROM ada WHERE adaid=?' => - array ( - 'result' => - array ( - 5 => NULL, - ), - ), - 'SELECT email, adaid, gesperrt, freigabe1u1 FROM ada WHERE asdsa=1' => - array ( - 'result' => - array ( - 3 => NULL, - 5 => NULL, - ), - ), - 'SELECT email, adaid, gesperrt, freigabe1u1 FROM ada WHERE gesperrt=1' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -1289,6 +1192,44 @@ )), ), )), + )), + ), + ), + 'SELECT email, adaid, gesperrt, freigabe1u1 FROM ada WHERE adaid = :adaid' => + array ( + 'result' => + array ( + 5 => NULL, + ), + ), + 'SELECT email, adaid, gesperrt, freigabe1u1 FROM ada WHERE adaid = :asdsa' => + array ( + 'result' => + array ( + 5 => NULL, + ), + ), + 'SELECT email, adaid, gesperrt, freigabe1u1 FROM ada WHERE adaid=?' => + array ( + 'result' => + array ( + 5 => NULL, + ), + ), + 'SELECT email, adaid, gesperrt, freigabe1u1 FROM ada WHERE asdsa=1' => + array ( + 'result' => + array ( + 3 => NULL, + 5 => NULL, + ), + ), + 'SELECT email, adaid, gesperrt, freigabe1u1 FROM ada WHERE gesperrt=1' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( @@ -1375,6 +1316,64 @@ 'optionalKeys' => array ( ), + 'keyType' => + PHPStan\Type\UnionType::__set_state(array( + 'sortedTypes' => true, + '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, + )), + 5 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'email', + 'isClassString' => false, + )), + 6 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'freigabe1u1', + 'isClassString' => false, + )), + 7 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'gesperrt', + 'isClassString' => false, + )), + ), + )), + 'itemType' => + PHPStan\Type\UnionType::__set_state(array( + 'sortedTypes' => false, + 'types' => + array ( + 0 => + PHPStan\Type\StringType::__set_state(array( + )), + 1 => + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + ), + )), )), ), ), diff --git a/tests/rules/config/.phpstan-dba-pdo.cache b/tests/rules/config/.phpstan-dba-pdo.cache index bba500b4f..1b7a311e8 100644 --- a/tests/rules/config/.phpstan-dba-pdo.cache +++ b/tests/rules/config/.phpstan-dba-pdo.cache @@ -1,5 +1,5 @@ 'v6-schema-hash', + 'schemaVersion' => 'v7-normalized-eol', 'schemaHash' => NULL, 'records' => array ( @@ -79,27 +79,6 @@ array ( 5 => PHPStan\Type\Constant\ConstantArrayType::__set_state(array( - 'keyType' => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => true, - 'types' => - array ( - 0 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 0, - )), - 1 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - )), - ), - )), - 'itemType' => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), 'allArrays' => NULL, 'nextAutoIndexes' => array ( @@ -133,6 +112,27 @@ 'optionalKeys' => array ( ), + 'keyType' => + PHPStan\Type\UnionType::__set_state(array( + 'sortedTypes' => true, + 'types' => + array ( + 0 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 0, + )), + 1 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'adaid', + 'isClassString' => false, + )), + ), + )), + 'itemType' => + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), )), ), ), @@ -163,25 +163,6 @@ array ( 5 => PHPStan\Type\Constant\ConstantArrayType::__set_state(array( - 'keyType' => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => true, - 'types' => - array ( - 0 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 0, - )), - 1 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', - 'isClassString' => false, - )), - ), - )), - 'itemType' => - PHPStan\Type\StringType::__set_state(array( - )), 'allArrays' => NULL, 'nextAutoIndexes' => array ( @@ -211,6 +192,25 @@ 'optionalKeys' => array ( ), + 'keyType' => + PHPStan\Type\UnionType::__set_state(array( + 'sortedTypes' => true, + 'types' => + array ( + 0 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 0, + )), + 1 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'email', + 'isClassString' => false, + )), + ), + )), + 'itemType' => + PHPStan\Type\StringType::__set_state(array( + )), )), ), ), @@ -219,7 +219,6 @@ 'result' => array ( 5 => NULL, - 4 => NULL, 3 => NULL, ), ), @@ -243,46 +242,6 @@ array ( 5 => PHPStan\Type\Constant\ConstantArrayType::__set_state(array( - 'keyType' => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => true, - '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\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - )), - 3 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', - 'isClassString' => false, - )), - ), - )), - 'itemType' => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => false, - 'types' => - array ( - 0 => - PHPStan\Type\StringType::__set_state(array( - )), - 1 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - ), - )), 'allArrays' => NULL, 'nextAutoIndexes' => array ( @@ -331,6 +290,46 @@ 'optionalKeys' => array ( ), + 'keyType' => + PHPStan\Type\UnionType::__set_state(array( + 'sortedTypes' => true, + '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\ConstantStringType::__set_state(array( + 'value' => 'adaid', + 'isClassString' => false, + )), + 3 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'email', + 'isClassString' => false, + )), + ), + )), + 'itemType' => + PHPStan\Type\UnionType::__set_state(array( + 'sortedTypes' => false, + 'types' => + array ( + 0 => + PHPStan\Type\StringType::__set_state(array( + )), + 1 => + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + ), + )), )), ), ), @@ -382,46 +381,6 @@ array ( 5 => PHPStan\Type\Constant\ConstantArrayType::__set_state(array( - 'keyType' => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => true, - '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\ConstantStringType::__set_state(array( - 'value' => 'adaid', - 'isClassString' => false, - )), - 3 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', - 'isClassString' => false, - )), - ), - )), - 'itemType' => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => false, - 'types' => - array ( - 0 => - PHPStan\Type\StringType::__set_state(array( - )), - 1 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, - )), - ), - )), 'allArrays' => NULL, 'nextAutoIndexes' => array ( @@ -470,29 +429,6 @@ 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT email, adaid GROUP BY xy FROM ada LIMIT 1' => - array ( - 'result' => - array ( - 5 => NULL, - ), - ), - 'SELECT email, adaid GROUP BY xy FROM ada WHERE email=\'my_other_table\' LIMIT 1' => - array ( - 'result' => - array ( - 5 => NULL, - ), - ), - 'SELECT email, adaid, gesperrt, freigabe1u1 FROM ada' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -507,33 +443,15 @@ '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, )), - 5 => + 3 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( 'value' => 'email', 'isClassString' => false, )), - 6 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'freigabe1u1', - 'isClassString' => false, - )), - 7 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - )), ), )), 'itemType' => @@ -551,10 +469,33 @@ )), ), )), + )), + ), + ), + 'SELECT email, adaid GROUP BY xy FROM ada LIMIT 1' => + array ( + 'result' => + array ( + 5 => NULL, + ), + ), + 'SELECT email, adaid GROUP BY xy FROM ada WHERE email=\'my_other_table\' LIMIT 1' => + array ( + 'result' => + array ( + 5 => NULL, + ), + ), + 'SELECT email, adaid, gesperrt, freigabe1u1 FROM ada' => + array ( + 'result' => + array ( + 3 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( - 0 => 4, + 0 => 0, ), 'keyTypes' => array ( @@ -564,71 +505,37 @@ 'isClassString' => false, )), 1 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 0, - )), - 2 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( 'value' => 'adaid', 'isClassString' => false, )), - 3 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 1, - )), - 4 => + 2 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( 'value' => 'gesperrt', 'isClassString' => false, )), - 5 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 2, - )), - 6 => + 3 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( 'value' => 'freigabe1u1', 'isClassString' => false, )), - 7 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 3, - )), ), 'valueTypes' => array ( - 0 => - PHPStan\Type\StringType::__set_state(array( - )), - 1 => - PHPStan\Type\StringType::__set_state(array( - )), - 2 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -32768, - 'max' => 32767, + 0 => + PHPStan\Type\StringType::__set_state(array( )), - 3 => + 1 => PHPStan\Type\IntegerRangeType::__set_state(array( 'min' => -32768, 'max' => 32767, )), - 4 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 5 => - PHPStan\Type\IntegerRangeType::__set_state(array( - 'min' => -128, - 'max' => 127, - )), - 6 => + 2 => PHPStan\Type\IntegerRangeType::__set_state(array( 'min' => -128, 'max' => 127, )), - 7 => + 3 => PHPStan\Type\IntegerRangeType::__set_state(array( 'min' => -128, 'max' => 127, @@ -637,9 +544,6 @@ 'optionalKeys' => array ( ), - )), - 3 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -682,10 +586,13 @@ )), ), )), + )), + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( - 0 => 0, + 0 => 4, ), 'keyTypes' => array ( @@ -695,20 +602,36 @@ 'isClassString' => false, )), 1 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 0, + )), + 2 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( 'value' => 'adaid', 'isClassString' => false, )), - 2 => + 3 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 1, + )), + 4 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( 'value' => 'gesperrt', 'isClassString' => false, )), - 3 => + 5 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 2, + )), + 6 => PHPStan\Type\Constant\ConstantStringType::__set_state(array( 'value' => 'freigabe1u1', 'isClassString' => false, )), + 7 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 3, + )), ), 'valueTypes' => array ( @@ -716,16 +639,34 @@ PHPStan\Type\StringType::__set_state(array( )), 1 => + PHPStan\Type\StringType::__set_state(array( + )), + 2 => PHPStan\Type\IntegerRangeType::__set_state(array( 'min' => -32768, 'max' => 32767, )), - 2 => + 3 => + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + 4 => PHPStan\Type\IntegerRangeType::__set_state(array( 'min' => -128, 'max' => 127, )), - 3 => + 5 => + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -128, + 'max' => 127, + )), + 6 => + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -128, + 'max' => 127, + )), + 7 => PHPStan\Type\IntegerRangeType::__set_state(array( 'min' => -128, 'max' => 127, @@ -734,15 +675,6 @@ 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT email, adaid, gesperrt, freigabe1u1 FROM ada LIMIT 1' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -801,6 +733,15 @@ )), ), )), + )), + ), + ), + 'SELECT email, adaid, gesperrt, freigabe1u1 FROM ada LIMIT 1' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( @@ -887,15 +828,6 @@ 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT email, adaid, gesperrt, freigabe1u1 FROM ada WHERE email=\'my_other_table\' LIMIT 1' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -954,6 +886,15 @@ )), ), )), + )), + ), + ), + 'SELECT email, adaid, gesperrt, freigabe1u1 FROM ada WHERE email=\'my_other_table\' LIMIT 1' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( @@ -1040,15 +981,6 @@ 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT email, adaid, gesperrt, freigabe1u1 FROM ada WHERE adaid = \'1\'' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -1107,6 +1039,15 @@ )), ), )), + )), + ), + ), + 'SELECT email, adaid, gesperrt, freigabe1u1 FROM ada WHERE adaid = \'1\'' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( @@ -1193,44 +1134,6 @@ 'optionalKeys' => array ( ), - )), - ), - ), - 'SELECT email, adaid, gesperrt, freigabe1u1 FROM ada WHERE adaid = :adaid' => - array ( - 'result' => - array ( - 5 => NULL, - ), - ), - 'SELECT email, adaid, gesperrt, freigabe1u1 FROM ada WHERE adaid = :asdsa' => - array ( - 'result' => - array ( - 5 => NULL, - ), - ), - 'SELECT email, adaid, gesperrt, freigabe1u1 FROM ada WHERE adaid=?' => - array ( - 'result' => - array ( - 5 => NULL, - ), - ), - 'SELECT email, adaid, gesperrt, freigabe1u1 FROM ada WHERE asdsa=1' => - array ( - 'result' => - array ( - 3 => NULL, - 5 => NULL, - ), - ), - 'SELECT email, adaid, gesperrt, freigabe1u1 FROM ada WHERE gesperrt=1' => - array ( - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'keyType' => PHPStan\Type\UnionType::__set_state(array( 'sortedTypes' => true, @@ -1289,6 +1192,44 @@ )), ), )), + )), + ), + ), + 'SELECT email, adaid, gesperrt, freigabe1u1 FROM ada WHERE adaid = :adaid' => + array ( + 'result' => + array ( + 5 => NULL, + ), + ), + 'SELECT email, adaid, gesperrt, freigabe1u1 FROM ada WHERE adaid = :asdsa' => + array ( + 'result' => + array ( + 5 => NULL, + ), + ), + 'SELECT email, adaid, gesperrt, freigabe1u1 FROM ada WHERE adaid=?' => + array ( + 'result' => + array ( + 5 => NULL, + ), + ), + 'SELECT email, adaid, gesperrt, freigabe1u1 FROM ada WHERE asdsa=1' => + array ( + 'result' => + array ( + 3 => NULL, + 5 => NULL, + ), + ), + 'SELECT email, adaid, gesperrt, freigabe1u1 FROM ada WHERE gesperrt=1' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( 'allArrays' => NULL, 'nextAutoIndexes' => array ( @@ -1375,6 +1316,64 @@ 'optionalKeys' => array ( ), + 'keyType' => + PHPStan\Type\UnionType::__set_state(array( + 'sortedTypes' => true, + '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, + )), + 5 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'email', + 'isClassString' => false, + )), + 6 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'freigabe1u1', + 'isClassString' => false, + )), + 7 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'gesperrt', + 'isClassString' => false, + )), + ), + )), + 'itemType' => + PHPStan\Type\UnionType::__set_state(array( + 'sortedTypes' => false, + 'types' => + array ( + 0 => + PHPStan\Type\StringType::__set_state(array( + )), + 1 => + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + ), + )), )), ), ), diff --git a/tests/rules/config/.phpunit-phpstan-dba-mysqli.cache b/tests/rules/config/.phpunit-phpstan-dba-mysqli.cache index 6dc394048..d428a9171 100644 --- a/tests/rules/config/.phpunit-phpstan-dba-mysqli.cache +++ b/tests/rules/config/.phpunit-phpstan-dba-mysqli.cache @@ -1,50 +1,8 @@ 'v6-schema-hash', + 'schemaVersion' => 'v7-normalized-eol', 'schemaHash' => NULL, 'records' => array ( - ' - SELECT - ada.*, - COALESCE(NULLIF(email, ""), email) AS email - FROM ada - INNER JOIN ak ON (ak.adaid = ada.adaid AND ak.akid = \'1\') - WHERE adaid = 1 ORDER BY COALESCE(NULLIF(email, ""), email) ASC - ' => - array ( - 'result' => - array ( - 5 => NULL, - ), - ), - ' - SELECT - ada.*, - COALESCE(NULLIF(email, ""), email) AS email - FROM ada - INNER JOIN ak ON (ak.adaid = ada.adaid AND ak.akid = :akid) - WHERE adaid = 1 ORDER BY COALESCE(NULLIF(email, ""), email) ASC - ' => - array ( - 'result' => - array ( - 5 => NULL, - ), - ), - ' - SELECT - ada.*, - COALESCE(NULLIF(email, ""), email) AS email - FROM ada - INNER JOIN ak ON (ak.adaid = ada.adaid AND ak.akid = ?) - WHERE adaid = 1 ORDER BY COALESCE(NULLIF(email, ""), email) ASC - ' => - array ( - 'result' => - array ( - 5 => NULL, - ), - ), ' SELECT ada.*, @@ -213,6 +171,10 @@ 'message' => 'Unknown column \'doesNotExist\' in \'group statement\'', 'code' => 1054, )), + 'result' => + array ( + 5 => NULL, + ), ), 'SELECT * FROM ada ORDER BY doesNotExist' => array ( @@ -221,6 +183,10 @@ 'message' => 'Unknown column \'doesNotExist\' in \'order clause\'', 'code' => 1054, )), + 'result' => + array ( + 5 => NULL, + ), ), 'SELECT * FROM ada WHERE doesNotExist=1' => array ( @@ -229,6 +195,10 @@ 'message' => 'Unknown column \'doesNotExist\' in \'where clause\'', 'code' => 1054, )), + 'result' => + array ( + 5 => NULL, + ), ), 'SELECT * FROM unknown_table' => array ( @@ -237,6 +207,10 @@ 'message' => 'Table \'phpstan_dba.unknown_table\' doesn\'t exist', 'code' => 1146, )), + 'result' => + array ( + 5 => NULL, + ), ), 'SELECT adaid FROM ada WHERE email = \'1970-01-01\'' => array ( @@ -250,10 +224,6 @@ array ( 'error' => NULL, ), - 'SELECT adaid FROM ada WHERE email LIKE "hello?%"' => - array ( - 'error' => NULL, - ), 'SELECT adaid FROM ada WHERE email LIKE \'%questions ?%\'' => array ( 'error' => NULL, @@ -347,6 +317,10 @@ 'message' => 'Unknown column \'doesNotExist\' in \'field list\'', 'code' => 1054, )), + 'result' => + array ( + 5 => NULL, + ), ), 'SELECT email FROM ada WHERE adaid IN (\'1\')' => array ( @@ -356,64 +330,6 @@ array ( 'error' => NULL, ), - 'SELECT email FROM ada WHERE gesperrt=\'1970-01-01\'' => - array ( - 'error' => NULL, - 'result' => - array ( - 5 => - PHPStan\Type\Constant\ConstantArrayType::__set_state(array( - 'allArrays' => NULL, - 'nextAutoIndexes' => - array ( - 0 => 1, - ), - 'keyTypes' => - array ( - 0 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', - 'isClassString' => false, - )), - 1 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 0, - )), - ), - 'valueTypes' => - array ( - 0 => - PHPStan\Type\StringType::__set_state(array( - )), - 1 => - PHPStan\Type\StringType::__set_state(array( - )), - ), - 'optionalKeys' => - array ( - ), - 'keyType' => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => true, - 'types' => - array ( - 0 => - PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( - 'value' => 0, - )), - 1 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', - 'isClassString' => false, - )), - ), - )), - 'itemType' => - PHPStan\Type\StringType::__set_state(array( - )), - )), - ), - ), 'SELECT email FROM ada WHERE gesperrt=:gesperrt' => array ( 'result' => @@ -428,6 +344,11 @@ '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 \'freigabe1u1 FROM ada LIMIT 0\' at line 1', 'code' => 1064, )), + 'result' => + array ( + 5 => NULL, + 3 => NULL, + ), ), 'SELECT email adaid gesperrt freigabe1u1 FROM ada' => array ( @@ -436,6 +357,10 @@ '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 \'gesperrt freigabe1u1 FROM ada LIMIT 0\' at line 1', 'code' => 1064, )), + 'result' => + array ( + 5 => NULL, + ), ), 'SELECT email, adaid FROM ada GROUP BY xy LIMIT 1' => array ( @@ -444,6 +369,10 @@ 'message' => 'Unknown column \'xy\' in \'group statement\'', 'code' => 1054, )), + 'result' => + array ( + 5 => NULL, + ), ), 'SELECT email, adaid FROM ada WHERE adaid = \'1\'' => array ( @@ -693,6 +622,10 @@ '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 ada LIMIT 0\' at line 1', 'code' => 1064, )), + 'result' => + array ( + 5 => NULL, + ), ), 'SELECT email, adaid GROUP BY xy FROM ada WHERE email=\'my_other_table\' LIMIT 1' => array ( @@ -1454,6 +1387,11 @@ 'message' => 'Unknown column \'asdsa\' in \'where clause\'', 'code' => 1054, )), + 'result' => + array ( + 3 => NULL, + 5 => NULL, + ), ), 'SELECT email, adaid, gesperrt, freigabe1u1 FROM ada WHERE gesperrt=\'1\'' => array ( diff --git a/tests/rules/config/.phpunit-phpstan-dba-pdo.cache b/tests/rules/config/.phpunit-phpstan-dba-pdo.cache index a007465c1..06ae51737 100644 --- a/tests/rules/config/.phpunit-phpstan-dba-pdo.cache +++ b/tests/rules/config/.phpunit-phpstan-dba-pdo.cache @@ -1,8 +1,50 @@ 'v6-schema-hash', + 'schemaVersion' => 'v7-normalized-eol', 'schemaHash' => NULL, 'records' => array ( + ' + SELECT + ada.*, + COALESCE(NULLIF(email, ""), email) AS email + FROM ada + INNER JOIN ak ON (ak.adaid = ada.adaid AND ak.akid = \'1\') + WHERE adaid = 1 ORDER BY COALESCE(NULLIF(email, ""), email) ASC + ' => + array ( + 'result' => + array ( + 5 => NULL, + ), + ), + ' + SELECT + ada.*, + COALESCE(NULLIF(email, ""), email) AS email + FROM ada + INNER JOIN ak ON (ak.adaid = ada.adaid AND ak.akid = :akid) + WHERE adaid = 1 ORDER BY COALESCE(NULLIF(email, ""), email) ASC + ' => + array ( + 'result' => + array ( + 5 => NULL, + ), + ), + ' + SELECT + ada.*, + COALESCE(NULLIF(email, ""), email) AS email + FROM ada + INNER JOIN ak ON (ak.adaid = ada.adaid AND ak.akid = ?) + WHERE adaid = 1 ORDER BY COALESCE(NULLIF(email, ""), email) ASC + ' => + array ( + 'result' => + array ( + 5 => NULL, + ), + ), ' SELECT email adaid WHERE gesperrt = \'1\' AND email LIKE \'%@example.com\' @@ -129,6 +171,10 @@ 'message' => 'SQLSTATE[42S22]: Column not found: 1054 Unknown column \'doesNotExist\' in \'group statement\'', 'code' => '42S22', )), + 'result' => + array ( + 5 => NULL, + ), ), 'SELECT * FROM ada ORDER BY doesNotExist' => array ( @@ -137,6 +183,10 @@ 'message' => 'SQLSTATE[42S22]: Column not found: 1054 Unknown column \'doesNotExist\' in \'order clause\'', 'code' => '42S22', )), + 'result' => + array ( + 5 => NULL, + ), ), 'SELECT * FROM ada WHERE doesNotExist=1' => array ( @@ -145,6 +195,10 @@ 'message' => 'SQLSTATE[42S22]: Column not found: 1054 Unknown column \'doesNotExist\' in \'where clause\'', 'code' => '42S22', )), + 'result' => + array ( + 5 => NULL, + ), ), 'SELECT * FROM unknown_table' => array ( @@ -153,6 +207,10 @@ 'message' => 'SQLSTATE[42S02]: Base table or view not found: 1146 Table \'phpstan_dba.unknown_table\' doesn\'t exist', 'code' => '42S02', )), + 'result' => + array ( + 5 => NULL, + ), ), 'SELECT adaid FROM ada WHERE email = \'1970-01-01\'' => array ( @@ -166,10 +224,6 @@ array ( 'error' => NULL, ), - 'SELECT adaid FROM ada WHERE email LIKE "hello?%"' => - array ( - 'error' => NULL, - ), 'SELECT adaid FROM ada WHERE email LIKE \'%questions ?%\'' => array ( 'error' => NULL, @@ -186,6 +240,76 @@ array ( 'error' => NULL, ), + 'SELECT adaid FROM ada WHERE email=\'1970-01-01\'' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( + 'allArrays' => NULL, + 'nextAutoIndexes' => + array ( + 0 => 1, + ), + 'keyTypes' => + array ( + 0 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'adaid', + 'isClassString' => false, + )), + 1 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 0, + )), + ), + 'valueTypes' => + array ( + 0 => + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + 1 => + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + ), + 'optionalKeys' => + array ( + ), + 'keyType' => + PHPStan\Type\UnionType::__set_state(array( + 'sortedTypes' => true, + 'types' => + array ( + 0 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 0, + )), + 1 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'adaid', + 'isClassString' => false, + )), + ), + )), + 'itemType' => + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + )), + ), + ), + 'SELECT adaid FROM ada WHERE email=:email' => + array ( + 'result' => + array ( + 5 => NULL, + ), + ), 'SELECT doesNotExist, adaid, gesperrt, freigabe1u1 FROM ada' => array ( 'error' => @@ -193,6 +317,10 @@ 'message' => 'SQLSTATE[42S22]: Column not found: 1054 Unknown column \'doesNotExist\' in \'field list\'', 'code' => '42S22', )), + 'result' => + array ( + 5 => NULL, + ), ), 'SELECT email FROM ada WHERE adaid IN (\'1\')' => array ( @@ -202,6 +330,13 @@ array ( 'error' => NULL, ), + 'SELECT email FROM ada WHERE gesperrt=:gesperrt' => + array ( + 'result' => + array ( + 5 => NULL, + ), + ), 'SELECT email adaid WHERE gesperrt freigabe1u1 FROM ada' => array ( 'error' => @@ -209,6 +344,11 @@ '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 \'freigabe1u1 FROM ada LIMIT 0\' at line 1', 'code' => '42000', )), + 'result' => + array ( + 5 => NULL, + 3 => NULL, + ), ), 'SELECT email adaid gesperrt freigabe1u1 FROM ada' => array ( @@ -217,6 +357,10 @@ '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 \'gesperrt freigabe1u1 FROM ada LIMIT 0\' at line 1', 'code' => '42000', )), + 'result' => + array ( + 5 => NULL, + ), ), 'SELECT email, adaid FROM ada GROUP BY xy LIMIT 1' => array ( @@ -225,10 +369,247 @@ 'message' => 'SQLSTATE[42S22]: Column not found: 1054 Unknown column \'xy\' in \'group statement\'', 'code' => '42S22', )), + 'result' => + array ( + 5 => NULL, + ), + ), + 'SELECT email, adaid FROM ada WHERE adaid = \'1\'' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( + 'allArrays' => NULL, + 'nextAutoIndexes' => + array ( + 0 => 2, + ), + 'keyTypes' => + array ( + 0 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'email', + 'isClassString' => false, + )), + 1 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 0, + )), + 2 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'adaid', + 'isClassString' => false, + )), + 3 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 1, + )), + ), + 'valueTypes' => + array ( + 0 => + PHPStan\Type\StringType::__set_state(array( + )), + 1 => + PHPStan\Type\StringType::__set_state(array( + )), + 2 => + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + 3 => + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + ), + 'optionalKeys' => + array ( + ), + 'keyType' => + PHPStan\Type\UnionType::__set_state(array( + 'sortedTypes' => true, + '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\ConstantStringType::__set_state(array( + 'value' => 'adaid', + 'isClassString' => false, + )), + 3 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'email', + 'isClassString' => false, + )), + ), + )), + 'itemType' => + PHPStan\Type\UnionType::__set_state(array( + 'sortedTypes' => false, + 'types' => + array ( + 0 => + PHPStan\Type\StringType::__set_state(array( + )), + 1 => + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + ), + )), + )), + ), + ), + 'SELECT email, adaid FROM ada WHERE adaid = \'1\' and email = :email' => + array ( + 'result' => + array ( + 5 => NULL, + ), + ), + 'SELECT email, adaid FROM ada WHERE adaid = \'1\' and email = ?' => + array ( + 'result' => + array ( + 5 => NULL, + ), + ), + 'SELECT email, adaid FROM ada WHERE adaid = :adaid' => + array ( + 'result' => + array ( + 5 => NULL, + ), + ), + 'SELECT email, adaid FROM ada WHERE adaid = :adaid and email = \'email@example.org\'' => + array ( + 'result' => + array ( + 5 => NULL, + ), + ), + 'SELECT email, adaid FROM ada WHERE adaid = :adaid and email = :email' => + array ( + 'result' => + array ( + 5 => NULL, + ), + ), + 'SELECT email, adaid FROM ada WHERE adaid = ? and email = ?' => + array ( + 'result' => + array ( + 5 => NULL, + ), ), 'SELECT email, adaid FROM ada WHERE email=\'my_other_table\' LIMIT 1' => array ( 'error' => NULL, + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( + 'allArrays' => NULL, + 'nextAutoIndexes' => + array ( + 0 => 2, + ), + 'keyTypes' => + array ( + 0 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'email', + 'isClassString' => false, + )), + 1 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 0, + )), + 2 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'adaid', + 'isClassString' => false, + )), + 3 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 1, + )), + ), + 'valueTypes' => + array ( + 0 => + PHPStan\Type\StringType::__set_state(array( + )), + 1 => + PHPStan\Type\StringType::__set_state(array( + )), + 2 => + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + 3 => + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + ), + 'optionalKeys' => + array ( + ), + 'keyType' => + PHPStan\Type\UnionType::__set_state(array( + 'sortedTypes' => true, + '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\ConstantStringType::__set_state(array( + 'value' => 'adaid', + 'isClassString' => false, + )), + 3 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'email', + 'isClassString' => false, + )), + ), + )), + 'itemType' => + PHPStan\Type\UnionType::__set_state(array( + 'sortedTypes' => false, + 'types' => + array ( + 0 => + PHPStan\Type\StringType::__set_state(array( + )), + 1 => + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + ), + )), + )), + ), ), 'SELECT email, adaid FROM ada WHERE gesperrt = \'1\'' => array ( @@ -241,10 +622,268 @@ '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 ada LIMIT 0\' at line 1', 'code' => '42000', )), + 'result' => + array ( + 5 => NULL, + ), + ), + 'SELECT email, adaid GROUP BY xy FROM ada WHERE email=\'my_other_table\' LIMIT 1' => + array ( + 'result' => + array ( + 5 => NULL, + ), ), 'SELECT email, adaid, gesperrt, freigabe1u1 FROM ada' => array ( 'error' => NULL, + 'result' => + array ( + 3 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( + 'allArrays' => NULL, + 'nextAutoIndexes' => + array ( + 0 => 0, + ), + 'keyTypes' => + array ( + 0 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'email', + 'isClassString' => false, + )), + 1 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'adaid', + 'isClassString' => false, + )), + 2 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'gesperrt', + 'isClassString' => false, + )), + 3 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'freigabe1u1', + 'isClassString' => false, + )), + ), + 'valueTypes' => + array ( + 0 => + PHPStan\Type\StringType::__set_state(array( + )), + 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, + )), + ), + 'optionalKeys' => + array ( + ), + 'keyType' => + PHPStan\Type\UnionType::__set_state(array( + 'sortedTypes' => true, + 'types' => + array ( + 0 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'adaid', + 'isClassString' => false, + )), + 1 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'email', + 'isClassString' => false, + )), + 2 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'freigabe1u1', + 'isClassString' => false, + )), + 3 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'gesperrt', + 'isClassString' => false, + )), + ), + )), + 'itemType' => + PHPStan\Type\UnionType::__set_state(array( + 'sortedTypes' => false, + 'types' => + array ( + 0 => + PHPStan\Type\StringType::__set_state(array( + )), + 1 => + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + ), + )), + )), + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( + 'allArrays' => NULL, + 'nextAutoIndexes' => + array ( + 0 => 4, + ), + 'keyTypes' => + array ( + 0 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'email', + 'isClassString' => false, + )), + 1 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 0, + )), + 2 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'adaid', + 'isClassString' => false, + )), + 3 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 1, + )), + 4 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'gesperrt', + 'isClassString' => false, + )), + 5 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 2, + )), + 6 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'freigabe1u1', + 'isClassString' => false, + )), + 7 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 3, + )), + ), + 'valueTypes' => + array ( + 0 => + PHPStan\Type\StringType::__set_state(array( + )), + 1 => + PHPStan\Type\StringType::__set_state(array( + )), + 2 => + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + 3 => + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + 4 => + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -128, + 'max' => 127, + )), + 5 => + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -128, + 'max' => 127, + )), + 6 => + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -128, + 'max' => 127, + )), + 7 => + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -128, + 'max' => 127, + )), + ), + 'optionalKeys' => + array ( + ), + 'keyType' => + PHPStan\Type\UnionType::__set_state(array( + 'sortedTypes' => true, + '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, + )), + 5 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'email', + 'isClassString' => false, + )), + 6 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'freigabe1u1', + 'isClassString' => false, + )), + 7 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'gesperrt', + 'isClassString' => false, + )), + ), + )), + 'itemType' => + PHPStan\Type\UnionType::__set_state(array( + 'sortedTypes' => false, + 'types' => + array ( + 0 => + PHPStan\Type\StringType::__set_state(array( + )), + 1 => + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + ), + )), + )), + ), ), 'SELECT email, adaid, gesperrt, freigabe1u1 FROM ada WHERE (gesperrt=\'1\' AND freigabe1u1=1) OR (gesperrt=\'1\' AND freigabe1u1=0)' => @@ -254,10 +893,484 @@ 'SELECT email, adaid, gesperrt, freigabe1u1 FROM ada LIMIT 1' => array ( 'error' => NULL, + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( + 'allArrays' => NULL, + 'nextAutoIndexes' => + array ( + 0 => 4, + ), + 'keyTypes' => + array ( + 0 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'email', + 'isClassString' => false, + )), + 1 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 0, + )), + 2 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'adaid', + 'isClassString' => false, + )), + 3 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 1, + )), + 4 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'gesperrt', + 'isClassString' => false, + )), + 5 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 2, + )), + 6 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'freigabe1u1', + 'isClassString' => false, + )), + 7 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 3, + )), + ), + 'valueTypes' => + array ( + 0 => + PHPStan\Type\StringType::__set_state(array( + )), + 1 => + PHPStan\Type\StringType::__set_state(array( + )), + 2 => + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + 3 => + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + 4 => + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -128, + 'max' => 127, + )), + 5 => + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -128, + 'max' => 127, + )), + 6 => + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -128, + 'max' => 127, + )), + 7 => + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -128, + 'max' => 127, + )), + ), + 'optionalKeys' => + array ( + ), + 'keyType' => + PHPStan\Type\UnionType::__set_state(array( + 'sortedTypes' => true, + '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, + )), + 5 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'email', + 'isClassString' => false, + )), + 6 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'freigabe1u1', + 'isClassString' => false, + )), + 7 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'gesperrt', + 'isClassString' => false, + )), + ), + )), + 'itemType' => + PHPStan\Type\UnionType::__set_state(array( + 'sortedTypes' => false, + 'types' => + array ( + 0 => + PHPStan\Type\StringType::__set_state(array( + )), + 1 => + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + ), + )), + )), + ), ), 'SELECT email, adaid, gesperrt, freigabe1u1 FROM ada WHERE email=\'my_other_table\' LIMIT 1' => array ( 'error' => NULL, + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( + 'allArrays' => NULL, + 'nextAutoIndexes' => + array ( + 0 => 4, + ), + 'keyTypes' => + array ( + 0 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'email', + 'isClassString' => false, + )), + 1 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 0, + )), + 2 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'adaid', + 'isClassString' => false, + )), + 3 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 1, + )), + 4 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'gesperrt', + 'isClassString' => false, + )), + 5 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 2, + )), + 6 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'freigabe1u1', + 'isClassString' => false, + )), + 7 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 3, + )), + ), + 'valueTypes' => + array ( + 0 => + PHPStan\Type\StringType::__set_state(array( + )), + 1 => + PHPStan\Type\StringType::__set_state(array( + )), + 2 => + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + 3 => + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + 4 => + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -128, + 'max' => 127, + )), + 5 => + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -128, + 'max' => 127, + )), + 6 => + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -128, + 'max' => 127, + )), + 7 => + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -128, + 'max' => 127, + )), + ), + 'optionalKeys' => + array ( + ), + 'keyType' => + PHPStan\Type\UnionType::__set_state(array( + 'sortedTypes' => true, + '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, + )), + 5 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'email', + 'isClassString' => false, + )), + 6 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'freigabe1u1', + 'isClassString' => false, + )), + 7 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'gesperrt', + 'isClassString' => false, + )), + ), + )), + 'itemType' => + PHPStan\Type\UnionType::__set_state(array( + 'sortedTypes' => false, + 'types' => + array ( + 0 => + PHPStan\Type\StringType::__set_state(array( + )), + 1 => + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + ), + )), + )), + ), + ), + 'SELECT email, adaid, gesperrt, freigabe1u1 FROM ada WHERE adaid = \'1\'' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( + 'allArrays' => NULL, + 'nextAutoIndexes' => + array ( + 0 => 4, + ), + 'keyTypes' => + array ( + 0 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'email', + 'isClassString' => false, + )), + 1 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 0, + )), + 2 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'adaid', + 'isClassString' => false, + )), + 3 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 1, + )), + 4 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'gesperrt', + 'isClassString' => false, + )), + 5 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 2, + )), + 6 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'freigabe1u1', + 'isClassString' => false, + )), + 7 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 3, + )), + ), + 'valueTypes' => + array ( + 0 => + PHPStan\Type\StringType::__set_state(array( + )), + 1 => + PHPStan\Type\StringType::__set_state(array( + )), + 2 => + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + 3 => + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + 4 => + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -128, + 'max' => 127, + )), + 5 => + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -128, + 'max' => 127, + )), + 6 => + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -128, + 'max' => 127, + )), + 7 => + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -128, + 'max' => 127, + )), + ), + 'optionalKeys' => + array ( + ), + 'keyType' => + PHPStan\Type\UnionType::__set_state(array( + 'sortedTypes' => true, + '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, + )), + 5 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'email', + 'isClassString' => false, + )), + 6 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'freigabe1u1', + 'isClassString' => false, + )), + 7 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'gesperrt', + 'isClassString' => false, + )), + ), + )), + 'itemType' => + PHPStan\Type\UnionType::__set_state(array( + 'sortedTypes' => false, + 'types' => + array ( + 0 => + PHPStan\Type\StringType::__set_state(array( + )), + 1 => + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + ), + )), + )), + ), + ), + 'SELECT email, adaid, gesperrt, freigabe1u1 FROM ada WHERE adaid = :adaid' => + array ( + 'result' => + array ( + 5 => NULL, + ), + ), + 'SELECT email, adaid, gesperrt, freigabe1u1 FROM ada WHERE adaid = :asdsa' => + array ( + 'result' => + array ( + 5 => NULL, + ), + ), + 'SELECT email, adaid, gesperrt, freigabe1u1 FROM ada WHERE adaid=?' => + array ( + 'result' => + array ( + 5 => NULL, + ), ), 'SELECT email, adaid, gesperrt, freigabe1u1 FROM ada WHERE asdsa=\'1\'' => array ( @@ -274,11 +1387,169 @@ 'message' => 'SQLSTATE[42S22]: Column not found: 1054 Unknown column \'asdsa\' in \'where clause\'', 'code' => '42S22', )), + 'result' => + array ( + 3 => NULL, + 5 => NULL, + ), ), 'SELECT email, adaid, gesperrt, freigabe1u1 FROM ada WHERE gesperrt=\'1\'' => array ( 'error' => NULL, ), + 'SELECT email, adaid, gesperrt, freigabe1u1 FROM ada WHERE gesperrt=1' => + array ( + 'result' => + array ( + 5 => + PHPStan\Type\Constant\ConstantArrayType::__set_state(array( + 'allArrays' => NULL, + 'nextAutoIndexes' => + array ( + 0 => 4, + ), + 'keyTypes' => + array ( + 0 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'email', + 'isClassString' => false, + )), + 1 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 0, + )), + 2 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'adaid', + 'isClassString' => false, + )), + 3 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 1, + )), + 4 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'gesperrt', + 'isClassString' => false, + )), + 5 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 2, + )), + 6 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'freigabe1u1', + 'isClassString' => false, + )), + 7 => + PHPStan\Type\Constant\ConstantIntegerType::__set_state(array( + 'value' => 3, + )), + ), + 'valueTypes' => + array ( + 0 => + PHPStan\Type\StringType::__set_state(array( + )), + 1 => + PHPStan\Type\StringType::__set_state(array( + )), + 2 => + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + 3 => + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + 4 => + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -128, + 'max' => 127, + )), + 5 => + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -128, + 'max' => 127, + )), + 6 => + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -128, + 'max' => 127, + )), + 7 => + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -128, + 'max' => 127, + )), + ), + 'optionalKeys' => + array ( + ), + 'keyType' => + PHPStan\Type\UnionType::__set_state(array( + 'sortedTypes' => true, + '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, + )), + 5 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'email', + 'isClassString' => false, + )), + 6 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'freigabe1u1', + 'isClassString' => false, + )), + 7 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'gesperrt', + 'isClassString' => false, + )), + ), + )), + 'itemType' => + PHPStan\Type\UnionType::__set_state(array( + 'sortedTypes' => false, + 'types' => + array ( + 0 => + PHPStan\Type\StringType::__set_state(array( + )), + 1 => + PHPStan\Type\IntegerRangeType::__set_state(array( + 'min' => -32768, + 'max' => 32767, + )), + ), + )), + )), + ), + ), 'SELECT email, adaid, gesperrt, freigabe1u1 FROM ada;' => array ( 'error' => NULL, diff --git a/tests/stringify/config/.phpstan-dba-mysqli.cache b/tests/stringify/config/.phpstan-dba-mysqli.cache index eddd47da8..66d0872bb 100644 --- a/tests/stringify/config/.phpstan-dba-mysqli.cache +++ b/tests/stringify/config/.phpstan-dba-mysqli.cache @@ -1,5 +1,5 @@ 'v6-schema-hash', + 'schemaVersion' => 'v7-normalized-eol', 'schemaHash' => NULL, 'records' => array ( @@ -9,52 +9,6 @@ array ( 5 => PHPStan\Type\Constant\ConstantArrayType::__set_state(array( - 'keyType' => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => true, - '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, - )), - 5 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', - 'isClassString' => false, - )), - 6 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'freigabe1u1', - 'isClassString' => false, - )), - 7 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - )), - ), - )), - 'itemType' => - PHPStan\Type\StringType::__set_state(array( - )), 'allArrays' => NULL, 'nextAutoIndexes' => array ( @@ -189,6 +143,52 @@ 'optionalKeys' => array ( ), + 'keyType' => + PHPStan\Type\UnionType::__set_state(array( + 'sortedTypes' => true, + '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, + )), + 5 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'email', + 'isClassString' => false, + )), + 6 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'freigabe1u1', + 'isClassString' => false, + )), + 7 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'gesperrt', + 'isClassString' => false, + )), + ), + )), + 'itemType' => + PHPStan\Type\StringType::__set_state(array( + )), )), ), ), diff --git a/tests/stringify/config/.phpstan-dba-pdo.cache b/tests/stringify/config/.phpstan-dba-pdo.cache index eddd47da8..66d0872bb 100644 --- a/tests/stringify/config/.phpstan-dba-pdo.cache +++ b/tests/stringify/config/.phpstan-dba-pdo.cache @@ -1,5 +1,5 @@ 'v6-schema-hash', + 'schemaVersion' => 'v7-normalized-eol', 'schemaHash' => NULL, 'records' => array ( @@ -9,52 +9,6 @@ array ( 5 => PHPStan\Type\Constant\ConstantArrayType::__set_state(array( - 'keyType' => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => true, - '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, - )), - 5 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', - 'isClassString' => false, - )), - 6 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'freigabe1u1', - 'isClassString' => false, - )), - 7 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - )), - ), - )), - 'itemType' => - PHPStan\Type\StringType::__set_state(array( - )), 'allArrays' => NULL, 'nextAutoIndexes' => array ( @@ -189,6 +143,52 @@ 'optionalKeys' => array ( ), + 'keyType' => + PHPStan\Type\UnionType::__set_state(array( + 'sortedTypes' => true, + '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, + )), + 5 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'email', + 'isClassString' => false, + )), + 6 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'freigabe1u1', + 'isClassString' => false, + )), + 7 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'gesperrt', + 'isClassString' => false, + )), + ), + )), + 'itemType' => + PHPStan\Type\StringType::__set_state(array( + )), )), ), ), diff --git a/tests/stringify/config/.phpunit-phpstan-dba-mysqli.cache b/tests/stringify/config/.phpunit-phpstan-dba-mysqli.cache index 8018c83ac..09400db62 100644 --- a/tests/stringify/config/.phpunit-phpstan-dba-mysqli.cache +++ b/tests/stringify/config/.phpunit-phpstan-dba-mysqli.cache @@ -1,5 +1,5 @@ 'v6-schema-hash', + 'schemaVersion' => 'v7-normalized-eol', 'schemaHash' => NULL, 'records' => array ( diff --git a/tests/stringify/config/.phpunit-phpstan-dba-pdo.cache b/tests/stringify/config/.phpunit-phpstan-dba-pdo.cache index 6752b8461..09400db62 100644 --- a/tests/stringify/config/.phpunit-phpstan-dba-pdo.cache +++ b/tests/stringify/config/.phpunit-phpstan-dba-pdo.cache @@ -1,5 +1,5 @@ 'v6-schema-hash', + 'schemaVersion' => 'v7-normalized-eol', 'schemaHash' => NULL, 'records' => array ( @@ -9,52 +9,6 @@ array ( 5 => PHPStan\Type\Constant\ConstantArrayType::__set_state(array( - 'keyType' => - PHPStan\Type\UnionType::__set_state(array( - 'sortedTypes' => true, - '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, - )), - 5 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'email', - 'isClassString' => false, - )), - 6 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'freigabe1u1', - 'isClassString' => false, - )), - 7 => - PHPStan\Type\Constant\ConstantStringType::__set_state(array( - 'value' => 'gesperrt', - 'isClassString' => false, - )), - ), - )), - 'itemType' => - PHPStan\Type\StringType::__set_state(array( - )), 'allArrays' => NULL, 'nextAutoIndexes' => array ( @@ -189,6 +143,52 @@ 'optionalKeys' => array ( ), + 'keyType' => + PHPStan\Type\UnionType::__set_state(array( + 'sortedTypes' => true, + '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, + )), + 5 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'email', + 'isClassString' => false, + )), + 6 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'freigabe1u1', + 'isClassString' => false, + )), + 7 => + PHPStan\Type\Constant\ConstantStringType::__set_state(array( + 'value' => 'gesperrt', + 'isClassString' => false, + )), + ), + )), + 'itemType' => + PHPStan\Type\StringType::__set_state(array( + )), )), ), ),