Skip to content

Commit 03795ab

Browse files
authored
Have Model::withoutTimestamps() return the callback's return value (#44457)
1 parent c24f342 commit 03795ab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Illuminate/Database/Eloquent/Concerns/HasTimestamps.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,11 +167,11 @@ public function getQualifiedUpdatedAtColumn()
167167
* Disable timestamps for the current class during the given callback scope.
168168
*
169169
* @param callable $callback
170-
* @return void
170+
* @return mixed
171171
*/
172172
public static function withoutTimestamps(callable $callback)
173173
{
174-
static::withoutTimestampsOn([static::class], $callback);
174+
return static::withoutTimestampsOn([static::class], $callback);
175175
}
176176

177177
/**

0 commit comments

Comments
 (0)