Skip to content

[CodeQuality] Handle constant definition in InlineIfToExplicitIfRector - #9078

Merged
TomasVotruba merged 2 commits into
mainfrom
inline-define-to-explicit-if
Nov 27, 2026
Merged

TomasVotruba merged 2 commits into
mainfrom
inline-define-to-explicit-if

Conversation

@TomasVotruba

@TomasVotruba TomasVotruba commented Nov 27, 2026 •

Copy link
Copy Markdown
Member

Reverts the skip from #422, so constant definitions become explicit if:

-defined('IN_MAUTIC_CONSOLE') || define('IN_MAUTIC_CONSOLE', 1);
+if (!defined('IN_MAUTIC_CONSOLE')) {
+    define('IN_MAUTIC_CONSOLE', 1);
+}

@TomasVotruba
TomasVotruba force-pushed the inline-define-to-explicit-if branch from e2c0321 to a34efa0 Compare November 27, 2026 09:40
@TomasVotruba TomasVotruba changed the title [CodeQuality] Add InlineDefineToExplicitIfRector [CodeQuality] Handle constant definition in InlineIfToExplicitIfRector Nov 27, 2026
@TomasVotruba
TomasVotruba merged commit 6c17f02 into main Nov 27, 2026
51 checks passed
@TomasVotruba
TomasVotruba deleted the inline-define-to-explicit-if branch November 27, 2026 11:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants