Skip to content

Commit a26ce7a

Browse files
github-actionsgithub-actions[bot]
authored andcommitted
style(php-cs-fixer): fix coding standards
1 parent cf765e7 commit a26ce7a

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

tests/fixtures/CallbackWithDNFTypehintClass.php

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,18 @@
22

33
namespace React\Promise;
44

5-
use Countable;
6-
use RuntimeException;
7-
85
class CallbackWithDNFTypehintClass
96
{
10-
#[PHP8] public function __invoke((RuntimeException&Countable)|(RuntimeException&\IteratorAggregate) $e): void { } /*
11-
public function __invoke(bool $unusedOnPhp8ButRequiredToMakePhpstanWorkOnLegacyPhp = true): void { } // */
7+
#[PHP8]
8+
public static function testCallbackStatic((\RuntimeException&\Countable)|(\RuntimeException&\IteratorAggregate) $e): void {}/*
9+
public static function testCallbackStatic(bool $unusedOnPhp8ButRequiredToMakePhpstanWorkOnLegacyPhp = true): void { } // */
1210

13-
#[PHP8] public function testCallback((RuntimeException&Countable)|(RuntimeException&\IteratorAggregate) $e): void { } /*
14-
public function testCallback(bool $unusedOnPhp8ButRequiredToMakePhpstanWorkOnLegacyPhp = true): void { } // */
11+
#[PHP8]
12+
public function testCallback((\RuntimeException&\Countable)|(\RuntimeException&\IteratorAggregate) $e): void {}
1513

16-
#[PHP8] public static function testCallbackStatic((RuntimeException&Countable)|(RuntimeException&\IteratorAggregate) $e): void { }/*
17-
public static function testCallbackStatic(bool $unusedOnPhp8ButRequiredToMakePhpstanWorkOnLegacyPhp = true): void { } // */
14+
/*
15+
public function testCallback(bool $unusedOnPhp8ButRequiredToMakePhpstanWorkOnLegacyPhp = true): void { } // */
16+
#[PHP8]
17+
public function __invoke((\RuntimeException&\Countable)|(\RuntimeException&\IteratorAggregate) $e): void {} /*
18+
public function __invoke(bool $unusedOnPhp8ButRequiredToMakePhpstanWorkOnLegacyPhp = true): void { } // */
1819
}

0 commit comments

Comments
 (0)