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

Added a common return type for Collection::getIterator() method #1889

Merged
merged 9 commits into from
Jun 27, 2022

Conversation

gechetspr
Copy link
Contributor

OnDemandCollection::getIterator docblock has not compatible type with the base class. Added a common type for both classes

@codecov-commenter
Copy link

codecov-commenter commented Jun 27, 2022

Codecov Report

Merging #1889 (805531c) into master (0f39bb2) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master    #1889   +/-   ##
=========================================
  Coverage     87.61%   87.61%           
  Complexity     7814     7814           
=========================================
  Files           227      227           
  Lines         21161    21161           
=========================================
  Hits          18541    18541           
  Misses         2620     2620           
Flag Coverage Δ
5-max 87.61% <ø> (ø)
7.4 87.61% <ø> (ø)
agnostic 66.99% <ø> (ø)
mysql 68.88% <ø> (ø)
pgsql 68.89% <ø> (ø)
sqlite 66.72% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/Propel/Runtime/Collection/Collection.php 94.80% <ø> (ø)
...c/Propel/Runtime/Collection/CollectionIterator.php 52.50% <ø> (ø)
...c/Propel/Runtime/Collection/OnDemandCollection.php 63.15% <ø> (ø)
src/Propel/Runtime/Collection/OnDemandIterator.php 93.54% <ø> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0f39bb2...805531c. Read the comment docs.

@dereuromark dereuromark mentioned this pull request Jun 27, 2022
8 tasks
@dereuromark dereuromark merged commit c3ef974 into propelorm:master Jun 27, 2022
mringler pushed a commit to mringler/Propel2 that referenced this pull request Jun 28, 2022
…elorm#1889)

* Adjusted docblock for collections in order to have common type for getIterator() method

* Added a common interface for iterators
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants