Issues (43)

src/UriFactory/GuzzleUriFactory.php (1 issue)

Labels
Severity
1
<?php
2
3
namespace Http\Message\UriFactory;
4
5
use GuzzleHttp\Psr7;
6
use Http\Message\UriFactory;
7
8
/**
9
 * Creates Guzzle URI.
10
 *
11
 * @author David de Boer <[email protected]>
12
 *
13
 * @deprecated This will be removed in php-http/message2.0. Consider using the official Guzzle PSR-17 factory
14
 */
15
final class GuzzleUriFactory implements UriFactory
16
{
17
    /**
18 3
     * {@inheritdoc}
19
     */
20 3
    public function createUri($uri)
21
    {
22
        return Psr7\uri_for($uri);
0 ignored issues
show
The function uri_for was not found. Maybe you did not declare it correctly or list all dependencies? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

22
        return /** @scrutinizer ignore-call */ Psr7\uri_for($uri);
Loading history...
23
    }
24
}
25