Skip to content

getenv only returns array if $varname is omitted #4538

@paulbalandan

Description

@paulbalandan

Bug report

Code snippet that reproduces the problem

https://phpstan.org/r/21dfbb84-01af-4942-93a7-e25db979bc84

Running on phpstan v0.12.76 and fails on PHP8+

Expected output

No errors!

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