Skip to content

Commit

Permalink
Fix php Coding Standards pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
Jafarili authored and alcaeus committed Sep 6, 2024
1 parent b69f1c3 commit afed019
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/Doctrine/ODM/MongoDB/SchemaManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -1061,6 +1061,8 @@ private function isSearchIndexCommandException(CommandException $e): bool
if ($e->getCode() === self::CODE_COMMAND_NOT_SUPPORTED && str_contains($e->getMessage(), 'Search index')) {
return true;
}

// MongoDB 6.0.7+ and 7.0+: "$listSearchIndexes stage is only allowed on MongoDB Atlas"
if ($e->getMessage() === '$listSearchIndexes stage is only allowed on MongoDB Atlas') {
return true;
}
Expand Down

0 comments on commit afed019

Please sign in to comment.