-
-
Notifications
You must be signed in to change notification settings - Fork 190
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge tag '2.1.4' into 2.1.x-merge-up-into-3.0.x_IPBBMKgx
2.1.x bugfix release (patch) - Total issues resolved: **0** - Total pull requests resolved: **4** - Total contributors: **3** - [380: Improve return type for Collection::partition](#380) thanks to @heiglandreas - [379: Make returntypes consistent with implementation](#379) thanks to @heiglandreas - [377: Add doctrine-project.json to .gitattributes](#377) thanks to @VincentLanglet - [376: Doctrine Coding Standard 12](#376) thanks to @derrabus * tag '2.1.4': Improve return type for Collection::partition (#380) Make returntypes consistend with implementation (#379) Add doctrine-project.json to .gitattributes (#377) Doctrine Coding Standard 12 (#376)
- Loading branch information
Showing
4 changed files
with
35 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -177,13 +177,7 @@ public function findFirst(Closure $p): mixed | |
return $this->collection->findFirst($p); | ||
} | ||
|
||
/** | ||
* @psalm-param Closure(T, TKey):bool $p | ||
* | ||
* @return ReadableCollection<mixed> | ||
* @psalm-return ReadableCollection<TKey, T> | ||
*/ | ||
public function filter(Closure $p): ReadableCollection | ||
public function filter(Closure $p): Collection | ||
Check failure on line 180 in src/AbstractLazyCollection.php GitHub Actions / Coding Standards / Coding Standards (8.1)
Check failure on line 180 in src/AbstractLazyCollection.php GitHub Actions / Coding Standards / Coding Standards (8.1)
|
||
{ | ||
$this->initialize(); | ||
|
||
|
@@ -197,15 +191,7 @@ public function forAll(Closure $p): bool | |
return $this->collection->forAll($p); | ||
} | ||
|
||
/** | ||
* @psalm-param Closure(T):U $func | ||
* | ||
* @return ReadableCollection<mixed> | ||
* @psalm-return ReadableCollection<TKey, U> | ||
* | ||
* @psalm-template U | ||
*/ | ||
public function map(Closure $func): ReadableCollection | ||
public function map(Closure $func): Collection | ||
Check failure on line 194 in src/AbstractLazyCollection.php GitHub Actions / Coding Standards / Coding Standards (8.1)
Check failure on line 194 in src/AbstractLazyCollection.php GitHub Actions / Coding Standards / Coding Standards (8.1)
|
||
{ | ||
$this->initialize(); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters