@@ -28,13 +28,13 @@ |
||
28 | 28 | |
29 | 29 | /** |
30 | 30 | * Returns the given object as an associative array |
31 | - * @param AnnotatedInterface|object $model |
|
31 | + * @param AnnotatedInterface $model |
|
32 | 32 | * @param string[] $fields Fields to transform |
33 | 33 | * |
34 | 34 | * @param int $inline The level where you switch to inline YAML |
35 | 35 | * @param int $indent The amount of spaces to use for indentation of nested nodes. |
36 | 36 | * @param bool $exceptionOnInvalidType true if an exception must be thrown on invalid types (a PHP resource or object), false otherwise |
37 | - * @return array an associative array of the contents of this object |
|
37 | + * @return string an associative array of the contents of this object |
|
38 | 38 | */ |
39 | 39 | public static function fromModel(AnnotatedInterface $model, $fields = [], $inline = 2, $indent = 4, $exceptionOnInvalidType = false) |
40 | 40 | { |