Skip to content

Template params can only have one argument - #35

Merged
clue merged 1 commit into
reactphp:1.xfrom
WyriHaximus-labs:1.x-template-params-can-only-have-one-argument
Jan 25, 2023
Merged

Template params can only have one argument#35
clue merged 1 commit into
reactphp:1.xfrom
WyriHaximus-labs:1.x-template-params-can-only-have-one-argument

Conversation

@WyriHaximus

Copy link
Copy Markdown
Member

The fact that a promise can also be rejected with a Throwable and/or Exception is implied and there is no need to also define that here.

Refs: reactphp/promise#223

@clueclue added maintenance and removed bug labels Jan 24, 2023

@clueclue left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Just noticed this should also be applied to the README documentation. @WyriHaximus is this something you can look into? 👍

@WyriHaximus
WyriHaximusforce-pushed the 1.x-template-params-can-only-have-one-argument branch from eba153c to 709e36bCompareJanuary 24, 2023 16:04
@WyriHaximus
WyriHaximus requested a review from clueJanuary 24, 2023 16:05
@WyriHaximus

Copy link
Copy Markdown
MemberAuthor

Just noticed this should also be applied to the README documentation. @WyriHaximus is this something you can look into? +1

@clue Just updated the README documentation and amended those changes to this PR.

@SimonFrings

Copy link
Copy Markdown
Member

@WyriHaximus Same should also be applied to the UnwrapWritableStream.php and UnwrapReadableStream.php files, right?

The fact that a promise can also be rejected with a Throwable and/or Exception is implied and there is no need to also define that here.
Refs: reactphp/promise#223
@WyriHaximus
WyriHaximusforce-pushed the 1.x-template-params-can-only-have-one-argument branch from 709e36b to b606aecCompareJanuary 25, 2023 07:20
@WyriHaximus

Copy link
Copy Markdown
MemberAuthor

@WyriHaximus Same should also be applied to the UnwrapWritableStream.php and UnwrapReadableStream.php files, right?

@SimonFrings Hah yeah I assumed we only do PromiseInterface< in the packages not Promise< as well. Updated those two files as well and doing a search through the other packages as well to be sure I didn't miss anything else.

@clue
clue merged commit 2806f6f into reactphp:1.xJan 25, 2023
Sign up for freeto 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

@WyriHaximus@SimonFrings@clue