-
Notifications
You must be signed in to change notification settings - Fork 645
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch '4.10' of https://github.com/craftcms/cms into 5.2
# Conflicts: # CHANGELOG-WIP.md # src/elements/ElementCollection.php # src/elements/db/AddressQuery.php # src/elements/db/AssetQuery.php # src/elements/db/CategoryQuery.php # src/elements/db/ElementQuery.php # src/elements/db/EntryQuery.php # src/elements/db/GlobalSetQuery.php # src/elements/db/MatrixBlockQuery.php # src/elements/db/TagQuery.php # src/elements/db/UserQuery.php
- Loading branch information
Showing
12 changed files
with
642 additions
and
65 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,6 +22,10 @@ | |
/** | ||
* Class Query | ||
* | ||
* @template TKey of array-key | ||
* @template TValue | ||
* @implements ArrayAccess<TKey, TValue> | ||
* | ||
* @author Pixel & Tonic, Inc. <[email protected]> | ||
* @since 3.0.0 | ||
*/ | ||
|
@@ -244,6 +248,7 @@ public function pairs(?YiiConnection $db = null): array | |
|
||
/** | ||
* @inheritdoc | ||
* @return array<TKey,TValue> | ||
*/ | ||
public function all($db = null): array | ||
{ | ||
|
@@ -259,7 +264,7 @@ public function all($db = null): array | |
* | ||
* @param YiiConnection|null $db The database connection used to generate the SQL statement. | ||
* If this parameter is not given, the `db` application component will be used. | ||
* @return Collection A collection of the resulting elements. | ||
* @return Collection<TKey,TValue> A collection of the resulting elements. | ||
* @since 4.0.0 | ||
*/ | ||
public function collect(?YiiConnection $db = null): Collection | ||
|
@@ -269,7 +274,7 @@ public function collect(?YiiConnection $db = null): Collection | |
|
||
/** | ||
* @inheritdoc | ||
* @return array|null | ||
* @return TValue|null | ||
*/ | ||
public function one($db = null): mixed | ||
{ | ||
|
Oops, something went wrong.