8000 Merge branch '4.4' · symfony/symfony@9f4dad3 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9f4dad3

Browse files
Merge branch '4.4'
* 4.4: fix typo
2 parents 6cb9aea + c289687 commit 9f4dad3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Bundle/FrameworkBundle/CacheWarmer/ValidatorCacheWarmer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class ValidatorCacheWarmer extends AbstractPhpFileCacheWarmer
3939
*/
4040
public function __construct($validatorBuilder, string $phpArrayFile)
4141
{
42-
if (!$validatorBuilder instanceof ValidatorBuilder || !$validatorBuilder instanceof ValidatorBuilderInterface) {
42+
if (!$validatorBuilder instanceof ValidatorBuilder && !$validatorBuilder instanceof ValidatorBuilderInterface) {
4343
throw new \TypeError(sprintf('Argument 1 passed to %s() must be an instance of %s, %s given.', __METHOD__, ValidatorBuilder::class, \is_object($validatorBuilder) ? \get_class($validatorBuilder) : \gettype($validatorBuilder)));
4444
}
4545
if (2 < \func_num_args() && \func_get_arg(2) instanceof CacheItemPoolInterface) {

0 commit comments

Comments
 (0)
0