Skip to content
This repository was archived by the owner on Sep 22, 2025. It is now read-only.

Commit a5e47b6

Browse files
authored
Move Internal class into a distinct namespace (#6)
1 parent 7ff3f26 commit a5e47b6

File tree

7 files changed

+10
-2
lines changed

7 files changed

+10
-2
lines changed

.php-cs-fixer.php

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

1414
$finder = PhpCsFixer\Finder::create()
1515
->in(__DIR__ . '/src')
16+
->in(__DIR__ . '/lib')
1617
;
1718

1819
$config = new PhpCsFixer\Config();

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
],
1414
"autoload": {
1515
"psr-4": {
16-
"Uri\\": "src"
16+
"Uri\\": "src",
17+
"Bakame\\Aide\\Uri\\": "lib"
1718
}
1819
},
1920
"autoload-dev": {

src/WhatWg/UrlValidationErrorCollector.php renamed to lib/Helper/UrlValidationErrorCollector.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,14 @@
1111

1212
declare(strict_types=1);
1313

14-
namespace Uri\WhatWg;
14+
namespace Bakame\Aide\Uri\Helper;
1515

1616
use OutOfBoundsException;
1717
use Psr\Log\AbstractLogger;
1818
use Psr\Log\LogLevel;
1919
use Stringable;
20+
use Uri\WhatWg\UrlValidationError;
21+
use Uri\WhatWg\UrlValidationErrorType;
2022

2123
use function array_filter;
2224
use function array_values;

phpstan.neon

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ parameters:
99
level: max
1010
paths:
1111
- src
12+
- lib
1213
reportUnmatchedIgnoredErrors: true
1314
treatPhpDocTypesAsCertain: false
1415
parallel:

phpunit.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
<source>
2929
<include>
3030
<directory suffix=".php">src</directory>
31+
<directory suffix=".php">lib</directory>
3132
</include>
3233
</source>
3334
</phpunit>

src/WhatWg/Url.php

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

1414
namespace Uri\WhatWg;
1515

16+
use Bakame\Aide\Uri\Helper\UrlValidationErrorCollector;
1617
use Exception;
1718
use League\Uri\Idna\Converter;
1819
use League\Uri\UriString;

tests/WhatWg/UrlTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
namespace Uri\WhatWg;
66

7+
use Bakame\Aide\Uri\Helper\UrlValidationErrorCollector;
78
use PHPUnit\Framework\Attributes\CoversClass;
89
use PHPUnit\Framework\Attributes\Test;
910
use PHPUnit\Framework\TestCase;

0 commit comments

Comments
 (0)