Skip to content

Commit

Permalink
changes for psalm
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin Hamilton <[email protected]>
  • Loading branch information
TotalWipeOut committed Jan 10, 2025
1 parent 62a497b commit 06d6bd2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
8 changes: 0 additions & 8 deletions psalm-baseline.xml
Original file line number Diff line number Diff line change
Expand Up @@ -666,14 +666,6 @@
<DeprecatedInterface>
<code><![CDATA[SessionConfigFactory]]></code>
</DeprecatedInterface>
<MixedArgument>
<code><![CDATA[$config]]></code>
<code><![CDATA[$config['config_class']]]></code>
<code><![CDATA[$config['config_class']]]></code>
</MixedArgument>
<MixedAssignment>
<code><![CDATA[$config]]></code>
</MixedAssignment>
<MixedMethodCall>
<code><![CDATA[new $class()]]></code>
</MixedMethodCall>
Expand Down
5 changes: 3 additions & 2 deletions test/Service/SessionConfigFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,11 @@ protected function setUp(): void

protected function tearDown(): void
{
if ($this->originalSaveHandler) {
if ($this->originalSaveHandler !== false) {
ini_set('session.save_handler', $this->originalSaveHandler);
}
if ($this->originalSavePath) {
if ($this->originalSavePath !== false && $this->originalSavePath !== '') {
/** @psalm-suppress UnusedFunctionCall */
session_save_path($this->originalSavePath);
}
}
Expand Down

0 comments on commit 06d6bd2

Please sign in to comment.