Skip to content

Commit

Permalink
Use explicit closure instead of empty() checks
Browse files Browse the repository at this point in the history
  • Loading branch information
alcaeus committed Oct 16, 2024
1 parent 6a421dd commit d341348
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/Doctrine/ODM/MongoDB/SchemaManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -629,6 +629,7 @@ public function createDocumentCollection(string $documentName, ?int $maxTimeMs =
// ext-mongodb will automatically encode backed enums, so we can use the value directly here
'granularity' => $class->timeSeriesOptions->granularity,
],
static fn (mixed $value): bool => $value !== null,
);

if ($class->timeSeriesOptions->expireAfterSeconds) {
Expand Down

0 comments on commit d341348

Please sign in to comment.