Skip to content

Commit

Permalink
Merged branch '4.6'
Browse files Browse the repository at this point in the history
  • Loading branch information
alongosz committed Jul 10, 2024
2 parents d60d939 + c2333a0 commit 3f556ba
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 28 deletions.
25 changes: 0 additions & 25 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -330,36 +330,11 @@ parameters:
count: 1
path: src/lib/FieldMapper/ContentTranslationFieldMapper/Aggregate.php

-
message: "#^Access to protected property Ibexa\\\\Contracts\\\\Core\\\\Search\\\\Field\\:\\:\\$name\\.$#"
count: 1
path: src/lib/FieldMapper/ContentTranslationFieldMapper/BlockDocumentsContentFields.php

-
message: "#^Access to protected property Ibexa\\\\Contracts\\\\Core\\\\Search\\\\Field\\:\\:\\$type\\.$#"
count: 2
path: src/lib/FieldMapper/ContentTranslationFieldMapper/BlockDocumentsContentFields.php

-
message: "#^Access to protected property Ibexa\\\\Contracts\\\\Core\\\\Search\\\\Field\\:\\:\\$value\\.$#"
count: 2
path: src/lib/FieldMapper/ContentTranslationFieldMapper/BlockDocumentsContentFields.php

-
message: "#^Property Ibexa\\\\Contracts\\\\Core\\\\Search\\\\FieldType\\:\\:\\$boost \\(int\\) does not accept float\\.$#"
count: 1
path: src/lib/FieldMapper/ContentTranslationFieldMapper/BlockDocumentsContentFields.php

-
message: "#^Access to protected property Ibexa\\\\Contracts\\\\Core\\\\Search\\\\Field\\:\\:\\$type\\.$#"
count: 1
path: src/lib/FieldMapper/ContentTranslationFieldMapper/ContentDocumentFulltextFields.php

-
message: "#^Access to protected property Ibexa\\\\Contracts\\\\Core\\\\Search\\\\Field\\:\\:\\$value\\.$#"
count: 2
path: src/lib/FieldMapper/ContentTranslationFieldMapper/ContentDocumentFulltextFields.php

-
message: "#^Parameter \\#2 \\$array of function array_map expects array, iterable\\<Ibexa\\\\Contracts\\\\Core\\\\Persistence\\\\Content\\> given\\.$#"
count: 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public function mapFields(Content $content, $languageCode)
}

foreach ($contentType->fieldDefinitions as $fieldDefinition) {
if ($fieldDefinition->id !== $field->fieldDefinitionId) {
if ($fieldDefinition->id !== $field->fieldDefinitionId || !$fieldDefinition->isSearchable) {
continue;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ private function doMapFields(Content $content, ContentType $contentType, $langua
}

foreach ($contentType->fieldDefinitions as $fieldDefinition) {
if ($fieldDefinition->id !== $field->fieldDefinitionId) {
if ($fieldDefinition->id !== $field->fieldDefinitionId || !$fieldDefinition->isSearchable) {
continue;
}

Expand All @@ -139,7 +139,7 @@ private function doMapFields(Content $content, ContentType $contentType, $langua
continue;
}

if (!$indexField->type instanceof FieldType\FullTextField || !$fieldDefinition->isSearchable) {
if (!$indexField->type instanceof FieldType\FullTextField) {
continue;
}

Expand Down

0 comments on commit 3f556ba

Please sign in to comment.