From 22844d3c0d52e44c312ad60571b3d9e8da662c9b Mon Sep 17 00:00:00 2001 From: Pedro Date: Sun, 19 Nov 2017 01:25:18 +0100 Subject: [PATCH] Fix: Doctrine custom types now accepts anything but ')' --- lib/Doctrine/DBAL/Schema/AbstractSchemaManager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Doctrine/DBAL/Schema/AbstractSchemaManager.php b/lib/Doctrine/DBAL/Schema/AbstractSchemaManager.php index 7adea5f325e..4bc0d23dad0 100644 --- a/lib/Doctrine/DBAL/Schema/AbstractSchemaManager.php +++ b/lib/Doctrine/DBAL/Schema/AbstractSchemaManager.php @@ -1093,7 +1093,7 @@ public function getSchemaSearchPaths() */ public function extractDoctrineTypeFromComment($comment, $currentType) { - if (preg_match("(\(DC2Type:([a-zA-Z0-9_]+)\))", $comment, $match)) { + if (preg_match("(\(DC2Type:(((?!\)).)+)\))", $comment, $match)) { $currentType = $match[1]; }