File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 31
31
],
32
32
"homepage" : " https://github.com/spatie/activitylog" ,
33
33
"require" : {
34
- "php" : " ^8.0|^8.1 " ,
34
+ "php" : " ^8.0" ,
35
35
"illuminate/config" : " ^8.0 || ^9.0" ,
36
36
"illuminate/database" : " ^8.53 || ^9.0" ,
37
37
"illuminate/support" : " ^8.0 || ^9.0" ,
Original file line number Diff line number Diff line change @@ -366,7 +366,7 @@ public static function logChanges(Model $model): array
366
366
if ($ model ->hasCast ($ attribute )) {
367
367
$ cast = $ model ->getCasts ()[$ attribute ];
368
368
369
- if (function_exists ('enum_exists ' ) && enum_exists ($ cast )) {
369
+ if (function_exists ('enum_exists ' ) && enum_exists ($ cast )) {
370
370
$ changes [$ attribute ] = $ model ->getStorableEnumValue ($ changes [$ attribute ]);
371
371
}
372
372
Original file line number Diff line number Diff line change 2
2
3
3
namespace Spatie \Activitylog \Test \Enum ;
4
4
5
- Enum NonBackedEnum
5
+ enum NonBackedEnum
6
6
{
7
7
case Admin;
8
8
You can’t perform that action at this time.
0 commit comments