Merge pull request #781 from mimmi20/dependabot/composer/master/minor… #2510
continuous-integration.yml
on: push
Matrix: Validate Project / Check composer dependencies with composer-dependency-analyser
Matrix: Validate Project / Check composer dependencies with composer-unused
Matrix: Validate Project / Check with editorconfig-checker
Matrix: Validate Project / Lint PHP
Matrix: Validate Project / Validate markdown files
Matrix: Validate Project / Linting with overtrue/phplint
Matrix: Validate Project / Validate composer
Matrix: Validate Project / Validate yaml
Matrix: Install Project / Install dependencies
Matrix: Project Analysis / Check Coding Standards with PHP-CS-Fixer
Matrix: Project Analysis / Check Coding Standards with PHPCS
Matrix: Project Analysis / Check Rules with PHPMD
Matrix: Project Analysis / Checks with Rector
Matrix: Project Analysis / Static Code Analysis with PHPStan
Matrix: Code Coverage with PHPUnit
Matrix: UnitTests & Code Coverage
Matrix: Integration Tests with PHPUnit
finish-code-coverage
8s
Unit & Integration Tests Status
0s
Annotations
10 warnings
Code Coverage with PHPUnit (ubuntu-22.04, 8.1, lowest):
src/Detector.php#L81
Escaped Mutant for Mutator "ArrayOneItem":
--- Original
+++ New
@@ @@
if ($this->cache->hasItem($cacheId)) {
$item = $this->cache->getItem($cacheId);
assert(is_array($item));
- return $item;
+ return (count($item) > 1) ? array_slice($item, 0, 1, true) : $item;
}
$item = $this->parse($request);
$this->cache->setItem($cacheId, $item);
|
Code Coverage with PHPUnit (ubuntu-22.04, 8.1, lowest):
src/Detector.php#L122
Escaped Mutant for Mutator "CastInt":
--- Original
+++ New
@@ @@
$versionBuilder = ($this->versionBuilderFactory)($this->logger);
try {
$version = $versionBuilder->set((string) $platformVersion);
- $iosVersion = (int) $version->getVersion(VersionInterface::IGNORE_MINOR);
+ $iosVersion = $version->getVersion(VersionInterface::IGNORE_MINOR);
if ($deviceMarketingName !== null && str_starts_with(mb_strtolower($deviceMarketingName), 'ipad') && $iosVersion >= 13) {
$platformName = 'iPadOS';
$platformMarketingName = 'iPadOS';
|
Code Coverage with PHPUnit (ubuntu-22.04, 8.1, lowest):
src/Detector.php#L319
Escaped Mutant for Mutator "Catch_":
--- Original
+++ New
@@ @@
}
try {
$engineVersion = $this->getEngineVersion($filteredHeaders, $engineCodename);
- } catch (NotNumericException|UnexpectedValueException $e) {
+ } catch (UnexpectedValueException $e) {
$this->logger->info($e);
}
if ($engineCodename !== null) {
|
Code Coverage with PHPUnit (ubuntu-22.04, 8.1, lowest):
src/Detector.php#L330
Escaped Mutant for Mutator "Coalesce":
--- Original
+++ New
@@ @@
if ($engineCodename !== null) {
try {
$engine = $this->engineLoader->load(key: $engineCodename, useragent: ($engineHeader instanceof HeaderInterface) ? $engineHeader->getValue() : '');
- return [$engine['name'], $engineVersion ?? $engine['version'], $engine['manufacturer']];
+ return [$engine['name'], $engine['version'] ?? $engineVersion, $engine['manufacturer']];
} catch (UnexpectedValueException $e) {
$this->logger->info($e);
}
|
Code Coverage with PHPUnit (ubuntu-22.04, 8.1, lowest):
src/Detector.php#L388
Escaped Mutant for Mutator "Catch_":
--- Original
+++ New
@@ @@
}
try {
$clientVersion = $this->getClientVersion($filteredHeaders, $clientCodename);
- } catch (NotNumericException|UnexpectedValueException $e) {
+ } catch (UnexpectedValueException $e) {
$this->logger->info($e);
}
if ($clientCodename !== null) {
|
Code Coverage with PHPUnit (ubuntu-22.04, 8.1, lowest):
src/Detector.php#L396
Escaped Mutant for Mutator "InstanceOf_":
--- Original
+++ New
@@ @@
}
if ($clientCodename !== null) {
try {
- [$client, $engineCodenameFromClient] = $this->browserLoader->load(key: $clientCodename, useragent: ($clientHeader instanceof HeaderInterface) ? $clientHeader->getValue() : '');
+ [$client, $engineCodenameFromClient] = $this->browserLoader->load(key: $clientCodename, useragent: true ? $clientHeader->getValue() : '');
return [$client['name'], $clientVersion ?? $client['version'], $client['manufacturer'], $client['type'], $client['isbot'], $engineCodenameFromClient];
} catch (UnexpectedValueException $e) {
$this->logger->info($e);
|
Code Coverage with PHPUnit (ubuntu-22.04, 8.1, lowest):
src/Detector.php#L401
Escaped Mutant for Mutator "Coalesce":
--- Original
+++ New
@@ @@
if ($clientCodename !== null) {
try {
[$client, $engineCodenameFromClient] = $this->browserLoader->load(key: $clientCodename, useragent: ($clientHeader instanceof HeaderInterface) ? $clientHeader->getValue() : '');
- return [$client['name'], $clientVersion ?? $client['version'], $client['manufacturer'], $client['type'], $client['isbot'], $engineCodenameFromClient];
+ return [$client['name'], $client['version'] ?? $clientVersion, $client['manufacturer'], $client['type'], $client['isbot'], $engineCodenameFromClient];
} catch (UnexpectedValueException $e) {
$this->logger->info($e);
}
|
Code Coverage with PHPUnit (ubuntu-22.04, 8.1, lowest):
src/Detector.php#L470
Escaped Mutant for Mutator "Catch_":
--- Original
+++ New
@@ @@
}
try {
$platformVersion = $this->getPlatformVersion($filteredHeaders, $platformCodename);
- } catch (NotNumericException|UnexpectedValueException $e) {
+ } catch (UnexpectedValueException $e) {
$this->logger->info($e);
}
if ($platformCodename !== null) {
|
Code Coverage with PHPUnit (ubuntu-22.04, 8.1, lowest):
src/Detector.php#L485
Escaped Mutant for Mutator "Coalesce":
--- Original
+++ New
@@ @@
if ($platformCodename !== null) {
try {
$platform = $this->platformLoader->load(key: $platformCodename, useragent: ($platformHeader instanceof HeaderInterface) ? $platformHeader->getValue() : '');
- return [$platform['name'], $platform['marketingName'], $platform['manufacturer'], $platformVersion ?? $platform['version']];
+ return [$platform['name'], $platform['marketingName'], $platform['manufacturer'], $platform['version'] ?? $platformVersion];
} catch (UnexpectedValueException $e) {
$this->logger->info($e);
}
|
Code Coverage with PHPUnit (ubuntu-22.04, 8.1, lowest):
src/Detector.php#L519
Escaped Mutant for Mutator "IncrementInteger":
--- Original
+++ New
@@ @@
$deviceCodename = $deviceHeader->getDeviceCode();
}
if ($deviceCodename !== null) {
- [$company, $key] = explode('=', $deviceCodename, 2);
+ [$company, $key] = explode('=', $deviceCodename, 3);
try {
$deviceLoader = ($this->deviceLoaderFactory)($company);
[$device, $platformCodenameFromDevice] = $deviceLoader->load($key);
|