From 6d04c686cfb22dcc8b7c9719ac76bb7b246994eb Mon Sep 17 00:00:00 2001 From: mitoop Date: Thu, 12 Jun 2025 12:16:49 +0800 Subject: [PATCH 1/2] add PHPDoc hints for IDE property support in traits Signed-off-by: mitoop --- src/Translatable/Translatable.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Translatable/Translatable.php b/src/Translatable/Translatable.php index 12d7d8f..678e484 100644 --- a/src/Translatable/Translatable.php +++ b/src/Translatable/Translatable.php @@ -16,6 +16,7 @@ * @property-read string $translationForeignKey * @property-read string $localeKey * @property-read bool $useTranslationFallback + * @property array $translatedAttributes * * @mixin Model */ From bdb020d68edb36221ee6ff60edf0cac316f69783 Mon Sep 17 00:00:00 2001 From: mitoop Date: Thu, 3 Jul 2025 09:09:04 +0800 Subject: [PATCH 2/2] Update php doc Signed-off-by: mitoop --- src/Translatable/Translatable.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Translatable/Translatable.php b/src/Translatable/Translatable.php index 678e484..fcb2f71 100644 --- a/src/Translatable/Translatable.php +++ b/src/Translatable/Translatable.php @@ -16,7 +16,7 @@ * @property-read string $translationForeignKey * @property-read string $localeKey * @property-read bool $useTranslationFallback - * @property array $translatedAttributes + * @property string[] $translatedAttributes * * @mixin Model */