Skip to content

build(deps-dev): bump phpstan/phpstan from 1.10.44 to 1.10.47 #416

build(deps-dev): bump phpstan/phpstan from 1.10.44 to 1.10.47

build(deps-dev): bump phpstan/phpstan from 1.10.44 to 1.10.47 #416

Triggered via push December 4, 2023 08:02
Status Failure
Total duration 1m 9s
Artifacts

main.yml

on: push
Matrix: unit-tests
Fit to window
Zoom out
Zoom in

Annotations

1 error and 10 warnings
test-github on PHP8.2 with prefer-stable on ubuntu-latest
Process completed with exit code 255.
test-github on PHP8.1 with prefer-stable on ubuntu-latest: src/Api/Api.php#L127
Escaped Mutant for Mutator "PublicVisibility": --- Original +++ New @@ @@ } return $result; } - public static function getUrlFromConfig() : string + protected static function getUrlFromConfig() : string { $url = config('Hostfact.api_v2_url'); if (!is_string($url)) {
test-github on PHP8.1 with prefer-stable on ubuntu-latest: src/Exceptions/InvalidArgumentException.php#L11
Escaped Mutant for Mutator "Concat": --- Original +++ New @@ @@ { public static function invalidUrl(string $value) : InvalidArgumentException { - return new self('Provided URL is not valid [' . $value . ']'); + return new self($value . 'Provided URL is not valid [' . ']'); } public static function apiFailed(GuzzleException $exception) : InvalidArgumentException {
test-github on PHP8.1 with prefer-stable on ubuntu-latest: src/Exceptions/InvalidArgumentException.php#L11
Escaped Mutant for Mutator "ConcatOperandRemoval": --- Original +++ New @@ @@ { public static function invalidUrl(string $value) : InvalidArgumentException { - return new self('Provided URL is not valid [' . $value . ']'); + return new self($value . ']'); } public static function apiFailed(GuzzleException $exception) : InvalidArgumentException {
test-github on PHP8.1 with prefer-stable on ubuntu-latest: src/Exceptions/InvalidArgumentException.php#L11
Escaped Mutant for Mutator "ConcatOperandRemoval": --- Original +++ New @@ @@ { public static function invalidUrl(string $value) : InvalidArgumentException { - return new self('Provided URL is not valid [' . $value . ']'); + return new self('Provided URL is not valid [' . ']'); } public static function apiFailed(GuzzleException $exception) : InvalidArgumentException {
test-github on PHP8.1 with prefer-stable on ubuntu-latest: src/Exceptions/InvalidArgumentException.php#L11
Escaped Mutant for Mutator "Concat": --- Original +++ New @@ @@ { public static function invalidUrl(string $value) : InvalidArgumentException { - return new self('Provided URL is not valid [' . $value . ']'); + return new self('Provided URL is not valid [' . ']' . $value); } public static function apiFailed(GuzzleException $exception) : InvalidArgumentException {
test-github on PHP8.1 with prefer-stable on ubuntu-latest: src/Exceptions/InvalidArgumentException.php#L11
Escaped Mutant for Mutator "ConcatOperandRemoval": --- Original +++ New @@ @@ { public static function invalidUrl(string $value) : InvalidArgumentException { - return new self('Provided URL is not valid [' . $value . ']'); + return new self('Provided URL is not valid [' . $value); } public static function apiFailed(GuzzleException $exception) : InvalidArgumentException {
test-github on PHP8.1 with prefer-stable on ubuntu-latest: src/Http/HttpClient.php#L16
Escaped Mutant for Mutator "ProtectedVisibility": --- Original +++ New @@ @@ private string $userAgent = 'hyperized/hostfact (https://github.com/hyperized/hostfact)'; private HandlerStack $stack; private GuzzleClient $httpClient; - protected function __construct(ByteArrayInterface $url) + private function __construct(ByteArrayInterface $url) { $this->stack = HandlerStack::create(); $this->httpClient = new GuzzleClient(['handler' => $this->stack, 'base_uri' => $url->getValue(), 'timeout' => config('Hostfact.api_v2_timeout'), 'headers' => ['User-Agent' => $this->userAgent]]);
test-github on PHP8.1 with prefer-stable on ubuntu-latest: src/Http/HttpClient.php#L20
Escaped Mutant for Mutator "ArrayItemRemoval": --- Original +++ New @@ @@ protected function __construct(ByteArrayInterface $url) { $this->stack = HandlerStack::create(); - $this->httpClient = new GuzzleClient(['handler' => $this->stack, 'base_uri' => $url->getValue(), 'timeout' => config('Hostfact.api_v2_timeout'), 'headers' => ['User-Agent' => $this->userAgent]]); + $this->httpClient = new GuzzleClient(['base_uri' => $url->getValue(), 'timeout' => config('Hostfact.api_v2_timeout'), 'headers' => ['User-Agent' => $this->userAgent]]); } public static function new(ByteArrayInterface $url) : HttpClientInterface {
test-github on PHP8.1 with prefer-stable on ubuntu-latest: src/Http/HttpClient.php#L21
Escaped Mutant for Mutator "ArrayItem": --- Original +++ New @@ @@ protected function __construct(ByteArrayInterface $url) { $this->stack = HandlerStack::create(); - $this->httpClient = new GuzzleClient(['handler' => $this->stack, 'base_uri' => $url->getValue(), 'timeout' => config('Hostfact.api_v2_timeout'), 'headers' => ['User-Agent' => $this->userAgent]]); + $this->httpClient = new GuzzleClient(['handler' > $this->stack, 'base_uri' => $url->getValue(), 'timeout' => config('Hostfact.api_v2_timeout'), 'headers' => ['User-Agent' => $this->userAgent]]); } public static function new(ByteArrayInterface $url) : HttpClientInterface {
test-github on PHP8.1 with prefer-stable on ubuntu-latest: src/Http/HttpClient.php#L22
Escaped Mutant for Mutator "ArrayItem": --- Original +++ New @@ @@ protected function __construct(ByteArrayInterface $url) { $this->stack = HandlerStack::create(); - $this->httpClient = new GuzzleClient(['handler' => $this->stack, 'base_uri' => $url->getValue(), 'timeout' => config('Hostfact.api_v2_timeout'), 'headers' => ['User-Agent' => $this->userAgent]]); + $this->httpClient = new GuzzleClient(['handler' => $this->stack, 'base_uri' > $url->getValue(), 'timeout' => config('Hostfact.api_v2_timeout'), 'headers' => ['User-Agent' => $this->userAgent]]); } public static function new(ByteArrayInterface $url) : HttpClientInterface {