diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml index 561d242..a294039 100644 --- a/.github/workflows/pipeline.yml +++ b/.github/workflows/pipeline.yml @@ -6,7 +6,7 @@ jobs: php-tests: strategy: matrix: - php: [ '8.3', '8.4' ] + php: [ '8.3', '8.4', '8.5' ] uses: tastyigniter/workflows/.github/workflows/php-tests.yml@main with: php-version: ${{ matrix.php }} diff --git a/src/Exceptions/ErrorHandler.php b/src/Exceptions/ErrorHandler.php index aa5b11d..3e4222d 100644 --- a/src/Exceptions/ErrorHandler.php +++ b/src/Exceptions/ErrorHandler.php @@ -31,7 +31,6 @@ public function __construct( protected array $format, protected $debug, ) { - // @phpstan-ignore-next-line function.alreadyNarrowedType if (method_exists($this->parentHandler, 'renderable')) { $this->parentHandler->renderable(fn(Throwable $ex): ?Response => $this->render(request(), $ex)); } diff --git a/src/Models/Resource.php b/src/Models/Resource.php index 07007a1..be0791b 100644 --- a/src/Models/Resource.php +++ b/src/Models/Resource.php @@ -155,7 +155,7 @@ public static function getResources() * Returns a list of all api resources. * @return array Array keys are endpoints. */ - public static function listResources() + public static function listResources(): array|float|int { $registeredResources = (new static)->listRegisteredResources(); $dbResources = static::all()->keyBy('endpoint')->all();