Skip to content

PHPLIB-1689 Make the Atlas Search exception more specific #3435

PHPLIB-1689 Make the Atlas Search exception more specific

PHPLIB-1689 Make the Atlas Search exception more specific #3435

Triggered via pull request November 18, 2025 17:01
Status Failure
Total duration 2m 22s
Artifacts

coding-standards.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

11 errors
phpcs: tests/Collection/CollectionFunctionalTest.php#L16
Type MongoDB\Exception\AtlasSearchNotSupportedException is not used in this file.
phpcs: tests/Collection/CollectionFunctionalTest.php#L16
Use statements should be sorted alphabetically. The first wrong one is MongoDB\Exception\AtlasSearchNotSupportedException.
phpcs: tests/Exception/AtlasSearchNotSupportedExceptionTest.php#L62
Expected 1 newline at end of file; 0 found
phpcs: src/Operation/Aggregate.php#L31
Use statements should be sorted alphabetically. The first wrong one is MongoDB\Exception\AtlasSearchNotSupportedException.
phpcs: src/Exception/AtlasSearchNotSupportedException.php#L37
Function str_contains() should not be referenced via a fallback global name, but via a use statement.
phpcs: src/Exception/AtlasSearchNotSupportedException.php#L35
Function str_contains() should not be referenced via a fallback global name, but via a use statement.
phpcs: src/Exception/AtlasSearchNotSupportedException.php#L27
Expected 1 space after MATCH keyword; 0 found
phpcs: src/Exception/AtlasSearchNotSupportedException.php#L8
Type in_array is not used in this file.
phpcs: tests/ExamplesTest.php#L11
Type getenv is not used in this file.
phpcs: src/Operation/CreateSearchIndexes.php#L25
Use statements should be sorted alphabetically. The first wrong one is MongoDB\Exception\AtlasSearchNotSupportedException.
Rector
Process completed with exit code 2.