Skip to content

Commit 71d2dda

Browse files
[12.x] Improve missing attribute violation callable typehints (#57910)
1 parent bf3d9bb commit 71d2dda

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Illuminate/Database/Eloquent/Model.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ abstract class Model implements Arrayable, ArrayAccess, CanBeEscapedWhenCastToSt
229229
/**
230230
* The callback that is responsible for handling missing attribute violations.
231231
*
232-
* @var callable|null
232+
* @var (callable(self, string))|null
233233
*/
234234
protected static $missingAttributeViolationCallback;
235235

@@ -570,7 +570,7 @@ public static function preventAccessingMissingAttributes($value = true)
570570
/**
571571
* Register a callback that is responsible for handling missing attribute violations.
572572
*
573-
* @param callable|null $callback
573+
* @param (callable(self, string))|null $callback
574574
* @return void
575575
*/
576576
public static function handleMissingAttributeViolationUsing(?callable $callback)

0 commit comments

Comments
 (0)