diff --git a/rules-tests/Symfony44/Rector/ClassMethod/ConsoleExecuteReturnIntRector/Fixture/skip_try_catch_return_with_stmts_before_return.php.inc b/rules-tests/Symfony44/Rector/ClassMethod/ConsoleExecuteReturnIntRector/Fixture/skip_try_catch_return_with_stmts_before_return.php.inc new file mode 100644 index 00000000..882a9faf --- /dev/null +++ b/rules-tests/Symfony44/Rector/ClassMethod/ConsoleExecuteReturnIntRector/Fixture/skip_try_catch_return_with_stmts_before_return.php.inc @@ -0,0 +1,21 @@ +writeln('working'); + return 0; + } catch (\Exception $exception) { + $output->writeln($exception->getMessage()); + return 1; + } + } +} diff --git a/rules-tests/Symfony44/Rector/ClassMethod/ConsoleExecuteReturnIntRector/Fixture/try_catch_return_with_stmts_before_return.php.inc b/rules-tests/Symfony44/Rector/ClassMethod/ConsoleExecuteReturnIntRector/Fixture/try_catch_return_with_stmts_before_return.php.inc new file mode 100644 index 00000000..2249a195 --- /dev/null +++ b/rules-tests/Symfony44/Rector/ClassMethod/ConsoleExecuteReturnIntRector/Fixture/try_catch_return_with_stmts_before_return.php.inc @@ -0,0 +1,47 @@ +writeln('working'); + return 0; + } catch (\Exception $exception) { + $output->writeln($exception->getMessage()); + return 1; + } + } +} + +?> +----- +writeln('working'); + return 0; + } catch (\Exception $exception) { + $output->writeln($exception->getMessage()); + return 1; + } + } +} + +?>