Skip to content

tests: Add type hints to data providers#813

Merged
mblaney merged 2 commits intosimplepie:masterfrom
jtojnar:test-provider-generators
May 30, 2023
Merged

tests: Add type hints to data providers#813
mblaney merged 2 commits intosimplepie:masterfrom
jtojnar:test-provider-generators

Conversation

@jtojnar
Copy link
Member

@jtojnar jtojnar commented Mar 18, 2023

First commit based on cherry-pick from #774, cc @Art4. Then continued adding type hints which will be necessary for higher levels of PHPStan.

Should be fine for rebase merge (no squash).

There is no need for an unwieldy iteration with reference for a single item.
We can yield the value instead of returning array.

While at it, let’s also add type hints.

Co-authored-by: Art4 <art4@wlabs.de>
@jtojnar jtojnar force-pushed the test-provider-generators branch from 4a5ce75 to 5c05210 Compare March 18, 2023 18:40
and the tests that use them.

This will be necessary for higher levels of PHPStan.
@mblaney mblaney merged commit 2610398 into simplepie:master May 30, 2023
@jtojnar jtojnar deleted the test-provider-generators branch May 30, 2023 12:14
@Art4 Art4 added this to the 1.9.0 milestone Sep 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants