@@ -41,10 +41,10 @@ discard block |
||
41 | 41 | { |
42 | 42 | $reflectionClass = new \ReflectionClass($className); |
43 | 43 | |
44 | - $schema['title'] = $context['title'] ?? $reflectionClass->getShortName(); |
|
44 | + $schema['title'] = $context['title'] ? ? $reflectionClass->getShortName(); |
|
45 | 45 | $schema['type'] = 'object'; |
46 | 46 | |
47 | - $phpProperties = $this->propertyInfoExtractor->getProperties($className, $context['property_info_context'] ?? []); |
|
47 | + $phpProperties = $this->propertyInfoExtractor->getProperties($className, $context['property_info_context'] ? ? []); |
|
48 | 48 | |
49 | 49 | if (empty($phpProperties)) { |
50 | 50 | return $schema; |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | $required = []; |
54 | 54 | |
55 | 55 | foreach ($phpProperties as $propertyName) { |
56 | - $propertyInfoContext = $context['property_info_context'] ?? []; |
|
56 | + $propertyInfoContext = $context['property_info_context'] ? ? []; |
|
57 | 57 | |
58 | 58 | if (!$this->propertyInfoExtractor->isWritable($className, $propertyName, $propertyInfoContext)) { |
59 | 59 | continue; |