Backups Created:
/home/japatmex/public_html/wp-content/edit-wolf.php
Savvy
W
olf -
MANAGER
Edit File: RulesExtension.php
<?php declare(strict_types = 1); namespace PHPStan\DependencyInjection; use Nette\Schema\Expect; use PHPStan\Rules\RegistryFactory; class RulesExtension extends \Nette\DI\CompilerExtension { public function getConfigSchema(): \Nette\Schema\Schema { return Expect::listOf('string'); } public function loadConfiguration(): void { /** @var mixed[] $config */ $config = $this->config; $builder = $this->getContainerBuilder(); foreach ($config as $key => $rule) { $builder->addDefinition($this->prefix((string) $key)) ->setFactory($rule) ->setAutowired(false) ->addTag(RegistryFactory::RULE_TAG); } } }