Skip to content

Commit 7fc1139

Browse files
authored
Merge pull request #26 from gambry/bugfix/23-php-notice-undefined-index
Avoid "Undefined index" PHP Notice
2 parents a5186bc + b007cff commit 7fc1139

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/aleksip/DataTransformPlugin/DataTransformer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ protected function processPattern($pattern)
7979
foreach (array_keys($patternSpecificData) as $key) {
8080
if (!isset($dataStore['patternSpecific'][$pattern]['data'][$key])) {
8181
// Value is default global data.
82-
if (is_object($dataStore[$key])) {
82+
if (isset($dataStore[$key]) && is_object($dataStore[$key])) {
8383
$patternSpecificData[$key] = clone $dataStore[$key];
8484
}
8585
}

0 commit comments

Comments
 (0)