Skip to content

Commit 4e0985a

Browse files
authored
Merge pull request #122 from mhauri/eliminate-zend-exception
Eliminate usage of Zend_Exception from Magento 2 Open Source
2 parents b07b778 + a35e09e commit 4e0985a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dev/tests/functional/lib/Magento/Mtf/Util/Generate/Fixture/FieldsProvider.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -182,14 +182,14 @@ protected function compositeCollectFields(array $fixture)
182182
* Retrieve connection to resource specified by $resourceName.
183183
*
184184
* @param string $resourceName
185-
* @return \Exception|false|\Magento\Framework\DB\Adapter\AdapterInterface|\Zend_Exception
185+
* @return \Exception|false|\Magento\Framework\DB\Adapter\AdapterInterface
186186
*/
187187
protected function getConnection($resourceName)
188188
{
189189
try {
190190
$connection = $this->resource->getConnection($resourceName);
191191
return $connection;
192-
} catch (\Zend_Exception $e) {
192+
} catch (\Exception $e) {
193193
echo $e->getMessage() . PHP_EOL;
194194
return $e;
195195
}

0 commit comments

Comments
 (0)