mirror of
https://github.com/itflow-org/itflow
synced 2026-06-20 00:31:05 +00:00
Allow PHP-8.2 and up Compatibility instead of just PHP-8.4
This commit is contained in:
12
plugins/vendor/illuminate/support/Uri.php
vendored
12
plugins/vendor/illuminate/support/Uri.php
vendored
@@ -115,6 +115,14 @@ class Uri implements Htmlable, JsonSerializable, Responsable, Stringable
|
||||
return new static(call_user_func(static::$urlGeneratorResolver)->action($action, $parameters, $absolute));
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the URI's authority.
|
||||
*/
|
||||
public function authority(): ?string
|
||||
{
|
||||
return $this->uri->getAuthority();
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the URI's scheme.
|
||||
*/
|
||||
@@ -161,8 +169,10 @@ class Uri implements Htmlable, JsonSerializable, Responsable, Stringable
|
||||
* Get the URI's path.
|
||||
*
|
||||
* Empty or missing paths are returned as a single "/".
|
||||
*
|
||||
* @return non-empty-string
|
||||
*/
|
||||
public function path(): ?string
|
||||
public function path(): string
|
||||
{
|
||||
$path = trim((string) $this->uri->getPath(), '/');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user