Skip to content

Commit 37af04b

Browse files
authored
Add generics to Model::unguarded() (#55932)
1 parent c7a87ae commit 37af04b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,10 @@ public static function isUnguarded()
140140
/**
141141
* Run the given callable while being unguarded.
142142
*
143-
* @param callable $callback
144-
* @return mixed
143+
* @template TReturn
144+
*
145+
* @param callable(): TReturn $callback
146+
* @return TReturn
145147
*/
146148
public static function unguarded(callable $callback)
147149
{

0 commit comments

Comments
 (0)