Skip to content

Commit a05dc1a

Browse files
authored
Merge pull request #703 from web-auth/temp-456146
Merge up 5.1.3 to 5.2.x
2 parents 8fabaad + 7ef33c3 commit a05dc1a

File tree

3 files changed

+6
-21
lines changed

3 files changed

+6
-21
lines changed

src/symfony/src/Doctrine/Type/AttestedCredentialDataType.php

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
namespace Webauthn\Bundle\Doctrine\Type;
66

77
use Doctrine\DBAL\Platforms\AbstractPlatform;
8-
use Doctrine\DBAL\Types\Type;
8+
use Doctrine\DBAL\Types\JsonType;
99
use Webauthn\AttestedCredentialData;
1010

11-
final class AttestedCredentialDataType extends Type
11+
final class AttestedCredentialDataType extends JsonType
1212
{
1313
use SerializerTrait;
1414

@@ -30,11 +30,6 @@ public function convertToPHPValue($value, AbstractPlatform $platform): ?Attested
3030
return $this->deserialize($value, AttestedCredentialData::class);
3131
}
3232

33-
public function getSQLDeclaration(array $column, AbstractPlatform $platform): string
34-
{
35-
return $platform->getJsonTypeDeclarationSQL($column);
36-
}
37-
3833
public function getName(): string
3934
{
4035
return 'attested_credential_data';

src/symfony/src/Doctrine/Type/PublicKeyCredentialDescriptorType.php

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
namespace Webauthn\Bundle\Doctrine\Type;
66

77
use Doctrine\DBAL\Platforms\AbstractPlatform;
8-
use Doctrine\DBAL\Types\Type;
8+
use Doctrine\DBAL\Types\JsonType;
99
use Webauthn\PublicKeyCredentialDescriptor;
1010

11-
final class PublicKeyCredentialDescriptorType extends Type
11+
final class PublicKeyCredentialDescriptorType extends JsonType
1212
{
1313
use SerializerTrait;
1414

@@ -30,11 +30,6 @@ public function convertToPHPValue($value, AbstractPlatform $platform): ?PublicKe
3030
return $this->deserialize($value, PublicKeyCredentialDescriptor::class);
3131
}
3232

33-
public function getSQLDeclaration(array $column, AbstractPlatform $platform): string
34-
{
35-
return $platform->getJsonTypeDeclarationSQL($column);
36-
}
37-
3833
public function getName(): string
3934
{
4035
return 'public_key_credential_descriptor';

src/symfony/src/Doctrine/Type/TrustPathDataType.php

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
namespace Webauthn\Bundle\Doctrine\Type;
66

77
use Doctrine\DBAL\Platforms\AbstractPlatform;
8-
use Doctrine\DBAL\Types\Type;
8+
use Doctrine\DBAL\Types\JsonType;
99
use Webauthn\TrustPath\TrustPath;
1010

11-
final class TrustPathDataType extends Type
11+
final class TrustPathDataType extends JsonType
1212
{
1313
use SerializerTrait;
1414

@@ -30,11 +30,6 @@ public function convertToPHPValue($value, AbstractPlatform $platform): ?TrustPat
3030
return $this->deserialize($value, TrustPath::class);
3131
}
3232

33-
public function getSQLDeclaration(array $column, AbstractPlatform $platform): string
34-
{
35-
return $platform->getJsonTypeDeclarationSQL($column);
36-
}
37-
3833
public function getName(): string
3934
{
4035
return 'trust_path';

0 commit comments

Comments
 (0)