Skip to content

Commit de7747b

Browse files
committed
[Translation] Fix test, null is valid according to the tests
1 parent 22437d4 commit de7747b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Symfony/Component/Translation/Translator.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -119,12 +119,10 @@ public function addLoader(string $format, LoaderInterface $loader)
119119
*
120120
* @param string $format The name of the loader (@see addLoader())
121121
* @param mixed $resource The resource name
122-
* @param string $locale The locale
123-
* @param string $domain The domain
124122
*
125123
* @throws InvalidArgumentException If the locale contains invalid characters
126124
*/
127-
public function addResource(string $format, $resource, string $locale, string $domain = null)
125+
public function addResource(string $format, $resource, ?string $locale, string $domain = null)
128126
{
129127
if (null === $domain) {
130128
$domain = 'messages';

0 commit comments

Comments
 (0)