Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

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

Closed
wants to merge 2 commits into from

Conversation

giulianoriccio
Copy link
Contributor

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
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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants