Skip to content

feat: add strict types to test files, and update return types for met… #21

feat: add strict types to test files, and update return types for met…

feat: add strict types to test files, and update return types for met… #21

Triggered via push January 5, 2025 00:29
Status Cancelled
Total duration 1m 56s
Artifacts

pipeline.yml

on: push
php-lint  /  PHP Linting (Pint)
36s
php-lint / PHP Linting (Pint)
Matrix: php-tests
Fit to window
Zoom out
Zoom in

Annotations

17 errors and 2 warnings
php-tests (8.2) / PHP Tests : src/Classes/AbstractRepository.php#L63
Call to function method_exists() with Igniter\Flame\Database\Model and 'scopeListFrontEnd' will always evaluate to true.
php-tests (8.2) / PHP Tests : src/Classes/ApiManager.php#L54
Parameter #1 $callback of method Illuminate\Database\Eloquent\Collection<int,Igniter\Api\Models\Resource>::mapWithKeys() contains unresolvable type.
php-tests (8.2) / PHP Tests : src/Models/Resource.php#L32
PHPDoc tag @method for method Igniter\Api\Models\Resource::dropdown() return type contains generic type Igniter\Flame\Database\Builder<static(Igniter\Api\Models\Resource)> but class Igniter\Flame\Database\Builder is not generic.
php-tests (8.2) / PHP Tests : src/Models/Resource.php#L32
PHPDoc tag @method for method Igniter\Api\Models\Resource::findSimilarSlugs() return type contains generic type Igniter\Flame\Database\Builder<static(Igniter\Api\Models\Resource)> but class Igniter\Flame\Database\Builder is not generic.
php-tests (8.2) / PHP Tests : src/Models/Resource.php#L32
PHPDoc tag @method for method Igniter\Api\Models\Resource::lists() return type contains generic type Igniter\Flame\Database\Builder<static(Igniter\Api\Models\Resource)> but class Igniter\Flame\Database\Builder is not generic.
php-tests (8.2) / PHP Tests : src/Models/Resource.php#L32
PHPDoc tag @method for method Igniter\Api\Models\Resource::query() return type contains generic type Igniter\Flame\Database\Builder<static(Igniter\Api\Models\Resource)> but class Igniter\Flame\Database\Builder is not generic.
php-tests (8.2) / PHP Tests : src/Models/Resource.php#L32
PHPDoc tag @method for method Igniter\Api\Models\Resource::search() return type contains generic type Igniter\Flame\Database\Builder<static(Igniter\Api\Models\Resource)> but class Igniter\Flame\Database\Builder is not generic.
php-tests (8.2) / PHP Tests
Process completed with exit code 1.
php-tests (8.3) / PHP Tests
FailFast: cancelling since parallel instance has failed
php-tests (8.3) / PHP Tests : src/Classes/AbstractRepository.php#L63
Call to function method_exists() with Igniter\Flame\Database\Model and 'scopeListFrontEnd' will always evaluate to true.
php-tests (8.3) / PHP Tests : src/Classes/ApiManager.php#L54
Parameter #1 $callback of method Illuminate\Database\Eloquent\Collection<int,Igniter\Api\Models\Resource>::mapWithKeys() contains unresolvable type.
php-tests (8.3) / PHP Tests : src/Models/Resource.php#L32
PHPDoc tag @method for method Igniter\Api\Models\Resource::dropdown() return type contains generic type Igniter\Flame\Database\Builder<static(Igniter\Api\Models\Resource)> but class Igniter\Flame\Database\Builder is not generic.
php-tests (8.3) / PHP Tests : src/Models/Resource.php#L32
PHPDoc tag @method for method Igniter\Api\Models\Resource::findSimilarSlugs() return type contains generic type Igniter\Flame\Database\Builder<static(Igniter\Api\Models\Resource)> but class Igniter\Flame\Database\Builder is not generic.
php-tests (8.3) / PHP Tests : src/Models/Resource.php#L32
PHPDoc tag @method for method Igniter\Api\Models\Resource::lists() return type contains generic type Igniter\Flame\Database\Builder<static(Igniter\Api\Models\Resource)> but class Igniter\Flame\Database\Builder is not generic.
php-tests (8.3) / PHP Tests : src/Models/Resource.php#L32
PHPDoc tag @method for method Igniter\Api\Models\Resource::query() return type contains generic type Igniter\Flame\Database\Builder<static(Igniter\Api\Models\Resource)> but class Igniter\Flame\Database\Builder is not generic.
php-tests (8.3) / PHP Tests : src/Models/Resource.php#L32
PHPDoc tag @method for method Igniter\Api\Models\Resource::search() return type contains generic type Igniter\Flame\Database\Builder<static(Igniter\Api\Models\Resource)> but class Igniter\Flame\Database\Builder is not generic.
php-tests (8.3) / PHP Tests
The operation was canceled.
php-lint / PHP Linting (Pint)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
php-tests (8.2) / PHP Tests
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636