Skip to content

Union type declaration in Session.php is available as of PHP 8.0.0 #416

@mitkola

Description

@mitkola

Stash cache from version 0.17.0+ and later require PHP 7+, but there are union type declaration
which is available as of PHP 8.0.0.
This lead to syntax error in PHP 7+ environments!

public function gc($maxlifetime) : int|false

I suggest to use mixed return type and update PHP doc header.

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