Skip to content

Commit a51258f

Browse files
committed
fixup! Fixed issues reported by phpstan
1 parent ef9997a commit a51258f

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

phpstan-baseline.neon

-5
Original file line numberDiff line numberDiff line change
@@ -240,11 +240,6 @@ parameters:
240240
count: 1
241241
path: src/lib/Mapper/PagerSearchContentToDataMapper.php
242242

243-
-
244-
message: "#^Method Ibexa\\\\Search\\\\Mapper\\\\PagerSearchContentToDataMapper\\:\\:map\\(\\) return type has no value type specified in iterable type array\\.$#"
245-
count: 1
246-
path: src/lib/Mapper/PagerSearchContentToDataMapper.php
247-
248243
-
249244
message: "#^Parameter \\#1 \\$array of function array_filter expects array, iterable\\<Ibexa\\\\Contracts\\\\Core\\\\Repository\\\\Values\\\\Content\\\\Language\\> given\\.$#"
250245
count: 1

src/lib/Mapper/PagerSearchContentToDataMapper.php

+3
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,9 @@ public function __construct(
7676
$this->locationResolver = $locationResolver;
7777
}
7878

79+
/**
80+
* @phpstan-return TData[]
81+
*/
7982
public function map(Pagerfanta $pager): array
8083
{
8184
$data = [];

0 commit comments

Comments
 (0)