Skip to content

Commit

Permalink
Fix phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
bastien-phi committed Dec 17, 2024
1 parent 2bd12a8 commit a629624
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
6 changes: 0 additions & 6 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -126,12 +126,6 @@ parameters:
count: 2
path: src/Mixins/Select.php

-
message: '#^PHPDoc tag @param has invalid value \(\\Soyhuce\\EloquentExtended\\Aggregates\\Contracts\\AggregateFunction\<TModel\>\)\: Unexpected token "\\n ", expected variable at offset 167 on line 3$#'
identifier: phpDoc.parseError
count: 1
path: src/Mixins/Select.php

-
message: '#^Parameter \#1 \$query of method Soyhuce\\EloquentExtended\\Aggregates\\Contracts\\AggregateFunction\<Illuminate\\Database\\Eloquent\\Model\>\:\:apply\(\) expects Illuminate\\Database\\Eloquent\\Builder\<Illuminate\\Database\\Eloquent\\Model\>, \$this\(Soyhuce\\EloquentExtended\\Mixins\\Select\<TModel of Illuminate\\Database\\Eloquent\\Model\>\) given\.$#'
identifier: argument.type
Expand Down
2 changes: 1 addition & 1 deletion src/Mixins/Select.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public function withAggregateFunction(): Closure
{
/**
* @param array<string, Closure>|array<string>|string $relations
* @param AggregateFunction<TModel>
* @param AggregateFunction<TModel> $aggregateFunction
*/
return function ($relations, AggregateFunction $aggregateFunction): self {
if (empty($relations)) {
Expand Down

0 comments on commit a629624

Please sign in to comment.