Skip to content
This repository has been archived by the owner on Jan 31, 2020. It is now read-only.

Commit

Permalink
zendframework/zendframework#6869 - s/`ObjectProperty#$propertyFilterC…
Browse files Browse the repository at this point in the history
…ache`/`ObjectProperty#$skippedPropertiesCache`
  • Loading branch information
Ocramius committed Nov 29, 2014
1 parent eae3de2 commit 7230913
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Hydrator/ObjectProperty.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class ObjectProperty extends AbstractHydrator
/**
* @var array[] indexed by class name and then property name
*/
private static $propertyFilterCache = array();
private static $skippedPropertiesCache = array();

/**
* Extract values from an object
Expand Down Expand Up @@ -79,7 +79,7 @@ public function hydrate(array $data, $object)
));
}

$properties = & self::$propertyFilterCache[get_class($object)];
$properties = & self::$skippedPropertiesCache[get_class($object)];

if (! isset($properties)) {
$reflection = new ReflectionClass($object);
Expand Down

0 comments on commit 7230913

Please sign in to comment.