Skip to content

lint + phpstan

lint + phpstan #648

Re-run triggered January 28, 2025 11:59
Status Failure
Total duration 40s
Artifacts

phpstan.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

4 errors and 4 warnings
phpstan: src/Models/TelegraphBot.php#L40
PHPDoc tag @use contains generic type Illuminate\Database\Eloquent\Factories\HasFactory<DefStudio\Telegraph\Database\Factories\TelegraphBotFactory> but trait Illuminate\Database\Eloquent\Factories\HasFactory is not generic.
phpstan: src/Models/TelegraphBot.php#L99
Generic type Illuminate\Database\Eloquent\Relations\HasMany<DefStudio\Telegraph\Models\TelegraphChat, $this(DefStudio\Telegraph\Models\TelegraphBot)> in PHPDoc tag @return specifies 2 template types, but class Illuminate\Database\Eloquent\Relations\HasMany supports only 1: TRelatedModel
phpstan: src/Models/TelegraphChat.php#L40
PHPDoc tag @use contains generic type Illuminate\Database\Eloquent\Factories\HasFactory<DefStudio\Telegraph\Database\Factories\TelegraphChatFactory> but trait Illuminate\Database\Eloquent\Factories\HasFactory is not generic.
phpstan
Process completed with exit code 1.
phpstan
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
phpstan
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
phpstan
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
phpstan
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/