Skip to content

Commit 1b19449

Browse files
committed
phpstan debug
1 parent fbee61e commit 1b19449

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/Eloquent/Builder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ public function updateWithoutRefresh(array $attributes = []): int
147147
return $query->update($this->addUpdatedAtColumn($attributes));
148148
}
149149

150-
public function updateOrCreate(array $attributes, array $values = []): Model
150+
public function updateOrCreate(array $attributes, array $values = []): Model|\Illuminate\Database\Eloquent\Model
151151
{
152152
// Attempt to find an existing instance matching the attributes
153153
$instance = $this->firstWhere($attributes);
@@ -163,7 +163,7 @@ public function updateOrCreate(array $attributes, array $values = []): Model
163163
return $instance;
164164
}
165165

166-
public function updateOrCreateWithoutRefresh(array $attributes, array $values = []): Model
166+
public function updateOrCreateWithoutRefresh(array $attributes, array $values = []): Model|\Illuminate\Database\Eloquent\Model
167167
{
168168
// Attempt to find an existing instance matching the attributes
169169
$instance = $this->firstWhere($attributes);

src/Helpers/QueriesRelationships.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ public function has(
3434
): Builder|static {
3535
if (is_string($relation)) {
3636
if (str_contains($relation, '.')) {
37+
// @phpstan-ignore-next-line
3738
return $this->hasNested($relation, $operator, $count, $boolean, $callback);
3839
}
3940

0 commit comments

Comments
 (0)