Skip to content

chore: enable phpstan #1

chore: enable phpstan

chore: enable phpstan #1

Triggered via push November 12, 2023 21:36
Status Failure
Total duration 31s
Artifacts

backend.yml

on: push
Matrix: run / phpstan
Matrix: run / test
Fit to window
Zoom out
Zoom in

Annotations

18 errors
run / PHPStan PHP 8.0: src/Access/FieldPolicy.php#L30
Method FoF\Mason\Access\FieldPolicy::useCustomAnswer() should return bool but return statement is missing.
run / PHPStan PHP 8.0: src/Access/FieldPolicy.php#L45
Method FoF\Mason\Access\FieldPolicy::skipField() should return bool but return statement is missing.
run / PHPStan PHP 8.0: src/Api/Serializers/FieldSerializer.php#L46
PHPDoc tag @var has invalid value ($answers AnswerRepository): Unexpected token "$answers", expected type at offset 20
run / PHPStan PHP 8.0: src/Api/Serializers/FieldSerializer.php#L60
Negated boolean expression is always false.
run / PHPStan PHP 8.0: src/Api/Serializers/FieldSerializer.php#L61
Method FoF\Mason\Api\Serializers\FieldSerializer::allAnswers() should return Tobscure\JsonApi\Relationship but returns null.
run / PHPStan PHP 8.0: src/Api/Serializers/FieldSerializer.php#L67
PHPDoc tag @var has invalid value ($answers AnswerRepository): Unexpected token "$answers", expected type at offset 20
run / PHPStan PHP 8.0: src/ForumAttributes.php#L24
PHPDoc tag @var has invalid value ($settings SettingsRepositoryInterface): Unexpected token "$settings", expected type at offset 20
run / PHPStan PHP 8.0: src/Listeners/DiscussionSaving.php#L95
PHPDoc tag @var has invalid value ($answerValidator UserAnswerValidator): Unexpected token "$answerValidator", expected type at offset 28
run / PHPStan PHP 8.0: src/Listeners/DiscussionSaving.php#L103
Strict comparison using === between string and null will always evaluate to false.
run / PHPStan PHP 8.0: src/Repositories/FieldRepository.php#L44
PHPDoc tag @return with type Illuminate\Database\Eloquent\Model is not subtype of native type FoF\Mason\Field.
run / PHPStan PHP 8.1
The job was canceled because "_8_0" failed.
run / PHPStan PHP 8.1
The operation was canceled.
run / PHPStan PHP 7.3
The job was canceled because "_8_0" failed.
run / PHPStan PHP 7.3
The operation was canceled.
run / PHPStan PHP 7.4
The job was canceled because "_8_0" failed.
run / PHPStan PHP 7.4
The operation was canceled.
run / PHPStan PHP 8.2
The job was canceled because "_8_0" failed.
run / PHPStan PHP 8.2
The operation was canceled.