build(deps-dev): bump orchestra/testbench from 8.22.3 to 8.23.0 #544
Annotations
10 warnings
Composer test-github-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)) {
|
Composer test-github-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
{
|
Composer test-github-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
{
|
Composer test-github-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
{
|
Composer test-github-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
{
|
Composer test-github-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
{
|
Composer test-github-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]]);
|
Composer test-github-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
{
|
Composer test-github-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
{
|
Composer test-github-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
{
|
Loading