We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ 57-68 (lines=12) @@ | ||
54 | return $covered; |
|
55 | } |
|
56 | ||
57 | private static function checkResolverMaps(array $resolverMaps) |
|
58 | { |
|
59 | foreach ($resolverMaps as $resolverMap) { |
|
60 | if (!$resolverMap instanceof ResolverMapInterface) { |
|
61 | throw new \InvalidArgumentException(sprintf( |
|
62 | 'ResolverMap should be instance of "%s" but got "%s".', |
|
63 | ResolverMapInterface::class, |
|
64 | is_object($resolverMap) ? get_class($resolverMap) : gettype($resolverMap) |
|
65 | )); |
|
66 | } |
|
67 | } |
|
68 | } |
|
69 | } |
|
70 |
@@ 25-36 (lines=12) @@ | ||
22 | /** |
|
23 | * {@inheritdoc} |
|
24 | */ |
|
25 | public function parseValue($value) |
|
26 | { |
|
27 | if (!$value instanceof File) { |
|
28 | throw new InvariantViolation(sprintf( |
|
29 | 'Upload should be instance of "%s" but %s given.', |
|
30 | File::class, |
|
31 | is_object($value) ? get_class($value) : gettype($value) |
|
32 | )); |
|
33 | } |
|
34 | ||
35 | return $value; |
|
36 | } |
|
37 | ||
38 | /** |
|
39 | * {@inheritdoc} |