Skip to content

Add support template types#218

Open
WyriHaximus wants to merge 1 commit into
ReactiveX:masterfrom
WyriHaximus-secret-labs:template-types
Open

Add support template types#218
WyriHaximus wants to merge 1 commit into
ReactiveX:masterfrom
WyriHaximus-secret-labs:template-types

Conversation

@WyriHaximus

@WyriHaximus WyriHaximus commented Aug 7, 2023

Copy link
Copy Markdown
Contributor

Depends on #217

  • Add template types, making observables usable as generics
  • Introduce PHPStan (v2)
  • Added type tests under tests/types/
  • Run PHPStan at max level and resolved all issues found

@WyriHaximus
WyriHaximus force-pushed the template-types branch 11 times, most recently from 022ee96 to 006cb2a Compare November 27, 2023 22:51
WyriHaximus added a commit to WyriHaximus/reactphp-awaitable-observable that referenced this pull request Nov 30, 2023
@WyriHaximus
WyriHaximus force-pushed the template-types branch 3 times, most recently from 9c0ae45 to 63ee9a6 Compare December 2, 2023 18:40
@WyriHaximus
WyriHaximus marked this pull request as ready for review December 2, 2023 18:44
Comment thread phpstan.neon.dist

paths:
- src/
- test/types/

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Didn't widen this to include the entire test directory because that would add 1752 errors to solve. This PR alone was already almost 1K.

Comment thread src/Operator/ThrottleOperator.php Outdated
@WyriHaximus
WyriHaximus force-pushed the template-types branch 2 times, most recently from e0d57b2 to af34b8d Compare December 2, 2023 20:29
@WyriHaximus WyriHaximus changed the title [WIP] Add support template types [Add support template types Dec 2, 2023
@WyriHaximus

Copy link
Copy Markdown
Contributor Author

@davidwdan && @mbonneau This covers the basics ( 😅 ) and is ready for review. Is there anything you want me to add in the test/types/ set of type tests? Will do some package type testing tomorrow in WyriHaximus/reactphp-awaitable-observable#65

WyriHaximus added a commit to WyriHaximus/reactphp-awaitable-observable that referenced this pull request Dec 3, 2023
WyriHaximus added a commit to WyriHaximus/reactphp-awaitable-observable that referenced this pull request Dec 3, 2023
@WyriHaximus

Copy link
Copy Markdown
Contributor Author

@WyriHaximus WyriHaximus changed the title [Add support template types Add support template types Dec 6, 2023
WyriHaximus added a commit to WyriHaximus/reactphp-awaitable-observable that referenced this pull request Dec 13, 2023
WyriHaximus added a commit to WyriHaximus/reactphp-awaitable-observable that referenced this pull request Feb 27, 2026
WyriHaximus added a commit to WyriHaximus/reactphp-awaitable-observable that referenced this pull request Feb 27, 2026
* Add template types, making observables usable as generics
* Introduce PHPStan (v2)
* Added type tests under `tests/types/`
* Run PHPStan at `max` level and resolved all issues found
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant