Skip to content

Commit 47de030

Browse files
author
Yuri Kovsher
committed
MAGETWO-34991: Eliminate exceptions from the list Part2
1 parent 91b2817 commit 47de030

File tree

4 files changed

+0
-19
lines changed

4 files changed

+0
-19
lines changed

dev/tests/integration/testsuite/Magento/Test/Integrity/Modular/LayoutFilesTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,6 @@ public function testLayoutArguments($area, $layoutFile)
4444
continue;
4545
}
4646
$this->_argInterpreter->evaluate($argumentData);
47-
} catch (\Magento\Framework\Data\Argument\MissingOptionalValueException $e) {
48-
// Argument value is missing in the testing environment, but it's optional, so no big deal
4947
} catch (\Exception $e) {
5048
$this->fail($e->getMessage());
5149
}

lib/internal/Magento/Framework/App/Arguments/ArgumentInterpreter.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
use Magento\Framework\Data\Argument\Interpreter\Constant;
99
use Magento\Framework\Data\Argument\InterpreterInterface;
10-
use Magento\Framework\Data\Argument\MissingOptionalValueException;
1110

1211
/**
1312
* Interpreter that returns value of an application argument, retrieving its name from a constant
@@ -30,7 +29,6 @@ public function __construct(Constant $constInterpreter)
3029
/**
3130
* {@inheritdoc}
3231
* @return mixed
33-
* @throws MissingOptionalValueException
3432
*/
3533
public function evaluate(array $data)
3634
{

lib/internal/Magento/Framework/Data/Argument/InterpreterInterface.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ interface InterpreterInterface
1717
* @return mixed
1818
* @throws \InvalidArgumentException
1919
* @throws \UnexpectedValueException
20-
* @throws MissingOptionalValueException
2120
*/
2221
public function evaluate(array $data);
2322
}

lib/internal/Magento/Framework/Data/Argument/MissingOptionalValueException.php

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)