Skip to content

Commit

Permalink
IBX-8562: Applied rebranding to ezplatform-kernel code
Browse files Browse the repository at this point in the history
  • Loading branch information
Nattfarinn committed Aug 7, 2024
1 parent cac2b16 commit bfb03b0
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 109 deletions.
73 changes: 0 additions & 73 deletions eZ/Publish/Core/settings/storage_engines/legacy/content.yml

This file was deleted.

27 changes: 1 addition & 26 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -14905,21 +14905,6 @@ parameters:
count: 1
path: src/lib/Persistence/Legacy/Bookmark/Mapper.php

-
message: "#^Access to an undefined property object\\:\\:\\$languageCode\\.$#"
count: 1
path: src/lib/Persistence/Legacy/Content/FieldHandler.php

-
message: "#^Cannot access offset int\\|string on Ibexa\\\\Contracts\\\\Core\\\\Persistence\\\\Content\\\\Field\\.$#"
count: 3
path: src/lib/Persistence/Legacy/Content/FieldHandler.php

-
message: "#^Cannot access offset string on Ibexa\\\\Contracts\\\\Core\\\\Persistence\\\\Content\\\\Field\\.$#"
count: 5
path: src/lib/Persistence/Legacy/Content/FieldHandler.php

-
message: "#^Method Ibexa\\\\Core\\\\Persistence\\\\Legacy\\\\Content\\\\FieldHandler\\:\\:copyField\\(\\) has no return type specified\\.$#"
count: 1
Expand Down Expand Up @@ -14970,11 +14955,6 @@ parameters:
count: 1
path: src/lib/Persistence/Legacy/Content/FieldHandler.php

-
message: "#^Method Ibexa\\\\Core\\\\Persistence\\\\Legacy\\\\Content\\\\FieldHandler\\:\\:getFieldMap\\(\\) should return array\\<Ibexa\\\\Contracts\\\\Core\\\\Persistence\\\\Content\\\\Field\\> but returns array\\<int, array\\<string, Ibexa\\\\Contracts\\\\Core\\\\Persistence\\\\Content\\\\Field\\>\\>\\.$#"
count: 1
path: src/lib/Persistence/Legacy/Content/FieldHandler.php

-
message: "#^Method Ibexa\\\\Core\\\\Persistence\\\\Legacy\\\\Content\\\\FieldHandler\\:\\:loadExternalFieldData\\(\\) has no return type specified\\.$#"
count: 1
Expand All @@ -14995,18 +14975,13 @@ parameters:
count: 1
path: src/lib/Persistence/Legacy/Content/FieldHandler.php

-
message: "#^Parameter \\#1 \\$field of method Ibexa\\\\Core\\\\Persistence\\\\Legacy\\\\Content\\\\FieldHandler\\:\\:updateField\\(\\) expects Ibexa\\\\Contracts\\\\Core\\\\Persistence\\\\Content\\\\Field, object given\\.$#"
count: 1
path: src/lib/Persistence/Legacy/Content/FieldHandler.php

-
message: "#^Parameter \\#2 \\$languageCode of method Ibexa\\\\Core\\\\Persistence\\\\Legacy\\\\Content\\\\FieldHandler\\:\\:getEmptyField\\(\\) expects string, int\\|string given\\.$#"
count: 2
path: src/lib/Persistence/Legacy/Content/FieldHandler.php

-
message: "#^Parameter \\#3 \\$originalField of method Ibexa\\\\Core\\\\Persistence\\\\Legacy\\\\Content\\\\FieldHandler\\:\\:updateCopiedField\\(\\) expects Ibexa\\\\Contracts\\\\Core\\\\Persistence\\\\Content\\\\Field, object given\\.$#"
message: "#^Property Ibexa\\\\Contracts\\\\Core\\\\Persistence\\\\Content\\\\Field\\:\\:\\$id \\(int\\) in isset\\(\\) is not nullable\\.$#"
count: 1
path: src/lib/Persistence/Legacy/Content/FieldHandler.php

Expand Down
2 changes: 1 addition & 1 deletion src/lib/Persistence/Legacy/Content/FieldHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ protected function updateCopiedField(Field $field, Field $updateField, Field $or
* @param \Ibexa\Contracts\Core\Persistence\Content\Field[] $fields
* @param array $languageCodes
*
* @return array<int, array<string, \Ibexa\Contracts\Core\Persistence\Content\Field[]>
* @return array<int, array<string, \Ibexa\Contracts\Core\Persistence\Content\Field>>
*/
protected function getFieldMap(array $fields, &$languageCodes = null)
{
Expand Down
5 changes: 1 addition & 4 deletions src/lib/Persistence/Legacy/Content/Handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,7 @@ class Handler implements BaseContentHandler
*/
protected $treeHandler;

/**
* @var \eZ\Publish\SPI\Persistence\Content\Language\Handler
*/
protected $languageHandler;
protected LanguageHandler $languageHandler;

/** @var \Psr\Log\LoggerInterface */
private $logger;
Expand Down
1 change: 1 addition & 0 deletions src/lib/Persistence/Legacy/Content/Mapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,7 @@ private function buildContentObjects(

/**
* @phpstan-param TRawContentRow[] $rows
* @param string[]|null $translations
*
* @phpstan-return TVersionedLanguageFieldDefinitionsMap
*
Expand Down
8 changes: 3 additions & 5 deletions tests/lib/Persistence/Legacy/Content/ContentHandlerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,13 +112,11 @@ class ContentHandlerTest extends TestCase
protected $contentTypeHandlerMock;

/**
* @var \PHPUnit\Framework\MockObject\MockObject&\eZ\Publish\Core\Persistence\Legacy\Content\Language\Handler
* @var \PHPUnit\Framework\MockObject\MockObject&\Ibexa\Core\Persistence\Legacy\Content\Language\Handler
*/
private $languageHandlerMock;
private LanguageHandler $languageHandlerMock;

/**
* @covers \eZ\Publish\Core\Persistence\Legacy\Content\Handler::create
*
* @todo Current method way to complex to test, refactor!
*/
public function testCreate()
Expand Down Expand Up @@ -1590,7 +1588,7 @@ protected function getContentTypeHandlerMock()
}

/**
* @return \PHPUnit\Framework\MockObject\MockObject&\eZ\Publish\Core\Persistence\Legacy\Content\Language\Handler
* @return \PHPUnit\Framework\MockObject\MockObject&\Ibexa\Core\Persistence\Legacy\Content\Language\Handler
*/
protected function getLanguageHandlerMock(): LanguageHandler
{
Expand Down

0 comments on commit bfb03b0

Please sign in to comment.