Passed
Pull Request — master (#235)
by
unknown
09:22
created
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
         );
@@ -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.
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
         );
@@ -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.
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
         );
@@ -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.
test/unit/DetectChanges/BCBreak/InterfaceBased/InterfaceBecameTraitTest.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.
test/unit/DetectChanges/BCBreak/InterfaceBased/InterfaceBecameClassTest.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.
test/unit/DetectChanges/BCBreak/ClassBased/ClassBecameTraitTest.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.
test/unit/DetectChanges/BCBreak/ClassBased/ClassBecameInterfaceTest.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.
test/unit/DetectChanges/BCBreak/ClassBased/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
 
@@ -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.
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
         );
@@ -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.