Skip to content

Commit 6115677

Browse files
author
Stiven Katuuk
committed
refactor: clean up related commit code
1 parent dff2ce9 commit 6115677

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
],
3232
"homepage": "https://github.com/spatie/activitylog",
3333
"require": {
34-
"php": "^8.0|^8.1",
34+
"php": "^8.0",
3535
"illuminate/config": "^8.0 || ^9.0",
3636
"illuminate/database": "^8.53 || ^9.0",
3737
"illuminate/support": "^8.0 || ^9.0",

src/Traits/LogsActivity.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ public static function logChanges(Model $model): array
366366
if ($model->hasCast($attribute)) {
367367
$cast = $model->getCasts()[$attribute];
368368

369-
if(function_exists('enum_exists') && enum_exists($cast)) {
369+
if (function_exists('enum_exists') && enum_exists($cast)) {
370370
$changes[$attribute] = $model->getStorableEnumValue($changes[$attribute]);
371371
}
372372

tests/Enum/NonBackedEnum.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace Spatie\Activitylog\Test\Enum;
44

5-
Enum NonBackedEnum
5+
enum NonBackedEnum
66
{
77
case Admin;
88

0 commit comments

Comments
 (0)