Skip to content

Commit 05c11d9

Browse files
committed
Style
1 parent 687dfcb commit 05c11d9

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

src/compiled.php

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@
7373
use PHPUnit\Framework\MockObject\Stub\ReturnStub;
7474
use PHPUnit\Framework\MockObject\Stub\ReturnValueMap as ReturnValueMapStub;
7575

76-
7776
if (!function_exists('assertArrayHasKey')) {
7877
/**
7978
* Asserts that an array has a specified key.
@@ -1456,7 +1455,9 @@ function assertObjectNotHasAttribute(string $attributeName, $object, string $mes
14561455
* @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
14571456
*
14581457
* @psalm-template ExpectedType
1458+
*
14591459
* @psalm-param ExpectedType $expected
1460+
*
14601461
* @psalm-assert =ExpectedType $actual
14611462
*
14621463
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
@@ -1497,7 +1498,9 @@ function assertNotSame($expected, $actual, string $message = ''): void
14971498
* @throws Exception
14981499
*
14991500
* @psalm-template ExpectedType of object
1501+
*
15001502
* @psalm-param class-string<ExpectedType> $expected
1503+
*
15011504
* @psalm-assert =ExpectedType $actual
15021505
*
15031506
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
@@ -1519,7 +1522,9 @@ function assertInstanceOf(string $expected, $actual, string $message = ''): void
15191522
* @throws Exception
15201523
*
15211524
* @psalm-template ExpectedType of object
1525+
*
15221526
* @psalm-param class-string<ExpectedType> $expected
1527+
*
15231528
* @psalm-assert !ExpectedType $actual
15241529
*
15251530
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
@@ -2901,7 +2906,7 @@ function objectEquals(object $object, string $method = 'equals'): ObjectEquals
29012906
*/
29022907
function any(): AnyInvokedCountMatcher
29032908
{
2904-
return new AnyInvokedCountMatcher;
2909+
return new AnyInvokedCountMatcher();
29052910
}
29062911
}
29072912

@@ -2934,7 +2939,7 @@ function atLeast(int $requiredInvocations): InvokedAtLeastCountMatcher
29342939
*/
29352940
function atLeastOnce(): InvokedAtLeastOnceMatcher
29362941
{
2937-
return new InvokedAtLeastOnceMatcher;
2942+
return new InvokedAtLeastOnceMatcher();
29382943
}
29392944
}
29402945

@@ -3017,7 +3022,7 @@ function returnCallback($callback): ReturnCallbackStub
30173022
*/
30183023
function returnSelf(): ReturnSelfStub
30193024
{
3020-
return new ReturnSelfStub;
3025+
return new ReturnSelfStub();
30213026
}
30223027
}
30233028

0 commit comments

Comments
 (0)