@@ -40,11 +40,11 @@ discard block |
||
40 | 40 | public function generate(string $className, array $context = []) : array |
41 | 41 | { |
42 | 42 | $schema = [ |
43 | - 'title' => $context['title'] ?? (new \ReflectionClass($className))->getShortName(), |
|
43 | + 'title' => $context['title'] ? ? (new \ReflectionClass($className))->getShortName(), |
|
44 | 44 | 'type' => 'object', |
45 | 45 | ]; |
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 | $writable = $this->propertyInfoExtractor->isWritable($className, $propertyName, $propertyInfoContext); |
59 | 59 |