Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 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
1 change: 1 addition & 0 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
<env name="QUEUE_CONNECTION" value="database"/>
<ini name="xdebug.mode" value="coverage"/>
<ini name="memory_limit" value="-1"/>
<ini name="zend.assertions" value="1"/>
</php>

<source restrictDeprecations="true"
Expand Down
4 changes: 2 additions & 2 deletions src/Session/MongoDbSessionHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@
'typeMap' => ['root' => 'bson'],
],
);
assert($result instanceof Document);

return $result ? (string) $result->payload : false;

return $result?->payload ? (string) $result->payload : false;
}

public function write($sessionId, $data): bool
Expand Down
Loading