diff --git a/src/QueryReflection/MysqliQueryReflector.php b/src/QueryReflection/MysqliQueryReflector.php index 7a115355..1c319e99 100644 --- a/src/QueryReflection/MysqliQueryReflector.php +++ b/src/QueryReflection/MysqliQueryReflector.php @@ -96,9 +96,13 @@ public function getResultType(string $queryString, int $fetchType): ?Type foreach ($result as $val) { if ( ! property_exists($val, 'name') + || ! is_string($val->name) || ! property_exists($val, 'type') + || ! is_int($val->type) || ! property_exists($val, 'flags') + || ! is_int($val->flags) || ! property_exists($val, 'length') + || ! is_int($val->length) ) { throw new ShouldNotHappenException(); }