Skip to content

Conversation

ruudk
Copy link
Contributor

@ruudk ruudk commented Sep 2, 2024

This was done incorrectly in #65
/cc @dbu

Parameter #3 $options of method Http\Message\MultipartStream\MultipartStreamBuilder::addResource() expects array{headers: array<string, string>, filename: string}, array{filename: string} given.

This was done incorrectly in php-http#65
@ruudk
Copy link
Contributor Author

ruudk commented Sep 4, 2024

@dbu what about this one ?

Copy link
Contributor

@dbu dbu left a comment

Choose a reason for hiding this comment

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

oh, absolutely, sorry about that one.

Copy link
Contributor

@dbu dbu left a comment

Choose a reason for hiding this comment

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

cs fixer wants to align

@dbu dbu merged commit 276eb91 into php-http:1.x Sep 4, 2024
13 checks passed
@aboks
Copy link

aboks commented Sep 4, 2024

This change seems to cause static analysis tools like (at least) Psalm to stumble over calls to addResource; see https://psalm.dev/r/1f410c9dd2 for a minimal reproduction case. I think the ? needs to be put outside the quotes.

@ruudk ruudk deleted the patch-1 branch September 4, 2024 13:07
ruudk added a commit to ruudk/multipart-stream-builder that referenced this pull request Sep 4, 2024
Otherwise optionals don't work. See php-http#66
@ruudk
Copy link
Contributor Author

ruudk commented Sep 4, 2024

@aboks @dbu Ouch. Fixed in #67

I did not expect this at all.

dbu added a commit that referenced this pull request Sep 4, 2024
* Unquote array shape field names Otherwise optionals don't work. See #66 * align parameter phpdoc --------- Co-authored-by: David Buchmann <david@liip.ch>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants