Skip to content

Commit fe2ec07

Browse files
committed
fix(docs): @throws NotFoundException inexistante → ScellException (v3.4.1)
La classe Scell\Sdk\Exceptions\NotFoundException référencée par TenantIncomingInvoiceResource::download() (3.2.0) n'existe pas dans le SDK — PHPStan throws.notThrowable. Convention 404 du SDK = ScellException.
1 parent f1e15f4 commit fe2ec07

4 files changed

Lines changed: 12 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,15 @@
22

33
All notable changes to this project will be documented in this file.
44

5+
## [3.4.1] - 2026-06-11
6+
7+
### Fixed
8+
9+
- PHPDoc `@throws` de `TenantIncomingInvoiceResource::download()` : la classe
10+
`Scell\Sdk\Exceptions\NotFoundException` n'existe pas dans le SDK (introduite
11+
par erreur en 3.2.0) — remplacée par `ScellException` (convention du SDK pour
12+
les 404). Corrige la seule erreur PHPStan restante (`throws.notThrowable`).
13+
514
## [3.4.0] - 2026-06-11
615

716
### Added — Aperçu de documents non persisté

src/Http/HttpClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
*/
2222
class HttpClient
2323
{
24-
public const SDK_VERSION = '3.4.0';
24+
public const SDK_VERSION = '3.4.1';
2525
private Client $client;
2626
private string $baseUrl;
2727
private ?string $bearerToken = null;

src/Resources/TenantIncomingInvoiceResource.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ public function markPaid(
378378
*
379379
* @return string Contenu binaire du fichier
380380
*
381-
* @throws \Scell\Sdk\Exceptions\NotFoundException 404 si la facture ou le fichier n'existe pas
381+
* @throws \Scell\Sdk\Exceptions\ScellException 404 si la facture ou le fichier n'existe pas
382382
* @throws \Scell\Sdk\Exceptions\ValidationException 422 si le format est invalide
383383
*
384384
* @example

tests/HttpClientAuthTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,6 @@ public function sdk_version_constant_is_in_sync_with_release(): void
165165
// Verrouille la constante SDK_VERSION pour eviter le drift historique
166166
// (etait restee a '1.12.0' alors que les tags etaient a v2.2.0, puis
167167
// a '3.1.0' alors que les releases 3.2.0/3.3.0 etaient taggees).
168-
$this->assertSame('3.4.0', HttpClient::SDK_VERSION);
168+
$this->assertSame('3.4.1', HttpClient::SDK_VERSION);
169169
}
170170
}

0 commit comments

Comments
 (0)