Skip to content

flock LOCK_SH, LOCK_EX, LOCK_UN options are exclusive #12850

Open
@mvorisek

Description

@mvorisek

Feature request

repro: https://phpstan.org/r/9a616a84-4e70-4c5f-aa49-4be418b1745e

I would expect phpstan to emit an error as the LOCK_SH, LOCK_EX, LOCK_UN options are exclusive.

Only the LOCK_NB option can be combined and cannot be used alone.

So the function should accept only 6 constant options.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions