The \Magento\Framework\App\Config::getValue() method has a wrong PHPDoc type for the $scopeCode parameter

https://github.com/magento/magento2/blob/2.0.0/lib/internal/Magento/Framework/App/Config.php#L32-L46

Should be:

@param null|string|int|ScopeInterface $scopeCode [optional]

because $scopeCode can be also int or \Magento\Framework\App\ScopeInterface:

https://github.com/magento/magento2/blob/2.0.0/lib/internal/Magento/Framework/App/Config/ScopePool.php#L113-L129


https://github.com/magento/magento2/issues/2980

See also: