From 7c93337347495df4fca1c49c6e96c554eb0b584b Mon Sep 17 00:00:00 2001 From: "Md. Al-Mosabbir Rakib" Date: Tue, 25 Nov 2025 22:35:42 +0600 Subject: [PATCH] [12.x] Improve missing 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..5228100f967e 100644 --- a/src/Illuminate/Database/Eloquent/Model.php +++ b/src/Illuminate/Database/Eloquent/Model.php @@ -229,7 +229,7 @@ abstract class Model implements Arrayable, ArrayAccess, CanBeEscapedWhenCastToSt /** * The callback that is responsible for handling missing attribute violations. * - * @var callable|null + * @var (callable(self, string))|null */ protected static $missingAttributeViolationCallback; @@ -570,7 +570,7 @@ public static function preventAccessingMissingAttributes($value = true) /** * Register a callback that is responsible for handling missing attribute violations. * - * @param callable|null $callback + * @param (callable(self, string))|null $callback * @return void */ public static function handleMissingAttributeViolationUsing(?callable $callback)