-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Issue 35901: explode(): Argument #2 () must be of type string, null g… #36115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
b1656cd
4a5c4db
fe750bd
815222c
fd44d02
6d21256
33938ce
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -5,21 +5,23 @@ | |||||
* Copyright © Magento, Inc. All rights reserved. | ||||||
* See COPYING.txt for license details. | ||||||
*/ | ||||||
declare(strict_types=1); | ||||||
|
||||||
namespace Magento\Framework\App; | ||||||
|
||||||
use Magento\Framework\App\Config\ConfigTypeInterface; | ||||||
use Magento\Framework\App\Config\ScopeCodeResolver; | ||||||
use Magento\Framework\App\Config\ScopeConfigInterface; | ||||||
|
||||||
/** | ||||||
* Class Config | ||||||
* Application config | ||||||
*/ | ||||||
class Config implements ScopeConfigInterface | ||||||
{ | ||||||
/** | ||||||
* Config cache tag | ||||||
*/ | ||||||
const CACHE_TAG = 'CONFIG'; | ||||||
public const CACHE_TAG = 'CONFIG'; | ||||||
|
||||||
/** | ||||||
* @var ScopeCodeResolver | ||||||
|
@@ -132,6 +134,6 @@ public function get($configType, $path = '', $default = null) | |||||
$result = $this->types[$configType]->get($path); | ||||||
} | ||||||
|
||||||
return $result !== null ? $result : $default; | ||||||
return $result !== null ? $result : ($default !== null ? $default : ''); | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think we can simplify it
Suggested change
Here is an example: Cloud you, please also cover this change with a unit test? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @ihor-sviziev I added unit test |
||||||
} | ||||||
} |
Uh oh!
There was an error while loading. Please reload this page.