Update system/Entity/Cast/URICast.php

Co-authored-by: Abdul Malik Ikhsan <samsonasik@gmail.com>
This commit is contained in:
MGatner 2021-05-16 09:13:36 -04:00 committed by GitHub
parent 038a1578bb
commit d91ae4f069
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,7 +21,7 @@ class URICast extends BaseCast
/**
* @inheritDoc
*/
public static function get($value, array $params = []): object
public static function get($value, array $params = []): URI
{
return $value instanceof URI ? $value : new URI($value);
}