pathAsString = substr($parent->pathAsString, 0, max(strrpos($parent->pathAsString, '.'), strrpos($parent->pathAsString, '['))); array_pop($parent->elements); array_pop($parent->isIndex); return $parent; } /** * Returns a new iterator for this path. * * @return PropertyPathIteratorInterface */ #[\ReturnTypeWillChange] public function getIterator() { return new PropertyPathIterator($this); } /** * {@inheritdoc} */ public function getElements() { return $this->elements; } /** * {@inheritdoc} */ public function getElement($index) { if (!isset($this->elements[$index])) { throw new OutOfBoundsException(sprintf('The index "%s" is not within the property path.', $index)); } return $this->elements[$index]; } /** * {@inheritdoc} */ public function isProperty($index) { if (!isset($this->isIndex[$index])) { throw new OutOfBoundsException(sprintf('The index "%s" is not within the property path.', $index)); } return !$this->isIndex[$index]; } /** * {@inheritdoc} */ public function isIndex($index) { if (!isset($this->isIndex[$index])) { throw new OutOfBoundsException(sprintf('The index "%s" is not within the property path.', $index)); } return $this->isIndex[$index]; } }
Fatal error: Uncaught Error: Class "Symfony\Component\PropertyAccess\PropertyPath" not found in /home/construteknia/public_html/vendor/symfony/symfony/src/Symfony/Component/PropertyAccess/PropertyAccessor.php:886 Stack trace: #0 /home/construteknia/public_html/vendor/symfony/symfony/src/Symfony/Component/PropertyAccess/PropertyAccessor.php(96): Symfony\Component\PropertyAccess\PropertyAccessor->getPropertyPath('[name]') #1 /home/construteknia/public_html/src/Core/Util/ArrayFinder.php(93): Symfony\Component\PropertyAccess\PropertyAccessor->getValue(Array, '[name]') #2 /home/construteknia/public_html/src/Core/Addon/Theme/Theme.php(85): PrestaShop\PrestaShop\Core\Util\ArrayFinder->get('[name]') #3 /home/construteknia/public_html/config/config.inc.php(121): PrestaShop\PrestaShop\Core\Addon\Theme\Theme->getName() #4 /home/construteknia/public_html/index.php(27): require('/home/construte...') #5 {main} thrown in /home/construteknia/public_html/vendor/symfony/symfony/src/Symfony/Component/PropertyAccess/PropertyAccessor.php on line 886