Updated included dependencies #68
Annotations
10 warnings
infection
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
infection
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/cache@v2, actions/upload-artifact@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
infection:
src/Configuration.php#L128
Escaped Mutant for Mutator "Continue_":
--- Original
+++ New
@@ @@
return function (array $value) use($fieldNames) {
foreach ($fieldNames as $fieldName) {
if (!\array_key_exists($fieldName, $value)) {
- continue;
+ break;
}
if (!\is_array($value[$fieldName]) || \count($value[$fieldName]) <= 0) {
unset($value[$fieldName]);
|
infection:
src/Configuration.php#L250
Escaped Mutant for Mutator "PublicVisibility":
--- Original
+++ New
@@ @@
$builder->getRootNode()->arrayPrototype()->validate()->always($this->cleanupFields('map', 'list', 'object', 'collection'))->end()->validate()->always(mutuallyExclusiveFields('map', 'list', 'object', 'collection'))->end()->validate()->always(mutuallyExclusiveFields('copy', 'constant', 'map', 'object', 'list', 'collection'))->end()->validate()->always(mutuallyExclusiveFields('expression', 'copy', 'constant'))->end()->validate()->always(mutuallyExclusiveFields('constant', 'copy', 'map', 'object', 'list', 'collection'))->end()->validate()->always(mutuallyExclusiveFields('map', 'copy', 'constant', 'object', 'list', 'collection'))->end()->validate()->always(mutuallyExclusiveFields('object', 'copy', 'constant', 'map', 'list', 'collection'))->end()->validate()->always(mutuallyExclusiveFields('list', 'copy', 'constant', 'map', 'object', 'collection'))->end()->validate()->always(mutuallyExclusiveFields('collection', 'copy', 'constant', 'map', 'object', 'list'))->end()->validate()->always(mutuallyDependentFields('object', 'class', 'expression'))->end()->validate()->always(mutuallyDependentFields('collection', 'class', 'expression'))->end()->validate()->always(mutuallyDependentFields('map', 'expression'))->end()->validate()->always(mutuallyDependentFields('list', 'expression'))->end()->validate()->ifTrue(fn(array $value) => \array_key_exists('expression', $value) && \array_key_exists('class', $value) && !\array_key_exists('object', $value) && !\array_key_exists('collection', $value))->thenInvalid('Your configuration should not contain both the "expression" and the "class" alone, maybe you forgot a "collection", "list" or an "object" field.')->end()->children()->scalarNode('field')->isRequired()->end()->scalarNode('copy')->end()->scalarNode('expression')->validate()->always(fn($data) => new Expression($data))->end()->end()->scalarNode('constant')->end()->variableNode('map')->validate()->ifTrue(fn($element) => !\is_array($element))->thenInvalid('The children element must be an array.')->end()->validate()->ifArray()->then(fn(array $children) => $this->evaluateMap($children))->end()->end()->variableNode('list')->validate()->ifTrue(fn($element) => !\is_array($element))->thenInvalid('The children element must be an array.')->end()->validate()->ifArray()->then(fn(array $children) => $this->evaluateList($children))->end()->end()->scalarNode('class')->end()->variableNode('object')->validate()->ifTrue(fn($element) => !\is_array($element))->thenInvalid('The children element must be an array.')->end()->validate()->ifArray()->then(fn(array $children) => $this->evaluateObject($children))->end()->end()->variableNode('collection')->validate()->ifTrue(fn($element) => !\is_array($element))->thenInvalid('The children element must be an array.')->end()->validate()->ifArray()->then(fn(array $children) => $this->evaluateCollection($children))->end()->end()->end()->end();
return $builder;
}
- public function getConditionalTreeBuilder() : TreeBuilder
+ protected function getConditionalTreeBuilder() : TreeBuilder
{
$builder = new TreeBuilder('conditional');
/* @phpstan-ignore-next-line */
|
infection:
src/Configuration.php#L255
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
public function getConditionalTreeBuilder() : TreeBuilder
{
$builder = new TreeBuilder('conditional');
- /* @phpstan-ignore-next-line */
- $builder->getRootNode()->arrayPrototype()->validate()->always($this->cleanupFields('map', 'list', 'object', 'collection'))->end()->validate()->always(mutuallyExclusiveFields('map', 'list', 'object', 'collection'))->end()->children()->scalarNode('condition')->end()->booleanNode('append')->end()->append($this->getMapTreeBuilder()->getRootNode())->append($this->getListTreeBuilder()->getRootNode())->append($this->getObjectTreeBuilder()->getRootNode())->append($this->getCollectionTreeBuilder()->getRootNode())->end()->end();
+
return $builder;
}
public function getMapTreeBuilder() : TreeBuilder
|
infection:
src/Factory/ArrayMapper.php#L21
Escaped Mutant for Mutator "FalseValue":
--- Original
+++ New
@@ @@
{
private Processor $processor;
private ConfigurationInterface $configuration;
- public function __construct(private ?ExpressionLanguage $interpreter, private array $additionalExpressionVariables = [], private bool $append = false)
+ public function __construct(private ?ExpressionLanguage $interpreter, private array $additionalExpressionVariables = [], private bool $append = true)
{
$this->processor = new Processor();
$this->configuration = new FastMap\Configuration\MapMapper();
|
infection:
src/Factory/ArrayMapper.php#L39
Escaped Mutant for Mutator "Catch_":
--- Original
+++ New
@@ @@
{
try {
return $this->processor->processConfiguration($this->configuration, $config);
- } catch (Symfony\InvalidTypeException|Symfony\InvalidConfigurationException $exception) {
+ } catch (Symfony\InvalidConfigurationException $exception) {
throw new Configurator\InvalidConfigurationException($exception->getMessage(), 0, $exception);
}
}
|
infection:
src/Factory/ArrayMapper.php#L39
Escaped Mutant for Mutator "Catch_":
--- Original
+++ New
@@ @@
{
try {
return $this->processor->processConfiguration($this->configuration, $config);
- } catch (Symfony\InvalidTypeException|Symfony\InvalidConfigurationException $exception) {
+ } catch (Symfony\InvalidTypeException $exception) {
throw new Configurator\InvalidConfigurationException($exception->getMessage(), 0, $exception);
}
}
|
infection:
src/Factory/ObjectMapper.php#L38
Escaped Mutant for Mutator "Catch_":
--- Original
+++ New
@@ @@
{
try {
return $this->processor->processConfiguration($this->configuration, $config);
- } catch (Symfony\InvalidTypeException|Symfony\InvalidConfigurationException $exception) {
+ } catch (Symfony\InvalidConfigurationException $exception) {
throw new Configurator\InvalidConfigurationException($exception->getMessage(), 0, $exception);
}
}
|
infection:
src/Factory/ObjectMapper.php#L38
Escaped Mutant for Mutator "Catch_":
--- Original
+++ New
@@ @@
{
try {
return $this->processor->processConfiguration($this->configuration, $config);
- } catch (Symfony\InvalidTypeException|Symfony\InvalidConfigurationException $exception) {
+ } catch (Symfony\InvalidTypeException $exception) {
throw new Configurator\InvalidConfigurationException($exception->getMessage(), 0, $exception);
}
}
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
artifact
Expired
|
234 KB |
|