Skip to content

function rar_open not found #4702

@jaydiablo

Description

@jaydiablo

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions