Skip to content

setcookie should have case insensitive options #4431

@VincentLanglet

Description

@VincentLanglet

Bug report

In phpstan/phpstan-src@ccb1d4d#diff-c312b4005d27355bf5f061f358f3627e530135b48e7f1fac49b235784a821d36R10152

The samesite options was restrict to 'None\'|\'Lax\'|\'Strict\', but it should be case insensitive instead.

@ondrejmirtes Is there a way to tell that the constant can be case insensitive or should I change the signature to
\'None\'|\'Lax\'|\'Strict\'|'none\'|\'lax\'|\'strict\' in order to at least works with the most common values ?

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