Commit ba6fa129 authored by Benni Mack's avatar Benni Mack Committed by Wouter Wolters
Browse files

[BUGFIX] Fix spelling in InheritancesResolverService

Resolves: #84862
Releases: master
Change-Id: I40bff1e106efad9c43780e2df1e6ddb54b64fd1f
Reviewed-on: https://review.typo3.org/56800

Reviewed-by: Andreas Fernandez's avatarAndreas Fernandez <a.fernandez@scripting-base.de>
Tested-by: Andreas Fernandez's avatarAndreas Fernandez <a.fernandez@scripting-base.de>
Reviewed-by: Wouter Wolters's avatarWouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters's avatarWouter Wolters <typo3@wouterwolters.nl>
Tested-by: default avatarTYPO3com <no-reply@typo3.com>
parent 03848901
......@@ -89,7 +89,7 @@ class InheritancesResolverService
*
* @var string
*/
protected $inheritancePathToCkeck = '';
protected $inheritancePathToCheck = '';
/**
* Returns an instance of this service. Additionally the configuration
......@@ -119,7 +119,7 @@ class InheritancesResolverService
{
$this->referenceConfiguration = [];
$this->inheritanceStack = [];
$this->inheritancePathToCkeck = '';
$this->inheritancePathToCheck = '';
return $this;
}
......@@ -162,13 +162,13 @@ class InheritancesResolverService
*
* @param array $configuration - a mapped YAML configuration (full or partial)
* @param array $pathStack - an identifier for YAML key as array (Form.part1.key => {Form, part1, key})
* @param bool $setInheritancePathToCkeck
* @param bool $setInheritancePathToCheck
* @return array
*/
protected function resolve(
array $configuration,
array $pathStack = [],
bool $setInheritancePathToCkeck = true
bool $setInheritancePathToCheck = true
): array {
foreach ($configuration as $key => $values) {
//add current key to pathStack
......@@ -179,8 +179,8 @@ class InheritancesResolverService
$this->throwExceptionIfCycleInheritances($path, $path);
//overwrite service property 'inheritancePathToCheck' with current path
if ($setInheritancePathToCkeck) {
$this->inheritancePathToCkeck = $path;
if ($setInheritancePathToCheck) {
$this->inheritancePathToCheck = $path;
}
//if value of subnode is an array, perform a deep search iteration step
......@@ -230,9 +230,9 @@ class InheritancesResolverService
isset($inheritedConfiguration[self::INHERITANCE_OPERATOR])
&& count($inheritedConfiguration) === 1
) {
if ($this->inheritancePathToCkeck === $inheritancePath) {
if ($this->inheritancePathToCheck === $inheritancePath) {
throw new CycleInheritancesException(
$this->inheritancePathToCkeck . ' has cycle inheritances',
$this->inheritancePathToCheck . ' has cycle inheritances',
1474900796
);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment