Skip to content

Commit 31285ff

Browse files
committed
fix(app): Addressing review comments
1 parent 4f26755 commit 31285ff

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

system/API/ApiException.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,13 @@
1313

1414
namespace CodeIgniter\API;
1515

16+
use CodeIgniter\Exceptions\FrameworkException;
1617
use Exception;
1718

1819
/**
1920
* Custom exception for API-related errors.
2021
*/
21-
class ApiException extends Exception
22+
final class ApiException extends FrameworkException
2223
{
2324
/**
2425
* Thrown when the fields requested in a URL are not valid.

system/API/ResponseTrait.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -393,6 +393,8 @@ protected function setResponseFormat(?string $format = null)
393393
* 'next' => '/api/items?page=2&perPage=20',
394394
* ]
395395
* ]
396+
*
397+
* @param class-string<TransformerInterface>|null $transformWith
396398
*/
397399
protected function paginate(BaseBuilder|Model $resource, int $perPage = 20, ?string $transformWith = null): ResponseInterface
398400
{

0 commit comments

Comments
 (0)