Skip to content

Commit 8c038d3

Browse files
bors[bot]dependabot-preview[bot]curquiza
authored
Merge #61
61: Update meilisearch/meilisearch-php requirement from ^0.16 to ^0.17 r=curquiza a=dependabot-preview[bot] Updates the requirements on meilisearch/meilisearch-php to permit the latest version. You can trigger a rebase of this PR by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) - `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language - `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language - `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language - `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language - `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com): - Update frequency (including time of day and day of week) - Pull request limits (per update run and/or open at any time) - Out-of-range updates (receive only lockfile updates, if desired) - Security updates (receive only security updates, if desired) </details> Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com> Co-authored-by: Clémentine Urquizar <[email protected]>
2 parents 7d55162 + 45bdb2c commit 8c038d3

File tree

6 files changed

+14
-14
lines changed

6 files changed

+14
-14
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"require": {
2121
"php": ">=7.2",
2222
"ext-json": "*",
23-
"meilisearch/meilisearch-php": "^0.16",
23+
"meilisearch/meilisearch-php": "^0.17",
2424
"symfony/filesystem": "^4.0 || ^5.0",
2525
"symfony/property-access": "^4.0 || ^5.0",
2626
"symfony/serializer": "^4.0 || ^5.0"

src/Command/MeiliSearchImportCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
use MeiliSearch\Bundle\Model\Aggregator;
99
use MeiliSearch\Bundle\SearchService;
1010
use MeiliSearch\Client;
11-
use MeiliSearch\Exceptions\HTTPRequestException;
11+
use MeiliSearch\Exceptions\ApiException;
1212
use MeiliSearch\Exceptions\TimeOutException;
1313
use Symfony\Component\Console\Input\InputInterface;
1414
use Symfony\Component\Console\Input\InputOption;
@@ -76,7 +76,7 @@ protected function configure()
7676
* {@inheritdoc}
7777
*
7878
* @throws TimeOutException
79-
* @throws HTTPRequestException
79+
* @throws ApiException
8080
*/
8181
protected function execute(InputInterface $input, OutputInterface $output): int
8282
{

src/Engine.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
namespace MeiliSearch\Bundle;
44

55
use MeiliSearch\Client;
6-
use MeiliSearch\Exceptions\HTTPRequestException;
6+
use MeiliSearch\Exceptions\ApiException;
77
use Symfony\Component\Serializer\Exception\ExceptionInterface;
88
use function count;
99
use function reset;
@@ -37,7 +37,7 @@ public function __construct(Client $client)
3737
*
3838
* @return array
3939
*
40-
* @throws HTTPRequestException
40+
* @throws ApiException
4141
* @throws ExceptionInterface
4242
*/
4343
public function index($searchableEntities): array
@@ -121,7 +121,7 @@ public function remove($searchableEntities): array
121121
*
122122
* @return array
123123
*
124-
* @throws HTTPRequestException
124+
* @throws ApiException
125125
*/
126126
public function clear(string $indexName): array
127127
{

tests/TestCase/CommandsTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
use MeiliSearch\Bundle\Test\Entity\Post;
1515
use MeiliSearch\Client;
1616
use MeiliSearch\Endpoints\Indexes;
17-
use MeiliSearch\Exceptions\HTTPRequestException;
17+
use MeiliSearch\Exceptions\ApiException;
1818
use Symfony\Bundle\FrameworkBundle\Console\Application;
1919
use Symfony\Component\Console\Tester\CommandTester;
2020

@@ -53,7 +53,7 @@ class CommandsTest extends BaseTest
5353
/**
5454
* @inheritDoc
5555
* @throws DBALException
56-
* @throws HTTPRequestException
56+
* @throws ApiException
5757
* @throws Exception
5858
*/
5959
public function setUp(): void
@@ -77,7 +77,7 @@ public function cleanUp()
7777
$this->searchService->delete(Post::class);
7878
$this->searchService->delete(Comment::class);
7979
$this->searchService->delete(ContentAggregator::class);
80-
} catch (HTTPRequestException $e) {
80+
} catch (ApiException $e) {
8181
$this->assertEquals('Index sf_phpunit__comments not found', $e->getMessage());
8282
}
8383
}

tests/TestCase/EngineTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
use Exception;
66
use MeiliSearch\Bundle\Engine;
77
use MeiliSearch\Bundle\Test\BaseTest;
8-
use MeiliSearch\Exceptions\HTTPRequestException;
8+
use MeiliSearch\Exceptions\ApiException;
99

1010
/**
1111
* Class EngineTest
@@ -45,7 +45,7 @@ public function testIndexingEmptyEntity()
4545
try {
4646
$this->engine->search('query', $searchableImage->getIndexName(), []);
4747
} catch (Exception $e) {
48-
$this->assertInstanceOf(HTTPRequestException::class, $e);
48+
$this->assertInstanceOf(ApiException::class, $e);
4949
}
5050
}
5151
}

tests/TestCase/SearchTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
use MeiliSearch\Bundle\Test\Entity\Post;
1515
use MeiliSearch\Client;
1616
use MeiliSearch\Endpoints\Indexes;
17-
use MeiliSearch\Exceptions\HTTPRequestException;
17+
use MeiliSearch\Exceptions\ApiException;
1818
use Symfony\Bundle\FrameworkBundle\Console\Application;
1919
use Symfony\Component\Console\Tester\CommandTester;
2020

@@ -53,7 +53,7 @@ class SearchTest extends BaseTest
5353
/**
5454
* @inheritDoc
5555
* @throws DBALException
56-
* @throws HTTPRequestException
56+
* @throws ApiException
5757
* @throws Exception
5858
*/
5959
public function setUp(): void
@@ -77,7 +77,7 @@ public function cleanUp()
7777
$this->searchService->delete(Post::class);
7878
$this->searchService->delete(Comment::class);
7979
$this->searchService->delete(ContentAggregator::class);
80-
} catch (HTTPRequestException $e) {
80+
} catch (ApiException $e) {
8181
$this->assertEquals('Index sf_phpunit__comments not found', $e->getMessage());
8282
}
8383
}

0 commit comments

Comments
 (0)