Completed
Branch master (093040)
by Kévin
10:27
created
Category
src/Generator.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -41,10 +41,10 @@  discard block
 block discarded – undo
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
 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
             if (!$this->propertyInfoExtractor->isWritable($className, $propertyName, $propertyInfoContext)) {
59 59
                 continue;
Please login to merge, or discard this patch.