Skip to content

SessionUpdateTimestampHandlerInterface - wrong parameter types #4084

@ramonacat

Description

@ramonacat

Bug report

It appears that there's a mismatch in the parameter types for \SessionUpdateTimestampHandlerInterface. I checked the phpstorm-stubs, and the type declared there is string (https://github.com/JetBrains/phpstorm-stubs/blob/05d145c0bbafcf9a551fdd8824adb2a7e259fdaf/session/SessionHandler.php#L132). But PHPStan seems to believe it is
mixed (on PHP versions lower that 8.0)

Code snippet that reproduces the problem

https://phpstan.org/r/f988cac3-c01b-4845-978d-17071e28a616

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