Skip to content

Commit

Permalink
Remove PhoneNumberException from checked exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
xificurk committed Jul 15, 2018
1 parent f6a3538 commit dbe90ae
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
3 changes: 0 additions & 3 deletions src/PhoneNumberDoctrine/PhoneNumberType.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

use Brick\PhoneNumber\PhoneNumber;
use Brick\PhoneNumber\PhoneNumberFormat;
use Brick\PhoneNumber\PhoneNumberParseException;
use Doctrine\DBAL\Platforms\AbstractPlatform;
use Doctrine\DBAL\Types\StringType;
use libphonenumber\PhoneNumberUtil;
Expand All @@ -24,7 +23,6 @@ public function getName(): string
* @param mixed $value
* @param AbstractPlatform $platform
* @return PhoneNumber|null
* @throws PhoneNumberParseException
*/
public function convertToPHPValue($value, AbstractPlatform $platform): ?PhoneNumber
{
Expand All @@ -43,7 +41,6 @@ public function convertToPHPValue($value, AbstractPlatform $platform): ?PhoneNum
* @param mixed $value
* @param AbstractPlatform $platform
* @return string|null
* @throws PhoneNumberParseException
*/
public function convertToDatabaseValue($value, AbstractPlatform $platform): ?string
{
Expand Down
1 change: 0 additions & 1 deletion tests/phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ parameters:
exceptionRules:
checkedExceptions:
- RuntimeException
- Brick\PhoneNumber\PhoneNumberException
ignoredExceptions:
- LogicException
- Nette\InvalidStateException
Expand Down

0 comments on commit dbe90ae

Please sign in to comment.