Skip to content

feat: laravel 11

feat: laravel 11 #2407

Triggered via push August 6, 2024 13:43
Status Failure
Total duration 3m 19s
Artifacts

phpstan.yml

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

Annotations

19 errors
run / PHPStan PHP 8.2: framework/core/src/Database/AbstractModel.php#L162
Method Flarum\Database\AbstractModel::newModelQuery() should return Illuminate\Database\Eloquent\Builder<static(Flarum\Database\AbstractModel)> but returns Illuminate\Database\Eloquent\Builder<Illuminate\Database\Eloquent\Model>.
run / PHPStan PHP 8.2: framework/core/src/Database/AbstractModel.php#L186
Return type (Flarum\Database\Eloquent\Collection) of method Flarum\Database\AbstractModel::newCollection() should be compatible with return type (Illuminate\Database\Eloquent\Collection<(int|string), static(Illuminate\Database\Eloquent\Model)>) of method Illuminate\Database\Eloquent\Model::newCollection()
run / PHPStan PHP 8.2: framework/core/src/Database/AbstractModel.php#L188
Parameter #1 $items of class Flarum\Database\Eloquent\Collection constructor expects Illuminate\Contracts\Support\Arrayable<(int|string), TModel of Flarum\Database\AbstractModel>|iterable<(int|string), TModel of Flarum\Database\AbstractModel>|null, array<Illuminate\Database\Eloquent\Model> given.
run / PHPStan PHP 8.2: framework/core/src/Extend/Model.php#L78
Parameter #2 $callback of method Flarum\Extend\Model::relationship() expects (callable(Flarum\Database\AbstractModel): Illuminate\Database\Eloquent\Relations\BelongsTo<TRelatedModel, T>)|class-string, Closure(Flarum\Database\AbstractModel): Illuminate\Database\Eloquent\Relations\BelongsTo<TRelatedModel, Flarum\Database\AbstractModel> given.
run / PHPStan PHP 8.2: framework/core/src/Extend/Model.php#L79
Unable to resolve the template type TRelatedModel in call to method Illuminate\Database\Eloquent\Model::belongsTo()
run / PHPStan PHP 8.2: framework/core/src/Extend/Model.php#L109
Unable to resolve the template type TRelatedModel in call to method Illuminate\Database\Eloquent\Model::belongsToMany()
run / PHPStan PHP 8.2: framework/core/src/Extend/Model.php#L129
Unable to resolve the template type TRelatedModel in call to method Illuminate\Database\Eloquent\Model::hasOne()
run / PHPStan PHP 8.2: framework/core/src/Extend/Model.php#L149
Unable to resolve the template type TRelatedModel in call to method Illuminate\Database\Eloquent\Model::hasMany()
run / PHPStan PHP 8.2
Process completed with exit code 1.
run / PHPStan PHP 8.3
The job was canceled because "_8_2" failed.
run / PHPStan PHP 8.3: framework/core/src/Database/AbstractModel.php#L162
Method Flarum\Database\AbstractModel::newModelQuery() should return Illuminate\Database\Eloquent\Builder<static(Flarum\Database\AbstractModel)> but returns Illuminate\Database\Eloquent\Builder<Illuminate\Database\Eloquent\Model>.
run / PHPStan PHP 8.3: framework/core/src/Database/AbstractModel.php#L186
Return type (Flarum\Database\Eloquent\Collection) of method Flarum\Database\AbstractModel::newCollection() should be compatible with return type (Illuminate\Database\Eloquent\Collection<(int|string), static(Illuminate\Database\Eloquent\Model)>) of method Illuminate\Database\Eloquent\Model::newCollection()
run / PHPStan PHP 8.3: framework/core/src/Database/AbstractModel.php#L188
Parameter #1 $items of class Flarum\Database\Eloquent\Collection constructor expects Illuminate\Contracts\Support\Arrayable<(int|string), TModel of Flarum\Database\AbstractModel>|iterable<(int|string), TModel of Flarum\Database\AbstractModel>|null, array<Illuminate\Database\Eloquent\Model> given.
run / PHPStan PHP 8.3: framework/core/src/Extend/Model.php#L78
Parameter #2 $callback of method Flarum\Extend\Model::relationship() expects (callable(Flarum\Database\AbstractModel): Illuminate\Database\Eloquent\Relations\BelongsTo<TRelatedModel, T>)|class-string, Closure(Flarum\Database\AbstractModel): Illuminate\Database\Eloquent\Relations\BelongsTo<TRelatedModel, Flarum\Database\AbstractModel> given.
run / PHPStan PHP 8.3: framework/core/src/Extend/Model.php#L79
Unable to resolve the template type TRelatedModel in call to method Illuminate\Database\Eloquent\Model::belongsTo()
run / PHPStan PHP 8.3: framework/core/src/Extend/Model.php#L109
Unable to resolve the template type TRelatedModel in call to method Illuminate\Database\Eloquent\Model::belongsToMany()
run / PHPStan PHP 8.3: framework/core/src/Extend/Model.php#L129
Unable to resolve the template type TRelatedModel in call to method Illuminate\Database\Eloquent\Model::hasOne()
run / PHPStan PHP 8.3: framework/core/src/Extend/Model.php#L149
Unable to resolve the template type TRelatedModel in call to method Illuminate\Database\Eloquent\Model::hasMany()
run / PHPStan PHP 8.3
The operation was canceled.