Php Inspections (EA Extended): squash all PR-13813 commits
This commit is contained in:
parent
2f7bd7cf8c
commit
1530c355d5
@ -208,7 +208,7 @@ class QuestionHelperTest extends \PHPUnit_Framework_TestCase
|
|||||||
protected function getInputStream($input)
|
protected function getInputStream($input)
|
||||||
{
|
{
|
||||||
$stream = fopen('php://memory', 'r+', false);
|
$stream = fopen('php://memory', 'r+', false);
|
||||||
fputs($stream, $input);
|
fwrite($stream, $input);
|
||||||
rewind($stream);
|
rewind($stream);
|
||||||
|
|
||||||
return $stream;
|
return $stream;
|
||||||
|
@ -670,14 +670,8 @@ class OptionsResolver implements Options, OptionsResolverInterface
|
|||||||
}
|
}
|
||||||
|
|
||||||
foreach ((array) $optionNames as $option) {
|
foreach ((array) $optionNames as $option) {
|
||||||
unset($this->defined[$option]);
|
unset($this->defined[$option], $this->defaults[$option], $this->required[$option], $this->resolved[$option]);
|
||||||
unset($this->defaults[$option]);
|
unset($this->lazy[$option], $this->normalizers[$option], $this->allowedTypes[$option], $this->allowedValues[$option]);
|
||||||
unset($this->required[$option]);
|
|
||||||
unset($this->resolved[$option]);
|
|
||||||
unset($this->lazy[$option]);
|
|
||||||
unset($this->normalizers[$option]);
|
|
||||||
unset($this->allowedTypes[$option]);
|
|
||||||
unset($this->allowedValues[$option]);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
|
Reference in New Issue
Block a user