Skip to content

Commit 58e9a8e

Browse files
committed
Add nyholm package to spiral bridge tests
1 parent 2a66449 commit 58e9a8e

5 files changed

Lines changed: 7 additions & 4 deletions

File tree

composer.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@
3232
"Boson\\Component\\Uri\\Factory\\Tests\\": "tests"
3333
}
3434
},
35+
"provide": {
36+
"boson-php/uri-factory-contracts-implementation": "^0.15"
37+
},
3538
"extra": {
3639
"branch-alias": {
3740
"dev-master": "0.15.x-dev",

src/Component/UriPathFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*/
1717
private const string SEGMENT_DELIMITER = Path::PATH_SEGMENT_DELIMITER;
1818

19-
public function createPathFromString(string|\Stringable $path): PathInterface
19+
public function createPathFromString(\Stringable|string $path): PathInterface
2020
{
2121
if ($path instanceof PathInterface) {
2222
return clone $path;

src/Component/UriQueryFactory.php

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

1212
final readonly class UriQueryFactory implements UriQueryFactoryInterface
1313
{
14-
public function createQueryFromString(string|\Stringable $query): QueryInterface
14+
public function createQueryFromString(\Stringable|string $query): QueryInterface
1515
{
1616
if ($query instanceof QueryInterface) {
1717
return clone $query;

src/Component/UriSchemeFactory.php

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

1212
final readonly class UriSchemeFactory implements UriSchemeFactoryInterface
1313
{
14-
public function createSchemeFromString(string|\Stringable $scheme): SchemeInterface
14+
public function createSchemeFromString(\Stringable|string $scheme): SchemeInterface
1515
{
1616
if ($scheme instanceof SchemeInterface) {
1717
return $scheme;

src/UriFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public function __construct(
5555
private UriQueryFactoryInterface $queries = new UriQueryFactory(),
5656
) {}
5757

58-
public function createUriFromString(string|\Stringable $uri): UriInterface
58+
public function createUriFromString(\Stringable|string $uri): UriInterface
5959
{
6060
if ($uri instanceof UriInterface) {
6161
return clone $uri;

0 commit comments

Comments
 (0)