Skip to content

Commit a042ded

Browse files
Remove use statement for InvalidArgumentException
1 parent 3e1928f commit a042ded

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/Symfony/Bridge/Doctrine/Types/UlidType.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
use Doctrine\DBAL\Platforms\AbstractPlatform;
1515
use Doctrine\DBAL\Types\ConversionException;
1616
use Doctrine\DBAL\Types\GuidType;
17-
use InvalidArgumentException;
1817
use Symfony\Component\Uid\AbstractUid;
1918
use Symfony\Component\Uid\Ulid;
2019

@@ -37,7 +36,7 @@ public function convertToPHPValue($value, AbstractPlatform $platform)
3736

3837
try {
3938
return Ulid::fromString($value);
40-
} catch (InvalidArgumentException $e) {
39+
} catch (\InvalidArgumentException $e) {
4140
throw ConversionException::conversionFailed($value, static::NAME);
4241
}
4342
}

src/Symfony/Bridge/Doctrine/Types/UuidType.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
use Doctrine\DBAL\Platforms\AbstractPlatform;
1515
use Doctrine\DBAL\Types\ConversionException;
1616
use Doctrine\DBAL\Types\GuidType;
17-
use InvalidArgumentException;
1817
use Symfony\Component\Uid\AbstractUid;
1918
use Symfony\Component\Uid\Uuid;
2019

@@ -37,7 +36,7 @@ public function convertToPHPValue($value, AbstractPlatform $platform)
3736

3837
try {
3938
$uuid = Uuid::fromString($value);
40-
} catch (InvalidArgumentException $e) {
39+
} catch (\InvalidArgumentException $e) {
4140
throw ConversionException::conversionFailed($value, static::NAME);
4241
}
4342

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy