Skip to content

Commit

Permalink
Deprecate SessionIdentifierAwareInterface for removal in v2.0 (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexmerlin authored Aug 16, 2024
1 parent 8bb7dbf commit 5b027d0
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
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

0 comments on commit 5b027d0

Please sign in to comment.