{"full_name":"rectorphp/rector","owner":"rectorphp","name":"rector","shard":"1","url":"https://github.com/rectorphp/rector","description":"Instant Upgrades and Automated Refactoring of any PHP 5.3+ code","homepage":"https://getrector.com","topics":["php","ast","instant-upgrades","automated-upgrades","upgrade","rector"],"tag_pages":["ast","php"],"language":"PHP","license":"MIT","avatar":"https://avatars.githubusercontent.com/u/32097581?v=4","created_at":"2017-07-15T11:16:02Z","pushed_at":"2026-11-14T23:59:31Z","metrics":{"stars":10509,"forks":743,"watchers":88,"issues":5227,"prs":4399,"releases":205,"issues_open":7,"issues_closed":5220,"prs_open":0,"prs_closed":495,"prs_merged":3904,"discussions":299},"growth":{"day":{"stars":1,"forks":0,"base_day":"2026-11-15"},"week":{"stars":14,"forks":1,"base_day":"2026-11-04"},"month":{"stars":64,"forks":1,"base_day":"2026-10-17"}},"history":{"dates":["2026-09-06","2026-09-07","2026-09-08","2026-09-09","2026-09-10","2026-09-11","2026-09-12","2026-09-13","2026-09-14","2026-09-15","2026-09-16","2026-09-17","2026-09-18","2026-09-19","2026-09-20","2026-09-21","2026-09-22","2026-09-23","2026-09-24","2026-09-25","2026-09-26","2026-09-27","2026-09-28","2026-09-29","2026-09-30","2026-10-01","2026-10-02","2026-10-03","2026-10-04","2026-10-05","2026-10-06","2026-10-07","2026-10-08","2026-10-09","2026-10-10","2026-10-11","2026-10-12","2026-10-13","2026-10-14","2026-10-15","2026-10-16","2026-10-17","2026-10-18","2026-10-19","2026-10-20","2026-10-21","2026-10-22","2026-10-23","2026-10-24","2026-10-25","2026-10-26","2026-10-27","2026-10-28","2026-10-29","2026-10-30","2026-10-31","2026-11-01","2026-11-02","2026-11-03","2026-11-04","2026-11-10","2026-11-11","2026-11-12","2026-11-13","2026-11-14","2026-11-15","2026-11-16"],"stars":[10414,10415,10417,10417,10417,10418,10418,10418,10419,10418,10419,10420,10422,10424,10424,10425,10426,10427,10426,10426,10427,10429,10430,10432,10434,10435,10436,10435,10435,10435,10436,10434,10434,10434,10437,10437,10437,10440,10439,10441,10442,10445,10445,10445,10446,10447,10450,10466,10474,10475,10479,10482,10487,10491,10494,10493,10494,10494,10494,10495,10500,10504,10507,10504,10507,10508,10509],"forks":[744,744,744,744,745,745,745,745,744,744,743,743,743,743,742,742,742,742,742,742,742,742,742,742,742,743,743,742,742,742,742,742,742,742,742,742,742,742,742,742,742,742,741,741,741,741,741,741,741,741,741,741,741,741,742,742,742,742,742,742,743,743,743,743,743,743,743],"watchers":[89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,87,87,87,87,87,88,88,88,88,88,88,null,null,88,88,88,88,88],"issues_open":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,3,3,4,5,7],"prs_open":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,0,0,0,0,0]},"boards":{},"same_owner":[],"issues":[{"number":9958,"title":"System error: Class ... should be known at this point","comments":2,"created_at":"2026-11-03T18:20:24Z"},{"number":9970,"title":"Removing a skip after a `--clear-cache` run does not invalidate the cache","comments":1,"created_at":"2026-11-15T14:21:26Z"},{"number":9966,"title":"CreateStubOverCreateMockArgRector turns a mock into a stub when the argument is stored and configured with expects() later","comments":1,"created_at":"2026-11-14T12:14:20Z"},{"number":9965,"title":"AddDoesNotPerformAssertionToNonAssertingTestRector: misses assertions outside the test method body (parent::, expectUserDeprecationMessage(), lifecycle methods)","comments":1,"created_at":"2026-11-14T11:18:37Z"},{"number":9948,"title":"\"System error: \"Node \"PhpParser\\Node\\Expr\\ClassConstFetch\" with is missing scope required for scope refresh\"","comments":1,"created_at":"2026-10-30T08:43:22Z"},{"number":9969,"title":"EventSubscriberToAttributeRector breaks subscribers when nothing registers #[AsEventListener]","comments":0,"created_at":"2026-11-15T07:40:27Z"},{"number":9956,"title":"MyCLabsMethodCallToEnumConstRector should only refactor according to RuleDefinition","comments":0,"created_at":"2026-11-03T15:23:17Z"}],"discussions":[{"number":9924,"title":"Getting class or namespace error when creating custom rector using the `nesbot/carbon` library","comments":2,"category":"Q&A","created_at":"2026-10-09T11:56:15Z"},{"number":9923,"title":"Composer complaints that `*.php.inc` fixture files do not comply with PSR-4","comments":1,"category":"Q&A","created_at":"2026-10-09T11:45:46Z"},{"number":9902,"title":"2.6.7 was considered a patch release?","comments":1,"category":"General","created_at":"2026-09-16T03:16:33Z"},{"number":9874,"title":"Everything okay with the latest 2.6.5 release? Notes have weird issue links","comments":1,"category":"General","created_at":"2026-08-31T05:46:54Z"},{"number":9751,"title":"Rector wrapper plugin for cPanel","comments":1,"category":"General","created_at":"2026-05-06T23:35:48Z"},{"number":9747,"title":"Is there a Rector for Inline Multiline Array passed as param?","comments":1,"category":"Q&A","created_at":"2026-04-30T07:54:47Z"},{"number":9715,"title":"NullCoalescingOperatorRector rule for if (!isset($var)) $var = '...'?","comments":0,"category":"General","created_at":"2026-03-28T15:21:33Z"},{"number":9678,"title":"Trying to debug the false-positive","comments":3,"category":"Q&A","created_at":"2026-02-25T12:17:54Z"}],"latest_release":{"name":"Released Rector 2.8.5","tag":"2.8.5","published_at":"2026-11-14T23:39:05Z","body":"## Bugfixes and safer reprints :bug:\r\n\r\nThis release is mostly about **bugfixes** - an infinite loop fix in docblock return types, kept ternary parentheses on null coalescing, more precise `changed_files` in JSON output, and several new skips for **dead code** and **PHP 8.4** rules. On the extension side, **PHPUnit** `AddDoesNotPerformAssertionToNonAssertingTestRector` is now faster and more precise.\r\n\r\n<br>\r\n\r\n## Bugfixes :bug:\r\n\r\n- [TypeDeclarationDocblocks] Skip invalid `@return` tag to fix infinite loop in `DocblockReturnArrayFromDirectArrayInstanceRector` ([#8918](https://github.com/rectorphp/rector-src/pull/8918))\r\n- [ChangesReporting] List only changed files in JSON `changed_files` ([#8917](https://github.com/rectorphp/rector-src/pull/8917)) Thanks @gvieira18\r\n- [Core] Drop file positions on reprinted nodes copied from another file ([#8928](https://github.com/rectorphp/rector-src/pull/8928))\r\n- Preserve ternary fallback parentheses in new coalesces ([#8927](https://github.com/rectorphp/rector-src/pull/8927)) Thanks @smotim\r\n- [Php70] Keep inner ternary parentheses on `TernaryToNullCoalescingRector` ([#8921](https://github.com/rectorphp/rector-src/pull/8921))\r\n- [Php55] Handle variable interpolated in pattern on `PregReplaceEModifierRector` ([#8922](https://github.com/rectorphp/rector-src/pull/8922))\r\n- [Php84] Skip variable modified in condition on `ForeachToArrayAllRector`, `ForeachToArrayAnyRector`, `ForeachToArrayFindRector` and `ForeachToArrayFindKeyRector` ([#8925](https://github.com/rectorphp/rector-src/pull/8925))\r\n- [DeadCode] Skip conditional return type on `RemoveUselessReturnTagRector` ([#8924](https://github.com/rectorphp/rector-src/pull/8924)) Thanks @APX403\r\n- [DeadCode] Skip private methods used as callables on `RemoveUnusedPrivateMethodParameterRector` ([#8923](https://github.com/rectorphp/rector-src/pull/8923)) Thanks @phinor\r\n- [CodingStyle] Skip closure with rebound `$this` on `ArrowFunctionDelegatingCallToFirstClassCallableRector` and `ClosureDelegatingCallToFirstClassCallableRector` ([#8931](https://github.com/rectorphp/rector-src/pull/8931))\r\n\r\n<br>\r\n\r\n## Performance Improvements :rocket:\r\n\r\n- Remove usage of `CloningVisitor` on `AstResolver` ([#8861](https://github.com/rectorphp/rector-src/pull/8861))\r\n\r\n<br>\r\n\r\n## Internals :gear:\r\n\r\n- [Printer] Remove unneeded `BetterStandardPrinter::pStmt_FileNode()` ([#8904](https://github.com/rectorphp/rector-src/pull/8904))\r\n- [CodingStyle] Cover Doctrine/Symfony aliased names on import names with real stubs ([#8932](https://github.com/rectorphp/rector-src/pull/8932), [#8933](https://github.com/rectorphp/rector-src/pull/8933))\r\n\r\n<br>\r\n\r\n## rector-symfony :musical_note:\r\n\r\n- [Symfony61] Do not add `#[AsCommand]` without a name in `CommandConfigureToAttributeRector` ([#1102](https://github.com/rectorphp/rector-symfony/pull/1102)) Thanks @kix\r\n- Skip first-class callable in `CommandConfigureToAttributeRector` ([#1104](https://github.com/rectorphp/rector-symfony/pull/1104))\r\n\r\n<br>\r\n\r\n## rector-phpunit :green_circle:\r\n\r\n- [PHPUnit90] Handle named and unpacked `preg_match()` args and skip non-literal expected value in `AssertRegExpRector` ([#820](https://github.com/rectorphp/rector-phpunit/pull/820), [#819](https://github.com/rectorphp/rector-phpunit/pull/819)) Thanks @alies-dev\r\n- [PHPUnit100] Add `willReturnOnConsecutiveCalls()` variables to closure `use()` in `WithConsecutiveRector` ([#821](https://github.com/rectorphp/rector-phpunit/pull/821))\r\n- [PHPUnit120] Skip mocks configured through an alias in `ExpressionCreateMockToCreateStubRector` ([#823](https://github.com/rectorphp/rector-phpunit/pull/823)) Thanks @bbrala\r\n- [PHPUnit60] Follow `parent::test()` calls in `AddDoesNotPerformAssertionToNonAssertingTestRector` ([#826](https://github.com/rectorphp/rector-phpunit/pull/826)) Thanks @bbrala\r\n- [PHPUnit60] Count `expectUserDeprecationMessage()` as assert, skip test methods in abstract classes and skip tests in classes with own asserting lifecycle methods in","is_prerelease":false},"readme":true,"readme_zh":false,"news":[],"stale":false,"snapshot_at":"2026-11-16T09:23:14Z","history_start":"2026-09-06"}