Skip to content

Sessions not working #1

@ericOrthoshop

Description

@ericOrthoshop

I get an error pretty much immediately upon using the session.

  • PHP 8.2.12
  • flightphp/core: 3.13
  • flightphp/session: 0.1.1

Deprecated: Return type of flight\Session::gc($maxLifetime) should either be compatible with SessionHandlerInterface::gc(int $max_lifetime): int|false, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in D:\Repositories\prjm\vendor\flightphp\session\src\Session.php on line 244

 $app = Flight::app();
 $app->register('session', Session::class);
 
 Flight::route('/', function () {
     $session = Flight::session();

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