diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index db0d5a6..ddc854a 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -126,12 +126,6 @@ parameters: count: 2 path: src/Mixins/Select.php - - - message: '#^PHPDoc tag @param has invalid value \(\\Soyhuce\\EloquentExtended\\Aggregates\\Contracts\\AggregateFunction\\)\: 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\\:\:apply\(\) expects Illuminate\\Database\\Eloquent\\Builder\, \$this\(Soyhuce\\EloquentExtended\\Mixins\\Select\\) given\.$#' identifier: argument.type diff --git a/src/Mixins/Select.php b/src/Mixins/Select.php index 5ce34d4..328f229 100644 --- a/src/Mixins/Select.php +++ b/src/Mixins/Select.php @@ -23,7 +23,7 @@ public function withAggregateFunction(): Closure { /** * @param array|array|string $relations - * @param AggregateFunction + * @param AggregateFunction $aggregateFunction */ return function ($relations, AggregateFunction $aggregateFunction): self { if (empty($relations)) {