Skip to content

Commit a629624

Browse files
committed
Fix phpstan
1 parent 2bd12a8 commit a629624

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

phpstan-baseline.neon

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -126,12 +126,6 @@ parameters:
126126
count: 2
127127
path: src/Mixins/Select.php
128128

129-
-
130-
message: '#^PHPDoc tag @param has invalid value \(\\Soyhuce\\EloquentExtended\\Aggregates\\Contracts\\AggregateFunction\<TModel\>\)\: Unexpected token "\\n ", expected variable at offset 167 on line 3$#'
131-
identifier: phpDoc.parseError
132-
count: 1
133-
path: src/Mixins/Select.php
134-
135129
-
136130
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\.$#'
137131
identifier: argument.type

src/Mixins/Select.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public function withAggregateFunction(): Closure
2323
{
2424
/**
2525
* @param array<string, Closure>|array<string>|string $relations
26-
* @param AggregateFunction<TModel>
26+
* @param AggregateFunction<TModel> $aggregateFunction
2727
*/
2828
return function ($relations, AggregateFunction $aggregateFunction): self {
2929
if (empty($relations)) {

0 commit comments

Comments
 (0)