diff --git a/.twig-cs-fixer.php b/.twig-cs-fixer.php index 8b050a506..bf4b84a7e 100644 --- a/.twig-cs-fixer.php +++ b/.twig-cs-fixer.php @@ -12,6 +12,7 @@ $config = new TwigCsFixer\Config\Config(); $config->setRuleset($ruleset); $config->setFinder($finder); +$config->allowNonFixableRules(); $config->addTokenParser(new Drupal\Core\Template\TwigTransTokenParser()); return $config; diff --git a/composer.json b/composer.json index 8471e5a30..e5f275c90 100644 --- a/composer.json +++ b/composer.json @@ -80,7 +80,8 @@ "oomphinc/composer-installers-extender": true, "php-http/discovery": true, "phpstan/extension-installer": true, - "pyrech/composer-changelogs": true + "pyrech/composer-changelogs": true, + "tbachert/spi": true }, "discard-changes": true, "platform": { diff --git a/web/modules/custom/ys_core/tests/src/Traits/ReflectionTrait.php b/web/modules/custom/ys_core/tests/src/Traits/ReflectionTrait.php index 60bc531da..fe9dee81d 100644 --- a/web/modules/custom/ys_core/tests/src/Traits/ReflectionTrait.php +++ b/web/modules/custom/ys_core/tests/src/Traits/ReflectionTrait.php @@ -84,7 +84,7 @@ protected static function setProtectedValue(object $object, string $property, mi * @return mixed * Protected property value. */ - protected static function getProtectedValue($object, $property) { + protected static function getProtectedValue($object, $property): mixed { $class = new \ReflectionClass($object::class); $property = $class->getProperty($property); $property->setAccessible(TRUE);