Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove Countable from execute return type #7149

Merged
merged 1 commit into from
May 2, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Datagrid/ProxyQueryInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ interface ProxyQueryInterface
public function __call($name, $args);

/**
* @return array<object>|(\Traversable<object>&\Countable)
* @return array<object>|\Traversable<object>
*/
public function execute();

Expand Down
4 changes: 2 additions & 2 deletions src/Model/ModelManagerInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -332,9 +332,9 @@ public function modelTransform($class, $instance);
/**
* @param object $query
*
* @return array<object>|(\Traversable<object>&\Countable)
* @return array<object>|\Traversable<object>
*
* @phpstan-return array<T>|(\Traversable<T>&\Countable)
* @phpstan-return array<T>|\Traversable<T>
*/
public function executeQuery($query);

Expand Down