We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d686fc6 commit 08f580aCopy full SHA for 08f580a
src/lib/PhpCsFixer/InternalConfigFactory.php
@@ -43,11 +43,7 @@ public function withRuleSet(RuleSetInterface $ruleSet): self
43
44
public function getRuleSet(): RuleSetInterface
45
{
46
- if (isset($this->ruleSet)) {
47
- return $this->ruleSet;
48
- }
49
-
50
- return $this->ruleSet = $this->createRuleSetFromPackage(InstalledVersions::getRootPackage());
+ return $this->ruleSet ??= $this->createRuleSetFromPackage(InstalledVersions::getRootPackage());
51
}
52
53
/**
0 commit comments