odan / session

A middleware oriented session handler for PHP and Slim 4+
https://odan.github.io/session/
MIT License
56 stars 11 forks source link

Method "has" #29

Closed kaxias closed 1 year ago

kaxias commented 1 year ago

why has the method "has" been removed?

odan commented 1 year ago

Hi! I tried to simplify the new SessionInterface to a minimum and I guess the has method was removed because the get method can also be used for such a use case.

Example

if ($session->get('key') === null) {
   // ...
}

If this doesn't make sense to you, I would offer a fix that adds the has method back again.

odan commented 1 year ago

Update: The has method has been added again according to the documentation.