Skip to content

Commit

Permalink
fix: Code review
Browse files Browse the repository at this point in the history
  • Loading branch information
Nattfarinn committed May 29, 2024
1 parent 36862c2 commit 6627c20
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 12 deletions.
10 changes: 0 additions & 10 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -52965,16 +52965,6 @@ parameters:
count: 1
path: tests/lib/Persistence/Legacy/Content/Section/SectionHandlerTest.php

-
message: "#^Call to an undefined method Ibexa\\\\Contracts\\\\Core\\\\FieldType\\\\FieldStorage\\:\\:expects\\(\\)\\.$#"
count: 8
path: tests/lib/Persistence/Legacy/Content/StorageHandlerTest.php

-
message: "#^Call to an undefined method Ibexa\\\\Core\\\\Persistence\\\\Legacy\\\\Content\\\\StorageRegistry\\:\\:expects\\(\\)\\.$#"
count: 5
path: tests/lib/Persistence/Legacy/Content/StorageHandlerTest.php

-
message: "#^Method Ibexa\\\\Tests\\\\Core\\\\Persistence\\\\Legacy\\\\Content\\\\StorageRegistryTest\\:\\:testGetNotFound\\(\\) has no return type specified\\.$#"
count: 1
Expand Down
2 changes: 2 additions & 0 deletions src/contracts/Event/Mapper/ResolveMissingFieldEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
* @copyright Copyright (C) Ibexa AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
*/
declare(strict_types=1);

namespace Ibexa\Contracts\Core\Event\Mapper;

use Ibexa\Contracts\Core\Persistence\Content;
Expand Down
6 changes: 4 additions & 2 deletions tests/lib/Persistence/Legacy/Content/StorageHandlerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,12 @@
*/
class StorageHandlerTest extends TestCase
{
/** @var \Ibexa\Core\Persistence\Legacy\Content\StorageRegistry&\PHPUnit\Framework\MockObject\MockObject */
protected StorageRegistry $storageRegistryMock;

protected StorageHandler $storageHandler;

/** @var \Ibexa\Contracts\Core\FieldType\FieldStorage&\PHPUnit\Framework\MockObject\MockObject */
protected FieldStorage $storageMock;

protected VersionInfo $versionInfoMock;
Expand Down Expand Up @@ -184,7 +186,7 @@ protected function getContextMock(): array
/**
* Returns a StorageRegistry mock.
*
* @return \Ibexa\Core\Persistence\Legacy\Content\StorageRegistry
* @return \Ibexa\Core\Persistence\Legacy\Content\StorageRegistry&\PHPUnit\Framework\MockObject\MockObject
*/
protected function getStorageRegistryMock(): StorageRegistry
{
Expand All @@ -201,7 +203,7 @@ protected function getStorageRegistryMock(): StorageRegistry
/**
* Returns a Storage mock.
*
* @return \Ibexa\Contracts\Core\FieldType\FieldStorage
* @return \Ibexa\Contracts\Core\FieldType\FieldStorage&\PHPUnit\Framework\MockObject\MockObject
*/
protected function getStorageMock(): FieldStorage
{
Expand Down

0 comments on commit 6627c20

Please sign in to comment.