Completed
Branch master (09494e)
by Woody
19:47
created
src/Traits/ImmutableValueObjectTrait.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
         $data = array_intersect_key($data, get_object_vars($this));
97 97
 
98 98
         // Type coercion and class expectations are not run on null values
99
-        $values = array_filter($data, static function ($value) {
99
+        $values = array_filter($data, static function($value) {
100 100
             return null !== $value;
101 101
         });
102 102
 
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
      */
144 144
     public function toArray()
145 145
     {
146
-        return array_map(static function ($value) {
146
+        return array_map(static function($value) {
147 147
             if ($value instanceof ArraySerializableInterface) {
148 148
                 $value = $value->toArray();
149 149
             }
Please login to merge, or discard this patch.