Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecated SessionIdentifierAwareInterface for removal in v2.0 #61

Merged
merged 3 commits into from
Aug 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions psalm-baseline.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,32 @@
<code>generateCacheHeaders</code>
</UnusedMethod>
</file>
<file src="src/LazySession.php">
<DeprecatedInterface>
<code>LazySession</code>
</DeprecatedInterface>
</file>
<file src="src/RetrieveSession.php">
<UnusedConstructor>
<code>__construct</code>
</UnusedConstructor>
</file>
<file src="src/Session.php">
<DeprecatedInterface>
<code>Session</code>
</DeprecatedInterface>
<MixedInferredReturnType>
<code>null|bool|int|float|string|array</code>
</MixedInferredReturnType>
<MixedReturnStatement>
<code>json_decode(json_encode($value, JSON_PRESERVE_ZERO_FRACTION), true)</code>
</MixedReturnStatement>
</file>
<file src="src/SessionPersistenceInterface.php">
<DeprecatedInterface>
<code><![CDATA[SessionInterface&SessionIdentifierAwareInterface]]></code>
</DeprecatedInterface>
</file>
<file src="test/Persistence/CacheHeadersGeneratorTraitTest.php">
<PossiblyUnusedMethod>
<code>provideCacheHeaderValues</code>
Expand Down
4 changes: 4 additions & 0 deletions src/SessionIdentifierAwareInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@

namespace Mezzio\Session;

/**
* @deprecated This interface will be removed in version 2.0 of this component.
* The method getId() has been added to SessionInterface.
*/
interface SessionIdentifierAwareInterface
{
/**
Expand Down