From 99b116364f64e5614b49871d4dbf572744f202a7 Mon Sep 17 00:00:00 2001 From: "Md. Al-Mosabbir Rakib" Date: Tue, 25 Nov 2025 22:32:30 +0600 Subject: [PATCH] [12.x] Improve discarded attribute violation callable typehints --- src/Illuminate/Database/Eloquent/Model.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Illuminate/Database/Eloquent/Model.php b/src/Illuminate/Database/Eloquent/Model.php index 9ebec52cfd42..3949be243367 100644 --- a/src/Illuminate/Database/Eloquent/Model.php +++ b/src/Illuminate/Database/Eloquent/Model.php @@ -215,7 +215,7 @@ abstract class Model implements Arrayable, ArrayAccess, CanBeEscapedWhenCastToSt /** * The callback that is responsible for handling discarded attribute violations. * - * @var callable|null + * @var (callable(self, array))|null */ protected static $discardedAttributeViolationCallback; @@ -548,7 +548,7 @@ public static function preventSilentlyDiscardingAttributes($value = true) /** * Register a callback that is responsible for handling discarded attribute violations. * - * @param callable|null $callback + * @param (callable(self, array))|null $callback * @return void */ public static function handleDiscardedAttributeViolationUsing(?callable $callback)