@@ -8,6 +8,9 @@ |
||
8 | 8 | */ |
9 | 9 | class IncompatibleDataException extends \Exception |
10 | 10 | { |
11 | + /** |
|
12 | + * @param \ReflectionClass $allowedTypes |
|
13 | + */ |
|
11 | 14 | public function __construct(FormatterInterface $formatter, $data, $allowedTypes) |
12 | 15 | { |
13 | 16 | $formatterDescription = get_class($formatter); |
@@ -20,10 +20,10 @@ discard block |
||
20 | 20 | protected static function describeDataType($data) |
21 | 21 | { |
22 | 22 | if ($data instanceof \ReflectionClass) { |
23 | - return 'an instance of ' . $data->getName(); |
|
23 | + return 'an instance of '.$data->getName(); |
|
24 | 24 | } |
25 | 25 | if (is_object($data)) { |
26 | - return 'an instance of ' . get_class($data); |
|
26 | + return 'an instance of '.get_class($data); |
|
27 | 27 | } |
28 | 28 | if (is_array($data)) { |
29 | 29 | return 'an array'; |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | if (is_string($data)) { |
32 | 32 | return 'a string'; |
33 | 33 | } |
34 | - return '<' . var_export($data) . '>'; |
|
34 | + return '<'.var_export($data).'>'; |
|
35 | 35 | } |
36 | 36 | |
37 | 37 | protected static function describeAllowedTypes($allowedTypes) |