Fix empty data provider case#6866
Merged
TavoNiievez merged 3 commits intoCodeception:mainfrom Jun 9, 2025
joester89:patch-1
Merged
Fix empty data provider case#6866TavoNiievez merged 3 commits intoCodeception:mainfrom joester89:patch-1
TavoNiievez merged 3 commits intoCodeception:mainfrom
joester89:patch-1
Conversation
Only in the case where there is no data AND no data providers the method should return null. When you get to line 84, there is either data or data providers. Meaning you expect an array as a result.
TavoNiievez
approved these changes
Jun 9, 2025
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
With the changes made in 209bc3c#diff-491b603924b17185d68644a66e22a2ff3a83d8e0cf8a2af533114967cf9b9b49R31-R84, when a function has an empty data provider, the result of the method is
nullinstead of an empty array.