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

Zend\Validator\File\MimeType warning with no params #4856

Closed
wants to merge 2 commits into from

Conversation

@giulianoriccio
Copy link
Contributor

commented Jul 19, 2013

The following code will throw 3 warnings:

$mimeTypeValidator = new \Zend\Validator\File\MimeType();
Warning: array_key_exists() expects parameter 2 to be array, null given in \library\Zend\Validator
\File\MimeType.php on line 116
Warning: array_keys() expects parameter 1 to be array, null given in \library\Zend\Validator\File\MimeType.php on line 123
Warning: Invalid argument supplied for foreach() in \library\Zend\Validator\File\MimeType.php on line 123
The following code will throw 3 warnings:

```php
$mimeTypeValidator = new \Zend\Validator\File\MimeType();
```
```
Warning: array_key_exists() expects parameter 2 to be array, null given in \library\Zend\Validator
\File\MimeType.php on line 116
Warning: array_keys() expects parameter 1 to be array, null given in \library\Zend\Validator\File\MimeType.php on line 123
Warning: Invalid argument supplied for foreach() in \library\Zend\Validator\File\MimeType.php on line 123
```
@ghost ghost assigned weierophinney Jul 19, 2013
weierophinney added a commit that referenced this pull request Jul 19, 2013
Zend\Validator\File\MimeType warning with no params
weierophinney added a commit that referenced this pull request Jul 19, 2013
Forward port #4856
weierophinney added a commit to zendframework/zend-validator that referenced this pull request May 15, 2015
…io/patch-1

Zend\Validator\File\MimeType warning with no params
weierophinney added a commit to zendframework/zend-validator that referenced this pull request May 15, 2015
weierophinney added a commit to zendframework/zend-validator that referenced this pull request May 15, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.