for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Nyholm\Psr7\Factory;
use Nyholm\Psr7\Uri;
use Psr\Http\Message\UriInterface;
/**
* @author Tobias Nyholm <[email protected]>
*/
final class UriFactory implements \Http\Message\UriFactory
{
public function createUri($uri = ''): UriInterface
if ($uri instanceof UriInterface) {
return $uri;
}
return new Uri($uri);