Skip to content

Commit f5d3af7

Browse files
Fix
1 parent 9301ade commit f5d3af7

File tree

2 files changed

+19
-4
lines changed

2 files changed

+19
-4
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?php declare(strict_types=1);
2+
/*
3+
* This file is part of PHPUnit.
4+
*
5+
* (c) Sebastian Bergmann <sebastian@phpunit.de>
6+
*
7+
* For the full copyright and license information, please view the LICENSE
8+
* file that was distributed with this source code.
9+
*/
10+
namespace PHPUnit\TestFixture\MockObject;
11+
12+
interface Issue6174
13+
{
14+
public function methodNullDefault(?string $param, ?string $nullDefault = null): string;
15+
16+
public function methodStringDefault(?string $param, ?string $stringDefault = 'something'): string;
17+
}

tests/_files/mock-object/YetAnotherInterface.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@
99
*/
1010
namespace PHPUnit\TestFixture\MockObject;
1111

12-
interface Issue6174
12+
interface YetAnotherInterface
1313
{
14-
public function methodNullDefault(?string $param, ?string $nullDefault = null): string;
15-
16-
public function methodStringDefault(?string $param, ?string $stringDefault = 'something'): string;
14+
public function doSomethingElseEntirely();
1715
}

0 commit comments

Comments
 (0)