Skip to content

Commit 526e047

Browse files
committed
Changed class elements order
1 parent e9d1cd1 commit 526e047

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"psr/http-server-middleware": "^1.0"
2020
},
2121
"require-dev": {
22-
"polymorphine/dev": "0.5.*"
22+
"polymorphine/dev": "0.6.*"
2323
},
2424
"autoload": {
2525
"psr-4": {

tests/Doubles/FakeUri.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@
1616

1717
class FakeUri implements UriInterface
1818
{
19+
public static function fromString($uri = ''): self
20+
{
21+
return new self(parse_url($uri));
22+
}
23+
1924
protected array $supportedSchemes = [
2025
'http' => ['port' => 80],
2126
'https' => ['port' => 443]
@@ -43,11 +48,6 @@ public function __construct(array $segments = [])
4348
isset($segments['fragment']) and $this->fragment = $segments['fragment'];
4449
}
4550

46-
public static function fromString($uri = ''): self
47-
{
48-
return new self(parse_url($uri));
49-
}
50-
5151
public function __toString(): string
5252
{
5353
isset($this->uri) or $this->uri = $this->buildUriString();

0 commit comments

Comments
 (0)