Skip to content

Fix exif_read_data function signature#57

Merged
ondrejmirtes merged 1 commit intophpstan:masterfrom
norkunas:fix-signature
Dec 17, 2019
Merged

Fix exif_read_data function signature#57
ondrejmirtes merged 1 commit intophpstan:masterfrom
norkunas:fix-signature

Conversation

@norkunas
Copy link
Copy Markdown
Contributor

exif_read_data function accepts the the first argument a string or a stream, but currently phpstan warns with: Parameter #1 $filename of function exif_read_data expects string, resource given.

@norkunas
Copy link
Copy Markdown
Contributor Author

norkunas commented Dec 17, 2019

Also in https://www.php.net/exif_read_data documentation the first arg is renamed to $stream, should I update this?

@ondrejmirtes
Copy link
Copy Markdown
Member

Nol, it's not necessary :) Thank you!

@ondrejmirtes ondrejmirtes merged commit 0073808 into phpstan:master Dec 17, 2019
@norkunas norkunas deleted the fix-signature branch December 17, 2019 10:57
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.

2 participants