Skip to content

Commit 95962aa

Browse files
committed
chore: Cleanup
1 parent cf765e7 commit 95962aa

File tree

4 files changed

+7
-43
lines changed

4 files changed

+7
-43
lines changed

tests/PHP8.php

Lines changed: 0 additions & 19 deletions
This file was deleted.

tests/fixtures/CallbackWithDNFTypehintClass.php

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,9 @@
77

88
class CallbackWithDNFTypehintClass
99
{
10-
#[PHP8] public function __invoke((RuntimeException&Countable)|(RuntimeException&\IteratorAggregate) $e): void { } /*
11-
public function __invoke(bool $unusedOnPhp8ButRequiredToMakePhpstanWorkOnLegacyPhp = true): void { } // */
10+
public function __invoke((RuntimeException&Countable)|(RuntimeException&\IteratorAggregate) $e): void { }
1211

13-
#[PHP8] public function testCallback((RuntimeException&Countable)|(RuntimeException&\IteratorAggregate) $e): void { } /*
14-
public function testCallback(bool $unusedOnPhp8ButRequiredToMakePhpstanWorkOnLegacyPhp = true): void { } // */
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+
public static function testCallbackStatic((RuntimeException&Countable)|(RuntimeException&\IteratorAggregate) $e): void { }
1815
}

tests/fixtures/CallbackWithIntersectionTypehintClass.php

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,9 @@
66

77
class CallbackWithIntersectionTypehintClass
88
{
9-
#[PHP8]
10-
public static function testCallbackStatic(\RuntimeException&\Countable $e): void {}/*
11-
public static function testCallbackStatic(bool $unusedOnPhp8ButRequiredToMakePhpstanWorkOnLegacyPhp = true): void { } // */
9+
public static function testCallbackStatic(\RuntimeException&\Countable $e): void {}
1210

13-
#[PHP8]
1411
public function testCallback(\RuntimeException&\Countable $e): void {}
1512

16-
/*
17-
public function testCallback(bool $unusedOnPhp8ButRequiredToMakePhpstanWorkOnLegacyPhp = true): void { } // */
18-
#[PHP8]
19-
public function __invoke(\RuntimeException&\Countable $e): void {}/*
20-
public function __invoke(bool $unusedOnPhp8ButRequiredToMakePhpstanWorkOnLegacyPhp = true): void { } // */
13+
public function __invoke(\RuntimeException&\Countable $e): void {}
2114
}

tests/fixtures/CallbackWithUnionTypehintClass.php

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,9 @@
66

77
class CallbackWithUnionTypehintClass
88
{
9-
#[PHP8]
10-
public static function testCallbackStatic(\RuntimeException|\InvalidArgumentException $e): void {}/*
11-
public static function testCallbackStatic(bool $unusedOnPhp8ButRequiredToMakePhpstanWorkOnLegacyPhp = true): void { } // */
9+
public static function testCallbackStatic(\RuntimeException|\InvalidArgumentException $e): void {}
1210

13-
#[PHP8]
1411
public function testCallback(\RuntimeException|\InvalidArgumentException $e): void {}
1512

16-
/*
17-
public function testCallback(bool $unusedOnPhp8ButRequiredToMakePhpstanWorkOnLegacyPhp = true): void { } // */
18-
#[PHP8]
19-
public function __invoke(\RuntimeException|\InvalidArgumentException $e): void {}/*
20-
public function __invoke(bool $unusedOnPhp8ButRequiredToMakePhpstanWorkOnLegacyPhp = true): void { } // */
13+
public function __invoke(\RuntimeException|\InvalidArgumentException $e): void {}
2114
}

0 commit comments

Comments
 (0)