diff --git a/rules-tests/CodeQuality/Rector/Class_/InlineConstructorDefaultToPropertyRector/Fixture/do_not_change_has_before_if.php.inc b/rules-tests/CodeQuality/Rector/Class_/InlineConstructorDefaultToPropertyRector/Fixture/do_not_change_has_before_if.php.inc new file mode 100644 index 00000000000..ffbf141ace1 --- /dev/null +++ b/rules-tests/CodeQuality/Rector/Class_/InlineConstructorDefaultToPropertyRector/Fixture/do_not_change_has_before_if.php.inc @@ -0,0 +1,47 @@ +age = 20; + + if (!$initName) { + $this->gender = 'M'; + + return; + } + + $this->name = 'John'; + } +} +?> +----- +gender = 'M'; + + return; + } + + $this->name = 'John'; + } +} +?>