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 |
@@ 28-39 (lines=12) @@ | ||
25 | /** |
|
26 | * {@inheritdoc} |
|
27 | */ |
|
28 | public function parseValue($value) |
|
29 | { |
|
30 | if (!$value instanceof File) { |
|
31 | throw new InvariantViolation(sprintf( |
|
32 | 'Upload should be instance of "%s" but %s given.', |
|
33 | File::class, |
|
34 | is_object($value) ? get_class($value) : gettype($value) |
|
35 | )); |
|
36 | } |
|
37 | ||
38 | return $value; |
|
39 | } |
|
40 | ||
41 | /** |
|
42 | * {@inheritdoc} |