diff --git a/src/Bridge/Doctrine/DBAL/Types/AbstractEnumSQLDeclarationType.php b/src/Bridge/Doctrine/DBAL/Types/AbstractEnumSQLDeclarationType.php index d3fd044f..84378064 100644 --- a/src/Bridge/Doctrine/DBAL/Types/AbstractEnumSQLDeclarationType.php +++ b/src/Bridge/Doctrine/DBAL/Types/AbstractEnumSQLDeclarationType.php @@ -14,6 +14,9 @@ /** * Base class for string enumerations with an `ENUM(...values)` column definition + * + * @template T of EnumInterface + * @template-extends AbstractEnumType */ abstract class AbstractEnumSQLDeclarationType extends AbstractEnumType { diff --git a/src/Bridge/Doctrine/DBAL/Types/AbstractIntegerEnumType.php b/src/Bridge/Doctrine/DBAL/Types/AbstractIntegerEnumType.php index a0c27d38..7c639630 100644 --- a/src/Bridge/Doctrine/DBAL/Types/AbstractIntegerEnumType.php +++ b/src/Bridge/Doctrine/DBAL/Types/AbstractIntegerEnumType.php @@ -12,6 +12,10 @@ use Doctrine\DBAL\Platforms\AbstractPlatform; +/** + * @template T of EnumInterface + * @template-extends AbstractEnumType + */ abstract class AbstractIntegerEnumType extends AbstractEnumType { /**