Skip to content

Commit

Permalink
fix for #1634
Browse files Browse the repository at this point in the history
Do not typehint `array`, but check internally. Fixes #1634
  • Loading branch information
vbartusevicius authored Jul 18, 2016
1 parent 3d2133c commit c55d415
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Gedmo/Translatable/Mapping/Driver/Yaml.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@ protected function _loadMappingFile($file)
return \Symfony\Component\Yaml\Yaml::parse(file_get_contents($file));
}

private function buildFieldConfiguration($field, array $fieldMapping, array &$config)
private function buildFieldConfiguration($field, $fieldMapping, array &$config)
{
if (isset($fieldMapping['gedmo'])) {
if (is_array($fieldMapping) && isset($fieldMapping['gedmo'])) {
if (in_array('translatable', $fieldMapping['gedmo']) || isset($fieldMapping['gedmo']['translatable'])) {
// fields cannot be overrided and throws mapping exception
$config['fields'][] = $field;
Expand Down

0 comments on commit c55d415

Please sign in to comment.