Completed
Branch master (6f25b6)
by Kévin
25:02 queued 10:45
created
src/Generator.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -40,11 +40,11 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.