Skip to content

Commit

Permalink
fixed array accessing
Browse files Browse the repository at this point in the history
  • Loading branch information
Mindaugas Rukas committed Jan 9, 2015
1 parent 5190437 commit 92c2600
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Mapping/MetadataCollector.php
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,9 @@ private function getSettersAndGetters(\ReflectionClass $reflectionClass, array $
$getters = [];

foreach ($properties as $property => $params) {
if (array_key_exists($property, $this->aliases[$reflectionClass->getName()])) {
if (isset($this->aliases[$reflectionClass->getName()]) &&
array_key_exists($property, $this->aliases[$reflectionClass->getName()])
) {
list($setters[$property], $getters[$property]) = $this
->getInfoAboutProperty(
$params,
Expand Down

0 comments on commit 92c2600

Please sign in to comment.