Skip to content

Commit

Permalink
Fix: Doctrine custom types now accepts anything but ')'
Browse files Browse the repository at this point in the history
  • Loading branch information
PedroTroller authored and lcobucci committed Nov 19, 2017
1 parent 239929f commit 22844d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Doctrine/DBAL/Schema/AbstractSchemaManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -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];
}

Expand Down

0 comments on commit 22844d3

Please sign in to comment.