File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -162,6 +162,7 @@ parameters:
162162- OPENSSL_VERSION_NUMBER
163163- ZEND_DEBUG_BUILD
164164- ZEND_THREAD_SAFE
165+ customRulesetUsed : null
165166editorUrl : null
166167
167168extensions :
@@ -289,7 +290,7 @@ parametersSchema:
289290resultCacheChecksProjectExtensionFilesDependencies : bool ()
290291staticReflectionClassNamePatterns : listOf (string ())
291292dynamicConstantNames : listOf (string ())
292- customRulesetUsed : bool ()
293+ customRulesetUsed : schema ( bool (), nullable () )
293294rootDir : string ()
294295tmpDir : string ()
295296currentWorkingDirectory : string ()
Original file line number Diff line number Diff line change @@ -355,7 +355,9 @@ public static function begin(
355355}
356356
357357self ::setUpSignalHandler ($ errorOutput );
358- if (!$ container ->hasParameter ('customRulesetUsed ' )) {
358+ /** @var bool|null $customRulesetUsed */
359+ $ customRulesetUsed = $ container ->getParameter ('customRulesetUsed ' );
360+ if ($ customRulesetUsed === null ) {
359361$ errorOutput ->writeLineFormatted ('' );
360362$ errorOutput ->writeLineFormatted ('<comment>No rules detected</comment> ' );
361363$ errorOutput ->writeLineFormatted ('' );
@@ -367,7 +369,7 @@ public static function begin(
367369$ errorOutput ->writeLineFormatted (' * in this case, don \'t forget to define parameter <options=bold>customRulesetUsed</> in your config file. ' );
368370$ errorOutput ->writeLineFormatted ('' );
369371throw new InceptionNotSuccessfulException ();
370- } elseif (( bool ) $ container -> getParameter ( ' customRulesetUsed ' ) ) {
372+ } elseif ($ customRulesetUsed ) {
371373$ defaultLevelUsed = false ;
372374}
373375
You can’t perform that action at this time.
0 commit comments