Skip to content

Commit 92c2600

Browse files
author
Mindaugas Rukas
committed
fixed array accessing
1 parent 5190437 commit 92c2600

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Mapping/MetadataCollector.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,9 @@ private function getSettersAndGetters(\ReflectionClass $reflectionClass, array $
267267
$getters = [];
268268

269269
foreach ($properties as $property => $params) {
270-
if (array_key_exists($property, $this->aliases[$reflectionClass->getName()])) {
270+
if (isset($this->aliases[$reflectionClass->getName()]) &&
271+
array_key_exists($property, $this->aliases[$reflectionClass->getName()])
272+
) {
271273
list($setters[$property], $getters[$property]) = $this
272274
->getInfoAboutProperty(
273275
$params,

0 commit comments

Comments
 (0)