@@ -69,7 +69,7 @@ |
||
69 | 69 | return TypeRestriction::array(array_combine( |
70 | 70 | array_keys($properties), |
71 | 71 | array_map( |
72 | - static function (string $expectedMessage, ReflectionProperty $property) : array { |
|
72 | + static function(string $expectedMessage, ReflectionProperty $property) : array { |
|
73 | 73 | return [$property, $expectedMessage]; |
74 | 74 | }, |
75 | 75 | array_keys($properties), |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | |
38 | 38 | self::assertSame( |
39 | 39 | $expectedMessages, |
40 | - array_map(static function (Change $change) : string { |
|
40 | + array_map(static function(Change $change) : string { |
|
41 | 41 | return $change->__toString(); |
42 | 42 | }, iterator_to_array($changes)) |
43 | 43 | ); |
@@ -128,7 +128,7 @@ discard block |
||
128 | 128 | array_keys($properties), |
129 | 129 | array_map( |
130 | 130 | /** @psalm-param list<string> $errorMessages https://github.com/vimeo/psalm/issues/2772 */ |
131 | - static function (string $methodName, array $errorMessages) use ($fromClass, $toClass) : array { |
|
131 | + static function(string $methodName, array $errorMessages) use ($fromClass, $toClass) : array { |
|
132 | 132 | return [ |
133 | 133 | $fromClass->getMethod($methodName), |
134 | 134 | $toClass->getMethod($methodName), |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | |
38 | 38 | self::assertSame( |
39 | 39 | $expectedMessages, |
40 | - array_map(static function (Change $change) : string { |
|
40 | + array_map(static function(Change $change) : string { |
|
41 | 41 | return $change->__toString(); |
42 | 42 | }, iterator_to_array($changes)) |
43 | 43 | ); |
@@ -114,7 +114,7 @@ discard block |
||
114 | 114 | array_keys($properties), |
115 | 115 | array_map( |
116 | 116 | /** @psalm-param list<string> $errorMessages https://github.com/vimeo/psalm/issues/2772 */ |
117 | - static function (string $method, array $errorMessages) use ($fromClass, $toClass) : array { |
|
117 | + static function(string $method, array $errorMessages) use ($fromClass, $toClass) : array { |
|
118 | 118 | return [ |
119 | 119 | $fromClass->getMethod($method), |
120 | 120 | $toClass->getMethod($method), |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | |
37 | 37 | self::assertSame( |
38 | 38 | $expectedMessages, |
39 | - array_map(function (Change $change) : string { |
|
39 | + array_map(function(Change $change) : string { |
|
40 | 40 | return $change->__toString(); |
41 | 41 | }, iterator_to_array($changes)) |
42 | 42 | ); |
@@ -119,7 +119,7 @@ discard block |
||
119 | 119 | array_keys($properties), |
120 | 120 | array_map( |
121 | 121 | /** @psalm-param list<string> $errorMessages https://github.com/vimeo/psalm/issues/2772 */ |
122 | - function (string $constant, array $errorMessages) use ($fromClass, $toClass) : array { |
|
122 | + function(string $constant, array $errorMessages) use ($fromClass, $toClass) : array { |
|
123 | 123 | return [ |
124 | 124 | $fromClass->getReflectionConstant($constant), |
125 | 125 | $toClass->getReflectionConstant($constant), |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | |
38 | 38 | self::assertSame( |
39 | 39 | $expectedMessages, |
40 | - array_map(static function (Change $change) : string { |
|
40 | + array_map(static function(Change $change) : string { |
|
41 | 41 | return $change->__toString(); |
42 | 42 | }, iterator_to_array($changes)) |
43 | 43 | ); |
@@ -126,7 +126,7 @@ discard block |
||
126 | 126 | array_keys($properties), |
127 | 127 | array_map( |
128 | 128 | /** @psalm-param list<string> $errorMessages https://github.com/vimeo/psalm/issues/2772 */ |
129 | - static function (string $constant, array $errorMessages) use ($fromClass, $toClass) : array { |
|
129 | + static function(string $constant, array $errorMessages) use ($fromClass, $toClass) : array { |
|
130 | 130 | return [ |
131 | 131 | $fromClass->getReflectionConstant($constant), |
132 | 132 | $toClass->getReflectionConstant($constant), |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | |
38 | 38 | self::assertSame( |
39 | 39 | $expectedMessages, |
40 | - array_map(static function (Change $change) : string { |
|
40 | + array_map(static function(Change $change) : string { |
|
41 | 41 | return $change->__toString(); |
42 | 42 | }, iterator_to_array($changes)) |
43 | 43 | ); |
@@ -144,7 +144,7 @@ discard block |
||
144 | 144 | array_keys($properties), |
145 | 145 | array_map( |
146 | 146 | /** @psalm-param list<string> $errorMessages https://github.com/vimeo/psalm/issues/2772 */ |
147 | - static function (string $property, array $errorMessages) use ($fromClass, $toClass) : array { |
|
147 | + static function(string $property, array $errorMessages) use ($fromClass, $toClass) : array { |
|
148 | 148 | return [ |
149 | 149 | TypeRestriction::object($fromClass->getProperty($property)), |
150 | 150 | TypeRestriction::object($toClass->getProperty($property)), |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | |
38 | 38 | self::assertSame( |
39 | 39 | $expectedMessages, |
40 | - array_map(static function (Change $change) : string { |
|
40 | + array_map(static function(Change $change) : string { |
|
41 | 41 | return $change->__toString(); |
42 | 42 | }, iterator_to_array($changes)) |
43 | 43 | ); |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | , |
69 | 69 | $locator |
70 | 70 | )); |
71 | - $toReflector = new ClassReflector(new StringSourceLocator( |
|
71 | + $toReflector = new ClassReflector(new StringSourceLocator( |
|
72 | 72 | <<<'PHP' |
73 | 73 | <?php |
74 | 74 | |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | array_keys($classes), |
103 | 103 | array_map( |
104 | 104 | /** @psalm-param list<string> $errors https://github.com/vimeo/psalm/issues/2772 */ |
105 | - static function (string $className, array $errors) use ($fromReflector, $toReflector) : array { |
|
105 | + static function(string $className, array $errors) use ($fromReflector, $toReflector) : array { |
|
106 | 106 | return [ |
107 | 107 | $fromReflector->reflect($className), |
108 | 108 | $toReflector->reflect($className), |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | |
37 | 37 | self::assertSame( |
38 | 38 | $expectedMessages, |
39 | - array_map(function (Change $change) : string { |
|
39 | + array_map(function(Change $change) : string { |
|
40 | 40 | return $change->__toString(); |
41 | 41 | }, iterator_to_array($changes)) |
42 | 42 | ); |
@@ -158,7 +158,7 @@ discard block |
||
158 | 158 | array_keys($functions), |
159 | 159 | array_map( |
160 | 160 | /** @psalm-param list<string> $errorMessages https://github.com/vimeo/psalm/issues/2772 */ |
161 | - static function (string $function, array $errorMessages) use ($fromReflector, $toReflector) : array { |
|
161 | + static function(string $function, array $errorMessages) use ($fromReflector, $toReflector) : array { |
|
162 | 162 | return [ |
163 | 163 | $fromReflector->reflect($function), |
164 | 164 | $toReflector->reflect($function), |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | |
37 | 37 | self::assertSame( |
38 | 38 | $expectedMessages, |
39 | - array_map(function (Change $change) : string { |
|
39 | + array_map(function(Change $change) : string { |
|
40 | 40 | return $change->__toString(); |
41 | 41 | }, iterator_to_array($changes)) |
42 | 42 | ); |
@@ -154,7 +154,7 @@ discard block |
||
154 | 154 | array_keys($functions), |
155 | 155 | array_map( |
156 | 156 | /** @psalm-param list<string> $errorMessages https://github.com/vimeo/psalm/issues/2772 */ |
157 | - function (string $function, array $errorMessages) use ($fromReflector, $toReflector) : array { |
|
157 | + function(string $function, array $errorMessages) use ($fromReflector, $toReflector) : array { |
|
158 | 158 | return [ |
159 | 159 | $fromReflector->reflect($function), |
160 | 160 | $toReflector->reflect($function), |