Issues (108)

src/AbstractUri.php (1 issue)

1
<?php
2
3
declare(strict_types=1);
4
5
namespace BEAR\Resource;
6
7
use Override;
8
use Stringable;
9
10
use function http_build_query;
11
12
/** @psalm-import-type Query from Types */
13
abstract class AbstractUri implements Stringable
14
{
15
    /** @var string */
16
    public $scheme;
17
18
    /** @var string */
19
    public $host;
20
21
    /** @var string */
22
    public $path;
23
24
    /**
25
     * Associative query array
26
     *
27
     * @var Query
0 ignored issues
show
The type BEAR\Resource\Query was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
28
     */
29
    public $query = [];
30
31
    /** @var string */
32
    public $method = 'get';
33
34
    /** @return string */
35
    #[Override]
36
    public function __toString()
37
    {
38
        return "{$this->scheme}://{$this->host}{$this->path}" . ($this->query ? '?' . http_build_query($this->query) : '');
39
    }
40
}
41