Add support for endroid/qr-code 5 #194
Annotations
10 warnings
Run composer infect:ci:
src/Cache/CacheFactory.php#L28
Escaped Mutant for Mutator "CastBool":
--- Original
+++ New
@@ @@
{
$apcuEnabled = ($this->apcuEnabled)();
$config = $container->get('config');
- $isDebug = (bool) ($config['debug'] ?? false);
+ $isDebug = $config['debug'] ?? false;
$redisConfig = $config['cache']['redis'] ?? null;
$lifetime = (int) ($config['cache']['default_lifetime'] ?? 0);
if ($isDebug || !$apcuEnabled && $redisConfig === null) {
|
Run composer infect:ci:
src/Cache/CacheFactory.php#L30
Escaped Mutant for Mutator "DecrementInteger":
--- Original
+++ New
@@ @@
$config = $container->get('config');
$isDebug = (bool) ($config['debug'] ?? false);
$redisConfig = $config['cache']['redis'] ?? null;
- $lifetime = (int) ($config['cache']['default_lifetime'] ?? 0);
+ $lifetime = (int) ($config['cache']['default_lifetime'] ?? -1);
if ($isDebug || !$apcuEnabled && $redisConfig === null) {
return new Adapter\ArrayAdapter($lifetime);
}
|
Run composer infect:ci:
src/Cache/CacheFactory.php#L30
Escaped Mutant for Mutator "IncrementInteger":
--- Original
+++ New
@@ @@
$config = $container->get('config');
$isDebug = (bool) ($config['debug'] ?? false);
$redisConfig = $config['cache']['redis'] ?? null;
- $lifetime = (int) ($config['cache']['default_lifetime'] ?? 0);
+ $lifetime = (int) ($config['cache']['default_lifetime'] ?? 1);
if ($isDebug || !$apcuEnabled && $redisConfig === null) {
return new Adapter\ArrayAdapter($lifetime);
}
|
Run composer infect:ci:
src/Cache/CacheFactory.php#L30
Escaped Mutant for Mutator "Coalesce":
--- Original
+++ New
@@ @@
$config = $container->get('config');
$isDebug = (bool) ($config['debug'] ?? false);
$redisConfig = $config['cache']['redis'] ?? null;
- $lifetime = (int) ($config['cache']['default_lifetime'] ?? 0);
+ $lifetime = (int) (0 ?? $config['cache']['default_lifetime']);
if ($isDebug || !$apcuEnabled && $redisConfig === null) {
return new Adapter\ArrayAdapter($lifetime);
}
|
Run composer infect:ci:
src/Cache/CacheFactory.php#L30
Escaped Mutant for Mutator "CastInt":
--- Original
+++ New
@@ @@
$config = $container->get('config');
$isDebug = (bool) ($config['debug'] ?? false);
$redisConfig = $config['cache']['redis'] ?? null;
- $lifetime = (int) ($config['cache']['default_lifetime'] ?? 0);
+ $lifetime = $config['cache']['default_lifetime'] ?? 0;
if ($isDebug || !$apcuEnabled && $redisConfig === null) {
return new Adapter\ArrayAdapter($lifetime);
}
|
Run composer infect:ci:
src/Cache/CacheFactory.php#L36
Escaped Mutant for Mutator "Coalesce":
--- Original
+++ New
@@ @@
if ($isDebug || !$apcuEnabled && $redisConfig === null) {
return new Adapter\ArrayAdapter($lifetime);
}
- $namespace = $config['cache']['namespace'] ?? '';
+ $namespace = '' ?? $config['cache']['namespace'];
if ($redisConfig === null) {
return new Adapter\ApcuAdapter($namespace, $lifetime);
}
|
Run composer infect:ci:
src/Cache/RedisFactory.php#L89
Escaped Mutant for Mutator "IncrementInteger":
--- Original
+++ New
@@ @@
if ($sentinelService !== null) {
return ['replication' => 'sentinel', 'service' => $sentinelService];
}
- return !isset($servers[0]) ? null : ['cluster' => 'redis'];
+ return !isset($servers[1]) ? null : ['cluster' => 'redis'];
}
}
|
Run composer infect:ci:
src/Doctrine/EntityManagerFactory.php#L25
Escaped Mutant for Mutator "FalseValue":
--- Original
+++ New
@@ @@
$emConfig = $globalConfig['entity_manager'] ?? [];
$connectionConfig = $emConfig['connection'] ?? [];
$ormConfig = $emConfig['orm'] ?? [];
- $funcStyle = $ormConfig['load_mappings_using_functional_style'] ?? false;
+ $funcStyle = $ormConfig['load_mappings_using_functional_style'] ?? true;
$defaultRepo = $ormConfig['default_repository_classname'] ?? null;
$this->registerTypes($ormConfig);
$config = $this->createConfiguration($isDevMode, $ormConfig['proxies_dir'] ?? '', $cache);
|
Run composer infect:ci:
src/Doctrine/EntityManagerFactory.php#L25
Escaped Mutant for Mutator "Coalesce":
--- Original
+++ New
@@ @@
$emConfig = $globalConfig['entity_manager'] ?? [];
$connectionConfig = $emConfig['connection'] ?? [];
$ormConfig = $emConfig['orm'] ?? [];
- $funcStyle = $ormConfig['load_mappings_using_functional_style'] ?? false;
+ $funcStyle = false ?? $ormConfig['load_mappings_using_functional_style'];
$defaultRepo = $ormConfig['default_repository_classname'] ?? null;
$this->registerTypes($ormConfig);
$config = $this->createConfiguration($isDevMode, $ormConfig['proxies_dir'] ?? '', $cache);
|
Run composer infect:ci:
src/Doctrine/EntityManagerFactory.php#L61
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
private function createConfiguration(bool $isDev, string $proxyDir, CacheItemPoolInterface $cache) : Configuration
{
$config = new Configuration();
- $config->setMetadataCache($cache);
+
$config->setQueryCache($cache);
$config->setResultCache($cache);
$config->setProxyDir($proxyDir);
|
The logs for this run have expired and are no longer available.
Loading