mirror of
https://github.com/php-curl-class/php-curl-class.git
synced 2026-09-13 20:06:43 +00:00
Fix static analysis error
Error message:
ERROR: MethodSignatureMustProvideReturnType -
../src/Curl/Url.php:18:21 - Method Curl\Url::__toString must have a
return type signature! (see https://psalm.dev/282) public function
__toString()
This commit is contained in:
+1
-1
@@ -15,7 +15,7 @@ class Url
|
||||
$this->relativeUrl = $relative_url;
|
||||
}
|
||||
|
||||
public function __toString()
|
||||
public function __toString() : string
|
||||
{
|
||||
return $this->absolutizeUrl();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user