build(deps-dev): bump phpstan/phpstan from 1.10.33 to 1.10.34 #356
Annotations
20 warnings
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
{
|
test-github on PHP8.2 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.2 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.2 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.2 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.2 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.2 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.2 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.2 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.2 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.2 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
{
|