diff --git a/Storage/DoctrineStorage.php b/Storage/DoctrineStorage.php index b2c5334c..a3c33878 100644 --- a/Storage/DoctrineStorage.php +++ b/Storage/DoctrineStorage.php @@ -152,7 +152,7 @@ private function tableExists() { private function createTable() { $table = new Table(self::TABLE, [ new Column($this->keyColumn, Type::getType(Types::STRING), ['length' => 255]), - new Column($this->valueColumn, Type::getType(Types::ARRAY), ['length' => 255]), + new Column($this->valueColumn, Type::getType(Types::TEXT)), ]); $table->setPrimaryKey([$this->keyColumn]); diff --git a/phpstan-config.neon b/phpstan-config.neon index 07bb6adc..fa0ac671 100644 --- a/phpstan-config.neon +++ b/phpstan-config.neon @@ -63,10 +63,6 @@ parameters: - message: '#^Cannot call method fetchColumn\(\) on Doctrine\\DBAL\\Result\|int\|string\.$#' path: Storage/DoctrineStorage.php - # TODO remove as soon as Doctrine DBAL >= 3.0 is required - - - message: '#^Access to undefined constant Doctrine\\DBAL\\Types\\Type::(STRING|TARRAY)\.$#' - path: Storage/DoctrineStorage.php # TODO remove as soon as Doctrine DBAL >= 3.1 is required - message: "#^Call to function method_exists\\(\\) with Doctrine\\\\DBAL\\\\Connection and 'createSchemaManager' will always evaluate to true\\.$#" @@ -78,9 +74,3 @@ parameters: Use \\{@see createSchemaManager\\(\\)\\} instead\\.$# """ path: Storage/DoctrineStorage.php - - - message: """ - #^Fetching deprecated class constant ARRAY of class Doctrine\\\\DBAL\\\\Types\\\\Types: - Use \\{@link Types::JSON} instead\\.$# - """ - path: Storage/DoctrineStorage.php