Skip to content

Fixed parameter type of Phar::setStub() #6596

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed

Fixed parameter type of Phar::setStub() #6596

wants to merge 1 commit into from

Conversation

dktapps
Copy link
Contributor

@dktapps dktapps commented Jan 12, 2021

The docs say string only, but after examining the code it's apparent that both resource and string are accepted.

While this currently doesn't affect anything functionally, these docs are used by static analysers that use these stubs, such as PHPStan.

The docs say string only, but after examining the code it's apparent that both resource _and_ string are accepted.
@php-pulls php-pulls closed this in 0aad774 Jan 18, 2021
@nikic
Copy link
Member

nikic commented Jan 18, 2021

I've merged this with additional fixes for the issue that @kocsismate mentioned, as well as an update of PharData, which should have the same signatures as Phar.

@dktapps dktapps deleted the phar-setstub branch March 28, 2021 16:38
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.

3 participants