Skip to content

Commit df3e3ae

Browse files
committed
Parameter name change to support PHP 8.4
1 parent a316f8e commit df3e3ae

File tree

2 files changed

+4
-13
lines changed

2 files changed

+4
-13
lines changed

test/Generator/AbstractGeneratorTest.php

+3-12
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,11 @@ class AbstractGeneratorTest extends TestCase
1414
{
1515
public function testConstructor()
1616
{
17-
$generator = $this->getMockForAbstractClass(
18-
AbstractGenerator::class,
17+
$generator = $this->getMockForAbstractClass(AbstractGenerator::class, [
1918
[
20-
[
21-
'indentation' => 'foo',
22-
],
19+
'indentation' => 'foo',
2320
],
24-
'',
25-
true,
26-
true,
27-
true,
28-
[],
29-
false
30-
);
21+
]);
3122

3223
self::assertInstanceOf(GeneratorInterface::class, $generator);
3324
self::assertSame('foo', $generator->getIndentation());

test/Generator/TestAsset/ParameterClass.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public function defaultConstant($con = self::FOO)
7575

7676
}
7777

78-
public function defaultObjectEqualsNullAndNotOptional(?\stdClass $a, $b)
78+
public function nullableAndRequired(?\stdClass $a, $b)
7979
{
8080

8181
}

0 commit comments

Comments
 (0)