Completed
Pull Request — master (#198)
by Marco
15:41 queued 01:27
created
test/unit/DetectChanges/BCBreak/MethodBased/MethodScopeChangedTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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),
Please login to merge, or discard this patch.
BCBreak/ClassConstantBased/ClassConstantVisibilityReducedTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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),
Please login to merge, or discard this patch.
DetectChanges/BCBreak/ClassConstantBased/ClassConstantValueChangedTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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),
Please login to merge, or discard this patch.
DetectChanges/BCBreak/PropertyBased/PropertyDefaultValueChangedTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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)),
Please login to merge, or discard this patch.
DetectChanges/BCBreak/PropertyBased/PropertyDocumentedTypeChangedTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
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
         );
@@ -214,7 +214,7 @@  discard block
 block discarded – undo
214 214
             array_keys($properties),
215 215
             array_map(
216 216
                 /** @psalm-param list<string> $errorMessages https://github.com/vimeo/psalm/issues/2772 */
217
-                static function (string $property, array $errorMessages) use ($fromClass, $toClass) : array {
217
+                static function(string $property, array $errorMessages) use ($fromClass, $toClass) : array {
218 218
                     return [
219 219
                         TypeRestriction::object($fromClass->getProperty($property)),
220 220
                         TypeRestriction::object($toClass->getProperty($property)),
Please login to merge, or discard this patch.
unit/DetectChanges/BCBreak/PropertyBased/PropertyBecameInternalTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
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
         );
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
             array_keys($properties),
103 103
             array_map(
104 104
                 /** @psalm-param list<string> $errorMessages https://github.com/vimeo/psalm/issues/2772 */
105
-                static function (string $property, array $errorMessages) use ($fromClass, $toClass) : array {
105
+                static function(string $property, array $errorMessages) use ($fromClass, $toClass) : array {
106 106
                     return [
107 107
                         TypeRestriction::object($fromClass->getProperty($property)),
108 108
                         TypeRestriction::object($toClass->getProperty($property)),
Please login to merge, or discard this patch.
test/unit/DetectChanges/BCBreak/PropertyBased/PropertyScopeChangedTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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 $property, array $errorMessages) use ($fromClass, $toClass) : array {
131
+                static function(string $property, array $errorMessages) use ($fromClass, $toClass) : array {
132 132
                     return [
133 133
                         TypeRestriction::object($fromClass->getProperty($property)),
134 134
                         TypeRestriction::object($toClass->getProperty($property)),
Please login to merge, or discard this patch.
unit/DetectChanges/BCBreak/PropertyBased/PropertyVisibilityReducedTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
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
         );
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
             array_keys($properties),
114 114
             array_map(
115 115
                 /** @psalm-param list<string> $errorMessages https://github.com/vimeo/psalm/issues/2772 */
116
-                static function (string $property, array $errorMessages) use ($fromClass, $toClass) : array {
116
+                static function(string $property, array $errorMessages) use ($fromClass, $toClass) : array {
117 117
                     return [
118 118
                         TypeRestriction::object($fromClass->getProperty($property)),
119 119
                         TypeRestriction::object($toClass->getProperty($property)),
Please login to merge, or discard this patch.
test/unit/DetectChanges/BCBreak/ClassBased/ClassBecameAbstractTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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),
Please login to merge, or discard this patch.