1 | <?php |
||
23 | class FullTextMapper |
||
24 | { |
||
25 | /** |
||
26 | * Field registry. |
||
27 | * |
||
28 | * @var \eZ\Publish\Core\Search\Common\FieldRegistry |
||
29 | */ |
||
30 | protected $fieldRegistry; |
||
31 | |||
32 | /** |
||
33 | * Content type handler. |
||
34 | * |
||
35 | * @var \eZ\Publish\SPI\Persistence\Content\Type\Handler |
||
36 | */ |
||
37 | protected $contentTypeHandler; |
||
38 | |||
39 | /** |
||
40 | * @param \eZ\Publish\Core\Search\Common\FieldRegistry $fieldRegistry |
||
41 | * @param \eZ\Publish\SPI\Persistence\Content\Type\Handler $contentTypeHandler |
||
42 | */ |
||
43 | public function __construct( |
||
50 | |||
51 | /** |
||
52 | * Map given Content to a FullTextValue. |
||
53 | * |
||
54 | * @param \eZ\Publish\SPI\Persistence\Content $content |
||
55 | * |
||
56 | * @return \eZ\Publish\Core\Search\Legacy\Content\FullTextData |
||
57 | */ |
||
58 | public function mapContent(Content $content) |
||
70 | |||
71 | /** |
||
72 | * Returns an array of FullTextValue object containing searchable values of content object |
||
73 | * fields for the given $content. |
||
74 | * |
||
75 | * @param \eZ\Publish\SPI\Persistence\Content $content |
||
76 | * |
||
77 | * @return \eZ\Publish\Core\Search\Legacy\Content\FullTextValue[] |
||
78 | */ |
||
79 | protected function getFullTextValues(Content $content) |
||
107 | |||
108 | /** |
||
109 | * Get FullTextField value. |
||
110 | * |
||
111 | * @param Content\Field $field |
||
112 | * @param Type\FieldDefinition $fieldDefinition |
||
113 | * @return string |
||
114 | */ |
||
115 | private function getFullTextFieldValue(Content\Field $field, Type\FieldDefinition $fieldDefinition) |
||
133 | } |
||
134 |
It seems like the type of the argument is not accepted by the function/method which you are calling.
In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.
We suggest to add an explicit type cast like in the following example: