Completed
Pull Request — master (#198)
by Marco
15:41 queued 01:27
created
DetectChanges/BCBreak/FunctionBased/ReturnTypeByReferenceChangedTest.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
         );
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
                 array_keys($functions),
117 117
                 array_map(
118 118
                     /** @psalm-param list<string> $errorMessages https://github.com/vimeo/psalm/issues/2772 */
119
-                    function (string $function, array $errorMessages) use ($fromReflector, $toReflector) : array {
119
+                    function(string $function, array $errorMessages) use ($fromReflector, $toReflector) : array {
120 120
                         return [
121 121
                             $fromReflector->reflect($function),
122 122
                             $toReflector->reflect($function),
Please login to merge, or discard this patch.
test/unit/DetectChanges/BCBreak/TraitBased/TraitBecameInterfaceTest.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
         );
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
             ,
67 67
             $locator
68 68
         ));
69
-        $toReflector   = new ClassReflector(new StringSourceLocator(
69
+        $toReflector = new ClassReflector(new StringSourceLocator(
70 70
             <<<'PHP'
71 71
 <?php
72 72
 
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
             array_keys($classes),
97 97
             array_map(
98 98
                 /** @psalm-param list<string> $errors https://github.com/vimeo/psalm/issues/2772 */
99
-                static function (string $className, array $errors) use ($fromReflector, $toReflector) : array {
99
+                static function(string $className, array $errors) use ($fromReflector, $toReflector) : array {
100 100
                     return [
101 101
                         $fromReflector->reflect($className),
102 102
                         $toReflector->reflect($className),
Please login to merge, or discard this patch.
test/unit/DetectChanges/BCBreak/TraitBased/TraitBecameClassTest.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
         );
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
             ,
67 67
             $locator
68 68
         ));
69
-        $toReflector   = new ClassReflector(new StringSourceLocator(
69
+        $toReflector = new ClassReflector(new StringSourceLocator(
70 70
             <<<'PHP'
71 71
 <?php
72 72
 
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
             array_keys($classes),
97 97
             array_map(
98 98
                 /** @psalm-param list<string> $errors https://github.com/vimeo/psalm/issues/2772 */
99
-                static function (string $className, array $errors) use ($fromReflector, $toReflector) : array {
99
+                static function(string $className, array $errors) use ($fromReflector, $toReflector) : array {
100 100
                     return [
101 101
                         $fromReflector->reflect($className),
102 102
                         $toReflector->reflect($className),
Please login to merge, or discard this patch.
test/unit/DetectChanges/BCBreak/InterfaceBased/InterfaceBecameTraitTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
 
35 35
         self::assertSame(
36 36
             $expectedMessages,
37
-            array_map(static function (Change $change) : string {
37
+            array_map(static function(Change $change) : string {
38 38
                 return $change->__toString();
39 39
             }, iterator_to_array($changes))
40 40
         );
@@ -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
 
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
             array_keys($classes),
109 109
             array_map(
110 110
                 /** @psalm-param list<string> $errors https://github.com/vimeo/psalm/issues/2772 */
111
-                static function (string $className, array $errors) use ($fromReflector, $toReflector) : array {
111
+                static function(string $className, array $errors) use ($fromReflector, $toReflector) : array {
112 112
                     return [
113 113
                         $fromReflector->reflect($className),
114 114
                         $toReflector->reflect($className),
Please login to merge, or discard this patch.
test/unit/DetectChanges/BCBreak/InterfaceBased/MethodAddedTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
 
35 35
         self::assertSame(
36 36
             $expectedMessages,
37
-            array_map(static function (Change $change) : string {
37
+            array_map(static function(Change $change) : string {
38 38
                 return $change->__toString();
39 39
             }, iterator_to_array($changes))
40 40
         );
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
             array_keys($properties),
123 123
             array_map(
124 124
                 /** @psalm-param list<string> $errorMessages https://github.com/vimeo/psalm/issues/2772 */
125
-                static function (string $className, array $errorMessages) use ($fromClassReflector, $toClassReflector
125
+                static function(string $className, array $errorMessages) use ($fromClassReflector, $toClassReflector
126 126
                 ) : array {
127 127
                     return [
128 128
                         $fromClassReflector->reflect($className),
Please login to merge, or discard this patch.
test/unit/DetectChanges/BCBreak/InterfaceBased/InterfaceBecameClassTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
 
35 35
         self::assertSame(
36 36
             $expectedMessages,
37
-            array_map(static function (Change $change) : string {
37
+            array_map(static function(Change $change) : string {
38 38
                 return $change->__toString();
39 39
             }, iterator_to_array($changes))
40 40
         );
@@ -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
 
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
             array_keys($classes),
109 109
             array_map(
110 110
                 /** @psalm-param list<string> $errors https://github.com/vimeo/psalm/issues/2772 */
111
-                static function (string $className, array $errors) use ($fromReflector, $toReflector) : array {
111
+                static function(string $className, array $errors) use ($fromReflector, $toReflector) : array {
112 112
                     return [
113 113
                         $fromReflector->reflect($className),
114 114
                         $toReflector->reflect($className),
Please login to merge, or discard this patch.
test/unit/DetectChanges/BCBreak/InterfaceBased/AncestorRemovedTest.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
 
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
             array_keys($interfaces),
102 102
             array_map(
103 103
                 /** @psalm-param list<string> $errors https://github.com/vimeo/psalm/issues/2772 */
104
-                static function (string $interfaceName, array $errors) use ($fromReflector, $toReflector) : array {
104
+                static function(string $interfaceName, array $errors) use ($fromReflector, $toReflector) : array {
105 105
                     return [
106 106
                         $fromReflector->reflect($interfaceName),
107 107
                         $toReflector->reflect($interfaceName),
Please login to merge, or discard this patch.