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

Closed
wants to merge 2 commits into
from

Conversation

Projects
None yet
2 participants
Contributor

giulianoriccio 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

giulianoriccio added some commits Jul 19, 2013

@giulianoriccio giulianoriccio Zend\Validator\File\MimeType warning with no params
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
```
46f84d5
@giulianoriccio giulianoriccio removed trailing spaces 90f034c

@weierophinney weierophinney added a commit that referenced this pull request Jul 19, 2013

@weierophinney weierophinney Merge pull request #4856 from giulianoriccio/patch-1
Zend\Validator\File\MimeType warning with no params
8f9bb09

@weierophinney weierophinney added a commit that referenced this pull request Jul 19, 2013

@weierophinney weierophinney Merge branch 'hotfix/4856' into develop
Forward port #4856
a0bf7a7

@weierophinney weierophinney added a commit to zendframework/zend-validator that referenced this pull request May 15, 2015

@weierophinney weierophinney Merge pull request zendframework/zendframework#4856 from giulianoricc…
…io/patch-1

Zend\Validator\File\MimeType warning with no params
e4c288e

@weierophinney weierophinney added a commit to zendframework/zend-validator that referenced this pull request May 15, 2015

@weierophinney weierophinney Merge branch 'hotfix/4856' 274bd7f

@weierophinney weierophinney added a commit to zendframework/zend-validator that referenced this pull request May 15, 2015

@weierophinney weierophinney Merge branch 'hotfix/4856' into develop b68984e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment