diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml index 20f2d83f..49fbecc2 100644 --- a/.github/workflows/release-drafter.yml +++ b/.github/workflows/release-drafter.yml @@ -4,6 +4,7 @@ on: push: branches: - main + - v1.x jobs: update_release_draft: diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index f095115f..562c45a0 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -9,6 +9,7 @@ on: - staging - main - feature/** + - v1.x jobs: yaml-lint: diff --git a/composer.json b/composer.json index 8e382a03..52c1875c 100644 --- a/composer.json +++ b/composer.json @@ -13,8 +13,20 @@ "license": "MIT", "authors": [ { - "name": "Clementine", + "name": "Clémentine Urquizar", "email": "clementine@meilisearch.com" + }, + { + "name": "Bruno Casali", + "email": "bruno@meilisearch.com" + }, + { + "name": "Laurent Cazanove", + "email": "lau.cazanove@gmail.com" + }, + { + "name": "Tomas Norkūnas", + "email": "norkunas.tom@gmail.com" } ], "minimum-stability": "stable", @@ -58,7 +70,9 @@ "./vendor/bin/php-cs-fixer fix --verbose --config=.php-cs-fixer.dist.php --using-cache=no --diff" ], "phpstan": "./vendor/bin/phpstan", - "test": ["sh scripts/tests.sh"] + "test": [ + "sh scripts/tests.sh" + ] }, "config": { "allow-plugins": { diff --git a/src/Exceptions/ApiException.php b/src/Exceptions/ApiException.php index 2e0f21c7..f7ebc1e9 100644 --- a/src/Exceptions/ApiException.php +++ b/src/Exceptions/ApiException.php @@ -33,7 +33,7 @@ public function __toString() { $base = 'Meilisearch ApiException: Http Status: '.$this->httpStatus; - if (!\is_null($this->message)) { + if ('' !== $this->message) { $base .= ' - Message: '.$this->message; } diff --git a/src/Exceptions/InvalidResponseBodyException.php b/src/Exceptions/InvalidResponseBodyException.php index 5eff72fd..5245df44 100644 --- a/src/Exceptions/InvalidResponseBodyException.php +++ b/src/Exceptions/InvalidResponseBodyException.php @@ -25,7 +25,7 @@ public function __toString() { $base = 'Meilisearch InvalidResponseBodyException: Http Status: '.$this->httpStatus; - if ($this->message) { + if ('' !== $this->message) { $base .= ' - Message: '.$this->message; } diff --git a/src/Exceptions/TimeOutException.php b/src/Exceptions/TimeOutException.php index 7a4cee15..cf2c3a6e 100644 --- a/src/Exceptions/TimeOutException.php +++ b/src/Exceptions/TimeOutException.php @@ -20,7 +20,7 @@ public function __construct(?string $message = null, ?int $code = null, ?\Throwa public function __toString() { $base = 'Meilisearch TimeOutException: Code: '.$this->code; - if ($this->message) { + if ('' !== $this->message) { return $base.' - Message: '.$this->message; } else { return $base;