We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 35ef773 commit 73febf8Copy full SHA for 73febf8
src/Check/CodeExistsCheck.php
@@ -33,7 +33,7 @@ public function getName(): string
33
*/
34
public function check(ExecutionContext $context): ResultInterface
35
{
36
- $noopHandler = new class () implements ErrorHandler {
+ $noopHandler = new class implements ErrorHandler {
37
public function handleError(Error $error): void {}
38
};
39
src/ExerciseRunner/Context/TestContext.php
@@ -66,7 +66,7 @@ public function importReferenceSolution(): void
66
);
67
}
68
69
- $scenario = new class () extends ExerciseScenario {};
+ $scenario = new class extends ExerciseScenario {};
70
if ($this->exercise instanceof CliExercise || $this->exercise instanceof CgiExercise) {
71
$scenario = $this->exercise->defineTestScenario();
72
test/CodePatcherTest.php
@@ -138,7 +138,7 @@ public function codeProvider(): array
138
'transformer-class' => [
139
'<?php $original = true;',
140
(new Patch())
141
- ->withTransformer(new class () implements Patch\Transformer {
+ ->withTransformer(new class implements Patch\Transformer {
142
public function transform(array $statements): array
143
144
return [
test/Event/EventDispatcherTest.php
@@ -166,7 +166,7 @@ public function testRemoveLazyListeners(): void
166
167
$container = $this->createMock(ContainerInterface::class);
168
169
- $myListener = new class () {
+ $myListener = new class {
170
public function __invoke() {}
171
172
@@ -193,7 +193,7 @@ public function testRemoveLazyListenersWithAlternateMethod(): void
193
194
195
196
197
public function myMethod() {}
198
199
test/Listener/LazyContainerListenerTest.php
@@ -13,7 +13,7 @@ class LazyContainerListenerTest extends TestCase
13
14
public function testExceptionIsThrownIfServiceMethodDoesNotExist(): void
15
16
17
18
19
@@ -39,7 +39,7 @@ public function __invoke() {}
40
public function testThatUnderlyingListenerIsCalled(): void
41
42
43
public $called = false;
44
public function __invoke()
45
@@ -66,7 +66,7 @@ public function __invoke()
public function testWrappedReturnsUnderlyingListener(): void
test/Markdown/Parser/HandleBarParserTest.php
@@ -83,7 +83,7 @@ public function testWithShorthand(string $content, bool $expectedParseResult, ar
83
$context->expects($this->never())->method('getContainer');
84
85
86
- $shorthand = new class () implements ShorthandInterface {
+ $shorthand = new class implements ShorthandInterface {
87
public $args = [];
88
public function __invoke(array $callArgs): array
89
test/PatchTest.php
@@ -34,7 +34,7 @@ public function testWithTransformerWithClosure(): void
public function testWithTransformerWithTransformer(): void
$patch = new Patch();
- $transformer = new class () implements Patch\Transformer {
+ $transformer = new class implements Patch\Transformer {
public function transform(array $ast): array
return $ast;
@@ -49,7 +49,7 @@ public function transform(array $ast): array
49
50
public function testWithTransformerMultiple(): void
51
52
- $transformer1 = new class () implements Patch\Transformer {
+ $transformer1 = new class implements Patch\Transformer {
53
54
55
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments