mage2pro / core

A unique middleware that bridges the gap between the out-of-box Magento / Adobe Commerce software and the needs of real-world information systems
https://upwork.com/fl/mage2pro
MIT License
10 stars 12 forks source link

Config/Backend.php, line 64: «Namespace for df_le class is not specified» #27

Closed dmitrii-fediuk closed 7 years ago

dmitrii-fediuk commented 7 years ago

I have the following code there:

catch (\Exception $e) {df_log($e); throw df_le($e);}

https://github.com/mage2pro/core/blob/2.12.20/Config/Backend.php#L64

df_le is not a class, it is a function:

function df_le(E $e) {return $e instanceof LE ? $e : new LE(__(df_ets($e)), $e);}

https://github.com/mage2pro/core/blob/2.12.20/Qa/lib/exception.php#L53-L58

dmitrii-fediuk commented 7 years ago

I do not know how to fix it, so I have reported it here: https://github.com/magento/marketplace-eqp/issues/61

dmitrii-fediuk commented 7 years ago

Another issue with the «Namespace for class is not specified» message https://github.com/magento/marketplace-eqp/issues/45 It is much easier to fix than mine...

dmitrii-fediuk commented 7 years ago

I have suppressed it in the 2.12.23 version by // @codingStandardsIgnoreLine.

dmitrii-fediuk commented 7 years ago

The Magento Marketplace's automatic technical validation tool ignores // @codingStandardsIgnoreLine (so I need another solution): 01

dmitrii-fediuk commented 7 years ago

Fixed in the 2.12.27 version.