Skip to content

Commit c644c2e

Browse files
ENGCOM-5474: Fix for PHP_CodeSniffer error after app:config:dump #23787
- Merge Pull Request #23787 from dng-dev/magento2:patch-2 - Merged commits: 1. e164c89 2. 180568a
2 parents 5911255 + 180568a commit c644c2e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/internal/Magento/Framework/App/DeploymentConfig/Writer/PhpFormatter.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,9 @@ private function formatData($data, $comments = [], $prefix = ' ')
8080
*/
8181
private function varExportShort($var, int $depth = 0)
8282
{
83-
if (!is_array($var)) {
83+
if (null === $var) {
84+
return 'null';
85+
} elseif (!is_array($var)) {
8486
return var_export($var, true);
8587
}
8688

0 commit comments

Comments
 (0)