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

See also: