Skip to content

Commit

Permalink
add php enums support in GetValueHashFeature and small fixies (#54)
Browse files Browse the repository at this point in the history
Co-authored-by: korotkov <korotkov@mubert.com>
  • Loading branch information
Miteugene and korotkov authored Jun 17, 2024
1 parent 5f92a1d commit 7c0cd80
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@
.env
.phpunit.result.cache
.php-cs-fixer.cache
/.phpunit.cache/test-results
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -779,6 +779,6 @@ You can check the [actions](https://github.com/lapaliv/laravel-bulk-upsert/actio
```shell
git clone https://github.com/lapaliv/laravel-bulk-upsert.git
cp .env.example .env
docker-composer up -d
docker-compose up -d
./vendor/bin/phpunit
```
2 changes: 1 addition & 1 deletion src/Features/GetValueHashFeature.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ class GetValueHashFeature
{
public function handle(mixed $value): string
{
return hash('crc32c', $value . ':' . gettype($value));
return hash('crc32c', ($value->value ?? $value) . ':' . gettype($value));
}
}

0 comments on commit 7c0cd80

Please sign in to comment.