Update all non-major dependencies #1389
continuous-integration.yml
on: pull_request
Generate job matrix
7s
Matrix: QA Checks
Annotations
9 errors and 10 warnings
UnusedPsalmSuppress:
src/OcraCachedViewResolver/Compiler/TemplateMapCompiler.php#L101
src/OcraCachedViewResolver/Compiler/TemplateMapCompiler.php:101:24: UnusedPsalmSuppress: This suppression is never used (see https://psalm.dev/207)
|
MixedAssignment:
tests/OcraCachedViewResolverTest/Factory/CompiledMapResolverDelegatorFactoryTest.php#L79
tests/OcraCachedViewResolverTest/Factory/CompiledMapResolverDelegatorFactoryTest.php:79:9: MixedAssignment: Unable to determine the type that $resolvers is being assigned to (see https://psalm.dev/032)
|
UndefinedInterfaceMethod:
tests/OcraCachedViewResolverTest/Factory/CompiledMapResolverDelegatorFactoryTest.php#L79
tests/OcraCachedViewResolverTest/Factory/CompiledMapResolverDelegatorFactoryTest.php:79:48: UndefinedInterfaceMethod: Method Traversable::toArray does not exist (see https://psalm.dev/181)
|
MixedArrayAccess:
tests/OcraCachedViewResolverTest/Factory/CompiledMapResolverDelegatorFactoryTest.php#L81
tests/OcraCachedViewResolverTest/Factory/CompiledMapResolverDelegatorFactoryTest.php:81:53: MixedArrayAccess: Cannot access array value on mixed variable $resolvers (see https://psalm.dev/051)
|
MixedArrayAccess:
tests/OcraCachedViewResolverTest/Factory/CompiledMapResolverDelegatorFactoryTest.php#L82
tests/OcraCachedViewResolverTest/Factory/CompiledMapResolverDelegatorFactoryTest.php:82:59: MixedArrayAccess: Cannot access array value on mixed variable $resolvers (see https://psalm.dev/051)
|
MixedAssignment:
tests/OcraCachedViewResolverTest/Factory/CompiledMapResolverDelegatorFactoryTest.php#L102
tests/OcraCachedViewResolverTest/Factory/CompiledMapResolverDelegatorFactoryTest.php:102:9: MixedAssignment: Unable to determine the type that $resolvers is being assigned to (see https://psalm.dev/032)
|
UndefinedInterfaceMethod:
tests/OcraCachedViewResolverTest/Factory/CompiledMapResolverDelegatorFactoryTest.php#L102
tests/OcraCachedViewResolverTest/Factory/CompiledMapResolverDelegatorFactoryTest.php:102:48: UndefinedInterfaceMethod: Method Traversable::toArray does not exist (see https://psalm.dev/181)
|
MixedArrayAccess:
tests/OcraCachedViewResolverTest/Factory/CompiledMapResolverDelegatorFactoryTest.php#L104
tests/OcraCachedViewResolverTest/Factory/CompiledMapResolverDelegatorFactoryTest.php:104:53: MixedArrayAccess: Cannot access array value on mixed variable $resolvers (see https://psalm.dev/051)
|
MixedArrayAccess:
tests/OcraCachedViewResolverTest/Factory/CompiledMapResolverDelegatorFactoryTest.php#L105
tests/OcraCachedViewResolverTest/Factory/CompiledMapResolverDelegatorFactoryTest.php:105:59: MixedArrayAccess: Cannot access array value on mixed variable $resolvers (see https://psalm.dev/051)
|
QA Checks (Infection [8.1, locked], ubuntu-latest, laminas/laminas-continuous-integration-action@...:
src/OcraCachedViewResolver/Compiler/TemplateMapCompiler.php#L60
Escaped Mutant for Mutator "ProtectedVisibility":
--- Original
+++ New
@@ @@
return [];
}
/** @psalm-return array<string, string> */
- protected function compileFromAggregateResolver(AggregateResolver $resolver) : array
+ private function compileFromAggregateResolver(AggregateResolver $resolver) : array
{
$map = [];
foreach ($resolver->getIterator() as $queuedResolver) {
|
QA Checks (Infection [8.1, locked], ubuntu-latest, laminas/laminas-continuous-integration-action@...:
src/OcraCachedViewResolver/Compiler/TemplateMapCompiler.php#L78
Escaped Mutant for Mutator "ProtectedVisibility":
--- Original
+++ New
@@ @@
*
* @throws DomainException
*/
- protected function compileFromTemplatePathStack(TemplatePathStack $resolver) : array
+ private function compileFromTemplatePathStack(TemplatePathStack $resolver) : array
{
$map = [];
foreach ($resolver->getPaths()->toArray() as $path) {
|
QA Checks (Infection [8.1, locked], ubuntu-latest, laminas/laminas-continuous-integration-action@...:
src/OcraCachedViewResolver/Compiler/TemplateMapCompiler.php#L103
Escaped Mutant for Mutator "ProtectedVisibility":
--- Original
+++ New
@@ @@
*
* @psalm-suppress MixedReturnTypeCoercion the {@see TemplateMapResolver} does not have refined type declarations
*/
- protected function compileFromTemplateMapResolver(TemplateMapResolver $resolver) : array
+ private function compileFromTemplateMapResolver(TemplateMapResolver $resolver) : array
{
return $resolver->getMap();
}
|
QA Checks (Infection [8.1, locked], ubuntu-latest, laminas/laminas-continuous-integration-action@...:
src/OcraCachedViewResolver/Compiler/TemplateMapCompiler.php#L122
Escaped Mutant for Mutator "ArrayOneItem":
--- Original
+++ New
@@ @@
{
$fileName = pathinfo($file->getRealPath(), PATHINFO_FILENAME);
if (!$fileName) {
- return $map;
+ return count($map) > 1 ? array_slice($map, 0, 1, true) : $map;
}
$relativePath = trim(str_replace($basePath, '', $file->getPath()), '/\\');
$templateName = str_replace('\\', '/', trim($relativePath . '/' . $fileName, '/'));
|
QA Checks (Infection [8.1, locked], ubuntu-latest, laminas/laminas-continuous-integration-action@...:
src/OcraCachedViewResolver/Compiler/TemplateMapCompiler.php#L125
Escaped Mutant for Mutator "UnwrapTrim":
--- Original
+++ New
@@ @@
if (!$fileName) {
return $map;
}
- $relativePath = trim(str_replace($basePath, '', $file->getPath()), '/\\');
+ $relativePath = str_replace($basePath, '', $file->getPath());
$templateName = str_replace('\\', '/', trim($relativePath . '/' . $fileName, '/'));
$resolvedPath = $resolver->resolve($templateName);
if (!$resolvedPath) {
|
QA Checks (Infection [8.1, locked], ubuntu-latest, laminas/laminas-continuous-integration-action@...:
src/OcraCachedViewResolver/Compiler/TemplateMapCompiler.php#L126
Escaped Mutant for Mutator "UnwrapStrReplace":
--- Original
+++ New
@@ @@
return $map;
}
$relativePath = trim(str_replace($basePath, '', $file->getPath()), '/\\');
- $templateName = str_replace('\\', '/', trim($relativePath . '/' . $fileName, '/'));
+ $templateName = trim($relativePath . '/' . $fileName, '/');
$resolvedPath = $resolver->resolve($templateName);
if (!$resolvedPath) {
return $map;
|
QA Checks (Infection [8.1, locked], ubuntu-latest, laminas/laminas-continuous-integration-action@...:
src/OcraCachedViewResolver/Compiler/TemplateMapCompiler.php#L130
Escaped Mutant for Mutator "ArrayOneItem":
--- Original
+++ New
@@ @@
$templateName = str_replace('\\', '/', trim($relativePath . '/' . $fileName, '/'));
$resolvedPath = $resolver->resolve($templateName);
if (!$resolvedPath) {
- return $map;
+ return count($map) > 1 ? array_slice($map, 0, 1, true) : $map;
}
$map[$templateName] = realpath($resolvedPath);
return $map;
}
}
|
QA Checks (Infection [8.1, locked], ubuntu-latest, laminas/laminas-continuous-integration-action@...:
src/OcraCachedViewResolver/Module.php#L46
Escaped Mutant for Mutator "ArrayItemRemoval":
--- Original
+++ New
@@ @@
/** @return OcraCachedViewResolverConfiguration */
public function getConfig() : array
{
- return [self::CONFIG => [self::CONFIG_CACHE_KEY => 'cached_template_map', self::CONFIG_CACHE_SERVICE => 'your-cache-service-id-here'], 'service_manager' => ['delegators' => ['ViewResolver' => [CompiledMapResolverDelegatorFactory::class => CompiledMapResolverDelegatorFactory::class]]]];
+ return [self::CONFIG => [self::CONFIG_CACHE_KEY => 'cached_template_map', self::CONFIG_CACHE_SERVICE => 'your-cache-service-id-here'], 'service_manager' => []];
}
}
|
QA Checks (Infection [8.1, locked], ubuntu-latest, laminas/laminas-continuous-integration-action@...:
src/OcraCachedViewResolver/Module.php#L47
Escaped Mutant for Mutator "ArrayItemRemoval":
--- Original
+++ New
@@ @@
/** @return OcraCachedViewResolverConfiguration */
public function getConfig() : array
{
- return [self::CONFIG => [self::CONFIG_CACHE_KEY => 'cached_template_map', self::CONFIG_CACHE_SERVICE => 'your-cache-service-id-here'], 'service_manager' => ['delegators' => ['ViewResolver' => [CompiledMapResolverDelegatorFactory::class => CompiledMapResolverDelegatorFactory::class]]]];
+ return [self::CONFIG => [self::CONFIG_CACHE_KEY => 'cached_template_map', self::CONFIG_CACHE_SERVICE => 'your-cache-service-id-here'], 'service_manager' => ['delegators' => []]];
}
}
|
QA Checks (Infection [8.1, locked], ubuntu-latest, laminas/laminas-continuous-integration-action@...:
src/OcraCachedViewResolver/Module.php#L48
Escaped Mutant for Mutator "ArrayItemRemoval":
--- Original
+++ New
@@ @@
/** @return OcraCachedViewResolverConfiguration */
public function getConfig() : array
{
- return [self::CONFIG => [self::CONFIG_CACHE_KEY => 'cached_template_map', self::CONFIG_CACHE_SERVICE => 'your-cache-service-id-here'], 'service_manager' => ['delegators' => ['ViewResolver' => [CompiledMapResolverDelegatorFactory::class => CompiledMapResolverDelegatorFactory::class]]]];
+ return [self::CONFIG => [self::CONFIG_CACHE_KEY => 'cached_template_map', self::CONFIG_CACHE_SERVICE => 'your-cache-service-id-here'], 'service_manager' => ['delegators' => ['ViewResolver' => []]]];
}
}
|