Skip to content

Merge pull request #711 from pinkary-project/fix/phpstan-erros-after-… #697

Merge pull request #711 from pinkary-project/fix/phpstan-erros-after-…

Merge pull request #711 from pinkary-project/fix/phpstan-erros-after-… #697

Triggered via push October 26, 2024 11:54
Status Failure
Total duration 1m 53s
Artifacts

tests.yml

on: push
Matrix: Tests
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 2 warnings
Tests (8.3): app/Models/Bookmark.php#L34
Method App\Models\Bookmark::question() should return Illuminate\Database\Eloquent\Relations\BelongsTo<App\Models\Question, App\Models\Bookmark> but returns Illuminate\Database\Eloquent\Relations\BelongsTo<App\Models\Question, $this(App\Models\Bookmark)>.
Tests (8.3): app/Models/Bookmark.php#L44
Method App\Models\Bookmark::user() should return Illuminate\Database\Eloquent\Relations\BelongsTo<App\Models\User, App\Models\Bookmark> but returns Illuminate\Database\Eloquent\Relations\BelongsTo<App\Models\User, $this(App\Models\Bookmark)>.
Tests (8.3): app/Models/Hashtag.php#L44
Method App\Models\Hashtag::questions() should return Illuminate\Database\Eloquent\Relations\BelongsToMany<App\Models\Question, App\Models\Hashtag> but returns Illuminate\Database\Eloquent\Relations\BelongsToMany<App\Models\Question, $this(App\Models\Hashtag)>.
Tests (8.3): app/Models/Like.php#L34
Method App\Models\Like::question() should return Illuminate\Database\Eloquent\Relations\BelongsTo<App\Models\Question, App\Models\Like> but returns Illuminate\Database\Eloquent\Relations\BelongsTo<App\Models\Question, $this(App\Models\Like)>.
Tests (8.3): app/Models/Like.php#L44
Method App\Models\Like::user() should return Illuminate\Database\Eloquent\Relations\BelongsTo<App\Models\User, App\Models\Like> but returns Illuminate\Database\Eloquent\Relations\BelongsTo<App\Models\User, $this(App\Models\Like)>.
Tests (8.3): app/Models/Link.php#L35
Method App\Models\Link::user() should return Illuminate\Database\Eloquent\Relations\BelongsTo<App\Models\User, App\Models\Link> but returns Illuminate\Database\Eloquent\Relations\BelongsTo<App\Models\User, $this(App\Models\Link)>.
Tests (8.3): app/Models/Question.php#L113
Method App\Models\Question::from() should return Illuminate\Database\Eloquent\Relations\BelongsTo<App\Models\User, App\Models\Question> but returns Illuminate\Database\Eloquent\Relations\BelongsTo<App\Models\User, $this(App\Models\Question)>.
Tests (8.3): app/Models/Question.php#L123
Method App\Models\Question::to() should return Illuminate\Database\Eloquent\Relations\BelongsTo<App\Models\User, App\Models\Question> but returns Illuminate\Database\Eloquent\Relations\BelongsTo<App\Models\User, $this(App\Models\Question)>.
Tests (8.3): app/Models/Question.php#L133
Method App\Models\Question::bookmarks() should return Illuminate\Database\Eloquent\Relations\HasMany<App\Models\Bookmark, App\Models\Question> but returns Illuminate\Database\Eloquent\Relations\HasMany<App\Models\Bookmark, $this(App\Models\Question)>.
Tests (8.3): app/Models/Question.php#L143
Method App\Models\Question::likes() should return Illuminate\Database\Eloquent\Relations\HasMany<App\Models\Like, App\Models\Question> but returns Illuminate\Database\Eloquent\Relations\HasMany<App\Models\Like, $this(App\Models\Question)>.
Tests (8.3)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/setup-node@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Tests (8.3)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-node@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/