Skip to content

Wrong parameter infer in PDO::sqliteCreateFunction #8802

@denis-rossati

Description

@denis-rossati

Bug report

PHPStan 1.9.14 doesn't check the required number of params correctly at PDO::sqliteCreateFunction. I did not check if the same occurs in previous versions.

Code snippet that reproduces the problem

Expected output

The documentation states that you can pass up to 4 parameters, therefore I expected 0 errors.

Did PHPStan help you today? Did it make you happy in any way?

Where I work we use phpstan in every single PHP project and it helps a lot! As a beginner programmer, I am living prove that the assertions are accurate and the errors are very friendly :) please, don't stop the great work!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions