File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 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" : {
Original file line number Diff line number Diff line change 1616
1717class 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 ();
You can’t perform that action at this time.
0 commit comments