comparison vendor/symfony/serializer/Normalizer/ObjectToPopulateTrait.php @ 17:129ea1e6d783

Update, including to Drupal core 8.6.10
author Chris Cannam
date Thu, 28 Feb 2019 13:21:36 +0000
parents 1fec387a4317
children
comparison
equal deleted inserted replaced
16:c2387f117808 17:129ea1e6d783
26 */ 26 */
27 protected function extractObjectToPopulate($class, array $context, $key = null) 27 protected function extractObjectToPopulate($class, array $context, $key = null)
28 { 28 {
29 $key = $key ?: 'object_to_populate'; 29 $key = $key ?: 'object_to_populate';
30 30
31 if (isset($context[$key]) && is_object($context[$key]) && $context[$key] instanceof $class) { 31 if (isset($context[$key]) && \is_object($context[$key]) && $context[$key] instanceof $class) {
32 return $context[$key]; 32 return $context[$key];
33 } 33 }
34 34
35 return null; 35 return null;
36 } 36 }