Skip to content

Commit 7c0cd80

Browse files
Miteugenekorotkov
and
korotkov
authored
add php enums support in GetValueHashFeature and small fixies (#54)
Co-authored-by: korotkov <[email protected]>
1 parent 5f92a1d commit 7c0cd80

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

Diff for: .gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@
44
.env
55
.phpunit.result.cache
66
.php-cs-fixer.cache
7+
/.phpunit.cache/test-results

Diff for: README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -779,6 +779,6 @@ You can check the [actions](https://github.com/lapaliv/laravel-bulk-upsert/actio
779779
```shell
780780
git clone https://github.com/lapaliv/laravel-bulk-upsert.git
781781
cp .env.example .env
782-
docker-composer up -d
782+
docker-compose up -d
783783
./vendor/bin/phpunit
784784
```

Diff for: src/Features/GetValueHashFeature.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ class GetValueHashFeature
99
{
1010
public function handle(mixed $value): string
1111
{
12-
return hash('crc32c', $value . ':' . gettype($value));
12+
return hash('crc32c', ($value->value ?? $value) . ':' . gettype($value));
1313
}
1414
}

0 commit comments

Comments
 (0)