Skip to content

Commit

Permalink
Define initial array value.
Browse files Browse the repository at this point in the history
Refs #5257
  • Loading branch information
markstory committed Nov 26, 2014
1 parent 6754ba7 commit 3c8d033
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ORM/EntityValidator.php
Expand Up @@ -51,6 +51,7 @@ protected function _buildPropertyMap($include) {
return [];
}

$map = [];
foreach ($include['associated'] as $key => $options) {
if (is_int($key) && is_scalar($options)) {
$key = $options;
Expand All @@ -66,7 +67,6 @@ protected function _buildPropertyMap($include) {
];
}
}

return $map;
}

Expand Down

0 comments on commit 3c8d033

Please sign in to comment.