Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2da12fc

Browse files
committed
bug #21851 Adding use statement for InvalidArgumentException (Nyholm)
This PR was submitted for the master branch but it was merged into the 3.2 branch instead (closes #21851). Discussion ---------- Adding use statement for InvalidArgumentException | Q | A | ------------- | --- | Branch? | master | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | | License | MIT | Doc PR | This is a super minor bugfix. We should tell what InvalidArgumentException we throw. I consider this a bugfix and not a BC break because `Symfony\Component\Translation\Exception\InvalidArgumentException` has always been the intention. Commits ------- 187f65b Adding use statement for InvalidArgumentException
2 parents 86675f3 + 187f65b commit 2da12fc

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/Symfony/Component/Translation/TranslatorBagInterface.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111

1212
namespace Symfony\Component\Translation;
1313

14+
use Symfony\Component\Translation\Exception\InvalidArgumentException;
15+
1416
/**
1517
* TranslatorBagInterface.
1618
*

src/Symfony/Component/Translation/TranslatorInterface.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111

1212
namespace Symfony\Component\Translation;
1313

14+
use Symfony\Component\Translation\Exception\InvalidArgumentException;
15+
1416
/**
1517
* TranslatorInterface.
1618
*

0 commit comments

Comments
 (0)