Skip to content

Commit 881a597

Browse files
Merge branch '9.5'
2 parents e6ac90d + 845b6be commit 881a597

File tree

18 files changed

+41
-38
lines changed

18 files changed

+41
-38
lines changed

.phive/phars.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<phive xmlns="https://phar.io/phive">
33
<phar name="phpab" version="^1.25" installed="1.27.1" location="./tools/phpab" copy="true"/>
4-
<phar name="php-cs-fixer" version="^3.0" installed="3.6.0" location="./tools/php-cs-fixer" copy="true"/>
4+
<phar name="php-cs-fixer" version="^3.0" installed="3.7.0" location="./tools/php-cs-fixer" copy="true"/>
55
<phar name="phpdox" version="^0.12" installed="0.12.0" location="./tools/phpdox" copy="true"/>
66
<phar name="phploc" version="^4.0" installed="4.0.1" location="./tools/phploc" copy="true"/>
77
<phar name="psalm" version="^4.0" installed="4.22.0" location="./tools/psalm" copy="true"/>

.php-cs-fixer.dist.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,10 @@
132132
'native_function_casing' => false,
133133
'native_function_invocation' => false,
134134
'native_function_type_declaration_casing' => true,
135-
'new_with_braces' => false,
135+
'new_with_braces' => [
136+
'named_class' => false,
137+
'anonymous_class' => false,
138+
],
136139
'no_alias_functions' => true,
137140
'no_alias_language_construct_call' => true,
138141
'no_alternative_syntax' => true,

src/Event/Emitter/DispatchingEmitter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public function testRunnerStarted(): void
5555
$this->dispatcher->dispatch(
5656
new TestRunner\Started(
5757
$this->telemetryInfo(),
58-
new Runtime\Runtime()
58+
new Runtime\Runtime
5959
)
6060
);
6161
}

src/TextUI/Configuration/Configuration.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -888,7 +888,7 @@ public function hasTestsCovering(): bool
888888
public function testsCovering(): array
889889
{
890890
if (!$this->hasTestsCovering()) {
891-
throw new FilterNotConfiguredException();
891+
throw new FilterNotConfiguredException;
892892
}
893893

894894
return $this->testsCovering;
@@ -910,7 +910,7 @@ public function hasTestsUsing(): bool
910910
public function testsUsing(): array
911911
{
912912
if (!$this->hasTestsUsing()) {
913-
throw new FilterNotConfiguredException();
913+
throw new FilterNotConfiguredException;
914914
}
915915

916916
return $this->testsUsing;

tests/_files/TestWithDifferentStatuses.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public function testThatFails(): void
2121

2222
public function testThatErrors(): void
2323
{
24-
throw new Exception();
24+
throw new Exception;
2525
}
2626

2727
public function testThatPasses(): void

tests/end-to-end/no-log-cc-override/_files/NoLogNoCcTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ final class NoLogNoCcTest extends TestCase
1616
{
1717
public function testSuccess(): void
1818
{
19-
$this->assertTrue((new NoLogNoCc())->getTrue());
19+
$this->assertTrue((new NoLogNoCc)->getTrue());
2020
}
2121
}

tests/end-to-end/regression/GitHub/3739/Issue3739Test.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ final class Issue3739Test extends TestCase
2929
{
3030
public function testWithErrorSuppression(): void
3131
{
32-
$this->assertFalse((new Issue3739())->unlinkFileThatDoesNotExistWithErrorSuppression());
32+
$this->assertFalse((new Issue3739)->unlinkFileThatDoesNotExistWithErrorSuppression());
3333
}
3434

3535
public function testWithoutErrorSuppression(): void
3636
{
37-
$this->assertFalse((new Issue3739())->unlinkFileThatDoesNotExistWithoutErrorSuppression());
37+
$this->assertFalse((new Issue3739)->unlinkFileThatDoesNotExistWithoutErrorSuppression());
3838
}
3939
}

tests/unit/Event/DirectDispatcherTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public function testRegisterRejectsUnknownSubscriber(): void
2424
{
2525
$subscriber = new NullSubscriber;
2626

27-
$dispatcher = new DirectDispatcher(new TypeMap());
27+
$dispatcher = new DirectDispatcher(new TypeMap);
2828

2929
$this->expectException(RuntimeException::class);
3030

@@ -35,7 +35,7 @@ public function testDispatchRejectsUnknownEventType(): void
3535
{
3636
$event = new DummyEvent;
3737

38-
$dispatcher = new DirectDispatcher(new TypeMap());
38+
$dispatcher = new DirectDispatcher(new TypeMap);
3939

4040
$this->expectException(RuntimeException::class);
4141

tests/unit/Event/DispatchingEmitterTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1484,7 +1484,7 @@ public function testTestTestProxyCreatedDispatchesTestDoubleTestProxyCreatedEven
14841484
$className = self::class;
14851485
$constructorArguments = [
14861486
'foo',
1487-
new stdClass(),
1487+
new stdClass,
14881488
[
14891489
'bar',
14901490
'baz',
@@ -1639,7 +1639,7 @@ public function notify(TestSuiteFinished $event): void
16391639
$this->assertSame(1, $event->testSuite()->count());
16401640
$this->assertSame('foo', $event->testSuite()->name());
16411641

1642-
$mappedResult = (new TestResultMapper())->map($result);
1642+
$mappedResult = (new TestResultMapper)->map($result);
16431643

16441644
$this->assertEquals($mappedResult, $event->result());
16451645
}
@@ -1778,8 +1778,8 @@ private function dispatcherWithRegisteredSubscribers(string $subscriberInterface
17781778
private function telemetrySystem(): Telemetry\System
17791779
{
17801780
return new Telemetry\System(
1781-
new Telemetry\SystemStopWatch(),
1782-
new Telemetry\SystemMemoryMeter()
1781+
new Telemetry\SystemStopWatch,
1782+
new Telemetry\SystemMemoryMeter
17831783
);
17841784
}
17851785

tests/unit/Event/Events/TestDouble/TestProxyCreatedTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public function testConstructorSetsValues(): void
2222
$className = self::class;
2323
$constructorArguments = [
2424
'foo',
25-
new stdClass(),
25+
new stdClass,
2626
[
2727
'bar',
2828
'baz',

0 commit comments

Comments
 (0)