Release 2.0.9 (#3922)

* fix api definition
* include customer number in validation message
* fix doctrine deprecation, prepare for DBAL 4
* added DataSubscriberInterface to identify certain doctrine subscribers
This commit is contained in:
Kevin Papst
2023-03-14 23:51:49 +01:00
committed by GitHub
parent 8449eafcb6
commit 1a8c78944a
15 changed files with 50 additions and 75 deletions

View File

@@ -22,7 +22,7 @@ use PHPUnit\Framework\TestCase;
*/
class UTCDateTimeTypeTest extends TestCase
{
public function testGetUtc()
public function testGetUtc(): void
{
Type::overrideType(Types::DATETIME_MUTABLE, UTCDateTimeType::class);
/** @var UTCDateTimeType $type */
@@ -37,7 +37,7 @@ class UTCDateTimeTypeTest extends TestCase
/**
* @dataProvider getPlatforms
*/
public function testConvertToDatabaseValue(AbstractPlatform $platform)
public function testConvertToDatabaseValue(AbstractPlatform $platform): void
{
Type::overrideType(Types::DATETIME_MUTABLE, UTCDateTimeType::class);
/** @var UTCDateTimeType $type */
@@ -65,7 +65,7 @@ class UTCDateTimeTypeTest extends TestCase
/**
* @dataProvider getPlatforms
*/
public function testConvertToPHPValue(AbstractPlatform $platform)
public function testConvertToPHPValue(AbstractPlatform $platform): void
{
Type::overrideType(Types::DATETIME_MUTABLE, UTCDateTimeType::class);
/** @var UTCDateTimeType $type */
@@ -85,7 +85,7 @@ class UTCDateTimeTypeTest extends TestCase
/**
* @dataProvider getPlatforms
*/
public function testConvertToPHPValueWithInvalidValue(AbstractPlatform $platform)
public function testConvertToPHPValueWithInvalidValue(AbstractPlatform $platform): void
{
$this->expectException(ConversionException::class);
@@ -97,17 +97,9 @@ class UTCDateTimeTypeTest extends TestCase
}
/**
* @dataProvider getPlatforms
* @return \Doctrine\DBAL\Platforms\MySQLPlatform[][]
*/
public function testRequiresSQLCommentHint(AbstractPlatform $platform)
{
Type::overrideType(Types::DATETIME_MUTABLE, UTCDateTimeType::class);
/** @var UTCDateTimeType $type */
$type = Type::getType(Types::DATETIME_MUTABLE);
self::assertTrue($type->requiresSQLCommentHint($platform));
}
public function getPlatforms()
public function getPlatforms(): array
{
return [
[new MySQLPlatform()],

View File

@@ -4727,36 +4727,6 @@ parameters:
count: 1
path: Doctrine/TimesheetSubscriberTest.php
-
message: "#^Method App\\\\Tests\\\\Doctrine\\\\UTCDateTimeTypeTest\\:\\:getPlatforms\\(\\) has no return type specified\\.$#"
count: 1
path: Doctrine/UTCDateTimeTypeTest.php
-
message: "#^Method App\\\\Tests\\\\Doctrine\\\\UTCDateTimeTypeTest\\:\\:testConvertToDatabaseValue\\(\\) has no return type specified\\.$#"
count: 1
path: Doctrine/UTCDateTimeTypeTest.php
-
message: "#^Method App\\\\Tests\\\\Doctrine\\\\UTCDateTimeTypeTest\\:\\:testConvertToPHPValue\\(\\) has no return type specified\\.$#"
count: 1
path: Doctrine/UTCDateTimeTypeTest.php
-
message: "#^Method App\\\\Tests\\\\Doctrine\\\\UTCDateTimeTypeTest\\:\\:testConvertToPHPValueWithInvalidValue\\(\\) has no return type specified\\.$#"
count: 1
path: Doctrine/UTCDateTimeTypeTest.php
-
message: "#^Method App\\\\Tests\\\\Doctrine\\\\UTCDateTimeTypeTest\\:\\:testGetUtc\\(\\) has no return type specified\\.$#"
count: 1
path: Doctrine/UTCDateTimeTypeTest.php
-
message: "#^Method App\\\\Tests\\\\Doctrine\\\\UTCDateTimeTypeTest\\:\\:testRequiresSQLCommentHint\\(\\) has no return type specified\\.$#"
count: 1
path: Doctrine/UTCDateTimeTypeTest.php
-
message: "#^Method App\\\\Tests\\\\Entity\\\\AbstractCommentEntityTest\\:\\:testDefaultValues\\(\\) has no return type specified\\.$#"
count: 1