Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cf923b9

Browse files
committed
Fix
1 parent a7c7e44 commit cf923b9

File tree

5 files changed

+5
-13
lines changed

5 files changed

+5
-13
lines changed

src/Symfony/Component/Uid/Tests/Fixture/CustomUlid.php renamed to src/Symfony/Component/Uid/Tests/Fixtures/CustomUlid.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,10 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
namespace Symfony\Component\Uid\Tests\Fixture;
12+
namespace Symfony\Component\Uid\Tests\Fixtures;
1313

1414
use Symfony\Component\Uid\Ulid;
1515

1616
final class CustomUlid extends Ulid
1717
{
18-
public function __construct(string $ulid = null)
19-
{
20-
parent::__construct($ulid);
21-
}
2218
}

src/Symfony/Component/Uid/Tests/Fixture/CustomUuid.php renamed to src/Symfony/Component/Uid/Tests/Fixtures/CustomUuid.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,10 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
namespace Symfony\Component\Uid\Tests\Fixture;
12+
namespace Symfony\Component\Uid\Tests\Fixtures;
1313

1414
use Symfony\Component\Uid\Uuid;
1515

1616
final class CustomUuid extends Uuid
1717
{
18-
public function __construct(string $uuid)
19-
{
20-
parent::__construct($uuid);
21-
}
2218
}

src/Symfony/Component/Uid/Tests/UlidTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
namespace Symfony\Component\Uid\Tests;
1313

1414
use PHPUnit\Framework\TestCase;
15-
use Symfony\Component\Uid\Tests\Fixture\CustomUlid;
15+
use Symfony\Component\Uid\Tests\Fixtures\CustomUlid;
1616
use Symfony\Component\Uid\Ulid;
1717
use Symfony\Component\Uid\UuidV4;
1818

src/Symfony/Component/Uid/Tests/UuidTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
use PHPUnit\Framework\TestCase;
1515
use Symfony\Component\Uid\NilUuid;
16-
use Symfony\Component\Uid\Tests\Fixture\CustomUuid;
16+
use Symfony\Component\Uid\Tests\Fixtures\CustomUuid;
1717
use Symfony\Component\Uid\Ulid;
1818
use Symfony\Component\Uid\Uuid;
1919
use Symfony\Component\Uid\UuidV1;

src/Symfony/Component/Uid/Uuid.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public static function fromString(string $uuid): parent
7474
case NilUuid::TYPE: return new NilUuid();
7575
}
7676

77-
return new static($uuid);
77+
return new self($uuid);
7878
}
7979

8080
final public static function v1(): UuidV1

0 commit comments

Comments
 (0)