You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ex = newInvalidConfigurationException(sprintf('You are not allowed to define new elements for path "%s". Please define all elements for this path in one config file. If you are trying to overwrite an element, make sure you redefine it with the same name.', $this->getPath()));
373
+
$ex = newInvalidConfigurationException(\sprintf('You are not allowed to define new elements for path "%s". Please define all elements for this path in one config file. If you are trying to overwrite an element, make sure you redefine it with the same name.', $this->getPath()));
thrownewForbiddenOverwriteException(sprintf('Configuration path "%s" cannot be overwritten. You have to define all options for this path, and any of its sub-paths in one configuration section.', $this->getPath()));
316
+
thrownewForbiddenOverwriteException(\sprintf('Configuration path "%s" cannot be overwritten. You have to define all options for this path, and any of its sub-paths in one configuration section.', $this->getPath()));
317
317
}
318
318
319
319
if ($leftSide !== $leftPlaceholders = self::resolvePlaceholderValue($leftSide)) {
@@ -432,7 +432,7 @@ final public function finalize(mixed $value): mixed
432
432
433
433
throw$e;
434
434
} catch (\Exception$e) {
435
-
thrownewInvalidConfigurationException(sprintf('Invalid configuration for path "%s": ', $this->getPath()).$e->getMessage(), $e->getCode(), $e);
435
+
thrownewInvalidConfigurationException(\sprintf('Invalid configuration for path "%s": ', $this->getPath()).$e->getMessage(), $e->getCode(), $e);
436
436
}
437
437
}
438
438
@@ -507,7 +507,7 @@ private static function resolvePlaceholderValue(mixed $value): mixed
507
507
privatefunctiondoValidateType(mixed$value): void
508
508
{
509
509
if (null !== $this->handlingPlaceholder && !$this->allowPlaceholders()) {
510
-
$e = newInvalidTypeException(sprintf('A dynamic value is not compatible with a "%s" node type at path "%s".', static::class, $this->getPath()));
510
+
$e = newInvalidTypeException(\sprintf('A dynamic value is not compatible with a "%s" node type at path "%s".', static::class, $this->getPath()));
511
511
$e->setPath($this->getPath());
512
512
513
513
throw$e;
@@ -523,7 +523,7 @@ private function doValidateType(mixed $value): void
523
523
$validTypes = $this->getValidPlaceholderTypes();
524
524
525
525
if ($validTypes && array_diff($knownTypes, $validTypes)) {
526
-
$e = newInvalidTypeException(sprintf(
526
+
$e = newInvalidTypeException(\sprintf(
527
527
'Invalid type for path "%s". Expected %s, but got %s.',
thrownewInvalidDefinitionException(sprintf('->addDefaultChildrenIfNoneSet() should set default children names as ->useAttributeAsKey() is used at path "%s".', $path));
478
+
thrownewInvalidDefinitionException(\sprintf('->addDefaultChildrenIfNoneSet() should set default children names as ->useAttributeAsKey() is used at path "%s".', $path));
479
479
}
480
480
481
481
if (null === $this->key && (\is_string($this->addDefaultChildren) || \is_array($this->addDefaultChildren))) {
482
-
thrownewInvalidDefinitionException(sprintf('->addDefaultChildrenIfNoneSet() might not set default children names as ->useAttributeAsKey() is not used at path "%s".', $path));
482
+
thrownewInvalidDefinitionException(\sprintf('->addDefaultChildrenIfNoneSet() might not set default children names as ->useAttributeAsKey() is not used at path "%s".', $path));
483
483
}
484
484
}
485
485
}
@@ -504,7 +504,7 @@ public function find(string $nodePath): NodeDefinition
504
504
: substr($nodePath, 0, $pathSeparatorPos);
505
505
506
506
if (null === $node = ($this->children[$firstPathSegment] ?? null)) {
507
-
thrownew \RuntimeException(sprintf('Node with name "%s" does not exist in the current node "%s".', $firstPathSegment, $this->name));
507
+
thrownew \RuntimeException(\sprintf('Node with name "%s" does not exist in the current node "%s".', $firstPathSegment, $this->name));
0 commit comments