Skip to content
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

function rar_open not found #4702

Closed
jaydiablo opened this issue Mar 14, 2021 · 3 comments
Closed

function rar_open not found #4702

jaydiablo opened this issue Mar 14, 2021 · 3 comments
Labels

Comments

@jaydiablo
Copy link
Contributor

Bug report

PHPStan doesn't seem to be obeying the functionMap for some rar extension functions. According to the PHP docs, this function is available with the rar extension:

https://www.php.net/manual/en/rararchive.open.php

And the signature is defined in PHPStan's functionMap file:

https://github.com/phpstan/phpstan-src/blob/master/resources/functionMap.php#L9085

But PHPStan is still throwing an error for code that uses this function (see below).

Code snippet that reproduces the problem

https://phpstan.org/r/604a3d84-0b54-42a0-882d-0d36b2f48e0b

Expected output

rar_open should be found, right?

@ondrejmirtes
Copy link
Member

Fixed: phpstan/phpstan-src@b51a26f

@jaydiablo
Copy link
Contributor Author

Thanks!

@github-actions
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 29, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants