Skip to content

Commit

Permalink
CI Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanlopezinc committed Apr 3, 2024
1 parent 7b12017 commit 20cabd5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/Repositories/Folder/FolderSettingsSchema.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ private function definition(): array
'id' => 'max_collaborators_limit',
'default' => -1,
'type' => 'integer',
'normalizer' => new Normalizers\IntegerValueNormalizer(),
'normalizer' => new Normalizers\IntegerTypeNormalizer(),
'rules' => $maxCollaboratorsLimitKeyRules = [
'sometimes',
'int',
Expand All @@ -107,7 +107,7 @@ private function definition(): array
'id' => 'max_bookmarks_limit',
'default' => -1,
'type' => 'integer',
'normalizer' => new Normalizers\IntegerValueNormalizer(),
'normalizer' => new Normalizers\IntegerTypeNormalizer(),
'rules' => $maxBookmarksLimitKeyRules = [
'sometimes',
'int',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,11 @@

use App\Contracts\SettingAttributeNormalizerInterface;

final class IntegerValueNormalizer implements SettingAttributeNormalizerInterface
final class IntegerTypeNormalizer implements SettingAttributeNormalizerInterface
{
/**
* {@inheritdoc}
*/
public function normalize(mixed $value): mixed
{
return (int) $value;
Expand Down

0 comments on commit 20cabd5

Please sign in to comment.