Skip to content

Commit

Permalink
Fixed PHPStan errors after upstream update (#924)
Browse files Browse the repository at this point in the history
  • Loading branch information
Steveb-p authored Sep 29, 2023
1 parent 24f0c2f commit 0a877d6
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -4506,7 +4506,7 @@ parameters:
path: src/lib/Form/Data/FormMapper/UserCreateMapper.php

-
message: "#^Cannot access offset mixed on iterable\\<Ibexa\\\\Contracts\\\\Core\\\\Repository\\\\Values\\\\Content\\\\Field\\>\\.$#"
message: "#^Cannot access offset string on iterable\\<Ibexa\\\\Contracts\\\\Core\\\\Repository\\\\Values\\\\Content\\\\Field\\>\\.$#"
count: 1
path: src/lib/Form/Data/FormMapper/UserUpdateMapper.php

Expand Down
2 changes: 1 addition & 1 deletion src/lib/Menu/ContentEditAnchorMenuBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@

use Ibexa\AdminUi\Menu\Event\ConfigureMenuEvent;
use Ibexa\Contracts\AdminUi\Menu\AbstractBuilder;
use Ibexa\Contracts\Core\Repository\Values\ContentType\FieldDefinition;
use Ibexa\Contracts\Core\SiteAccess\ConfigResolverInterface;
use Ibexa\Core\Repository\Values\ContentType\ContentType;
use Ibexa\Core\Repository\Values\ContentType\FieldDefinition;
use JMS\TranslationBundle\Model\Message;
use JMS\TranslationBundle\Translation\TranslationContainerInterface;
use Knp\Menu\ItemInterface;
Expand Down
2 changes: 1 addition & 1 deletion src/lib/Menu/ContentTypeEditAnchorMenuBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
use Ibexa\AdminUi\Menu\Event\ConfigureMenuEvent;
use Ibexa\Contracts\AdminUi\Menu\AbstractBuilder;
use Ibexa\Contracts\Core\Repository\Values\ContentType\ContentTypeDraft;
use Ibexa\Core\Repository\Values\ContentType\FieldDefinition;
use Ibexa\Contracts\Core\Repository\Values\ContentType\FieldDefinition;
use JMS\TranslationBundle\Model\Message;
use JMS\TranslationBundle\Translation\TranslationContainerInterface;
use Knp\Menu\ItemInterface;
Expand Down
7 changes: 4 additions & 3 deletions tests/lib/Form/Data/FormMapper/ContentTypeDraftMapperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
use Ibexa\Contracts\AdminUi\Form\Data\FormMapper\FormDataMapperInterface;
use Ibexa\Contracts\Core\Repository\ContentTypeService;
use Ibexa\Contracts\Core\Repository\Values\Content\Location;
use Ibexa\Contracts\Core\Repository\Values\ContentType\FieldDefinition as ApiFieldDefinition;
use Ibexa\Contracts\Core\Repository\Values\ContentType\FieldDefinitionCollection as FieldDefinitionCollectionInterface;
use Ibexa\Contracts\Core\Repository\Values\ValueObject;
use Ibexa\Core\FieldType\Value;
Expand Down Expand Up @@ -221,7 +222,7 @@ private function createFieldDefinitionsData(
}

private function createFieldDefinitionData(
FieldDefinition $fieldDefinition,
ApiFieldDefinition $fieldDefinition,
ContentTypeData $contentTypeData,
bool $enabled
): FieldDefinitionData {
Expand All @@ -230,8 +231,8 @@ private function createFieldDefinitionData(
'fieldDefinition' => $fieldDefinition,
'contentTypeData' => $contentTypeData,
'identifier' => $fieldDefinition->identifier,
'names' => $fieldDefinition->names,
'descriptions' => $fieldDefinition->descriptions,
'names' => $fieldDefinition->getNames(),
'descriptions' => $fieldDefinition->getDescriptions(),
'fieldGroup' => $fieldDefinition->fieldGroup,
'position' => $fieldDefinition->position,
'isTranslatable' => $fieldDefinition->isTranslatable,
Expand Down

0 comments on commit 0a877d6

Please # to comment.