Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getExtension() should return string #2068

Closed
wants to merge 1 commit into from

Conversation

nowackipawel
Copy link
Contributor

in other case this cause i.e. exception during validation if file is not provided

'is_image[upload_' . $i . ']|max_size[upload_' . $i . ',6144]'

I thought to declare this method as public function getExtension(): ?string but this will be worse option.

in other case this cause i.e. exception during validation if file is not provided
```
'is_image[upload_' . $i . ']|max_size[upload_' . $i . ',6144]'
```
I thought to declare this method as `public function getExtension(): ?string` but this will be worse option.
@MGatner
Copy link
Member

MGatner commented Aug 12, 2019

This is resolved in a slightly different manner by #2128

@lonnieezell
Copy link
Member

#2128 already merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants