Skip to content

PHPStan doesn't understand the PHP7.3+ signature of setrawcookie. #4348

@paulbalandan

Description

@paulbalandan

Bug report

Using the latest PHPStan version on PHP 7.4

As of PHP7.3+, PHP allows setting an option array to setcookie and setrawcookie instead of manually supplying all options.

https://www.php.net/manual/en/function.setrawcookie.php

Code snippet that reproduces the problem.

https://phpstan.org/r/0da67696-93eb-4dee-8e36-df50430f437b

Expected output

Like in setcookie, phpstan should not complain on setrawcookie's alternative signature.

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