Skip to content

Commit

Permalink
Union type issue fixed for older PHP versions 🐛
Browse files Browse the repository at this point in the history
  • Loading branch information
rahulhaque committed Nov 13, 2023
1 parent 1fdcdd5 commit 19860b2
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

All notable changes to `laravel-filepond` will be documented in this file.

## 1.12.15 - 2023-11-13

- Fixed union type issue for older PHP versions #49. 🐛

## 1.12.14 - 2023-11-09

- Fixed single file upload as array #47. 🐛
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
}
],
"require": {
"php": "^7.4|^8.0",
"php": "^7.3|^8.0|^8.1",
"illuminate/support": "^7.0|^8.0|^9.0|^10.0"
},
"require-dev": {
Expand Down
3 changes: 2 additions & 1 deletion src/AbstractFilepond.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,10 @@ protected function getFieldValue()
/**
* Set the FilePond field value data
*
* @param string|array|null $fieldValue
* @return $this
*/
protected function setFieldValue(string|array|null $fieldValue)
protected function setFieldValue($fieldValue)
{
if (! $fieldValue) {
$this->fieldValue = null;
Expand Down
3 changes: 2 additions & 1 deletion src/Filepond.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@ class Filepond extends AbstractFilepond
/**
* Set the FilePond field name
*
* @param string|array|null $field
* @return $this
*/
public function field(string|array|null $field, bool $checkOwnership = true)
public function field($field, bool $checkOwnership = true)
{
$this->setFieldValue($field)
->setTempDisk(config('filepond.temp_disk', 'local'))
Expand Down

0 comments on commit 19860b2

Please sign in to comment.