{"id":15307094,"url":"https://github.com/mgatner/rector-error","last_synced_at":"2025-10-18T15:11:53.859Z","repository":{"id":97626485,"uuid":"448018200","full_name":"MGatner/rector-error","owner":"MGatner","description":"Demonstration of a Rector PHP bug","archived":false,"fork":false,"pushed_at":"2022-01-17T15:14:26.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"develop","last_synced_at":"2025-04-02T21:12:09.573Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MGatner.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-01-14T15:38:01.000Z","updated_at":"2022-01-14T15:48:46.000Z","dependencies_parsed_at":null,"dependency_job_id":"9cf78e68-fab8-430d-8587-2a3cad5f212e","html_url":"https://github.com/MGatner/rector-error","commit_stats":{"total_commits":3,"total_committers":1,"mean_commits":3.0,"dds":0.0,"last_synced_commit":"03b192ded3608c1a337b6cf8b26ed82b4403c36e"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MGatner%2Frector-error","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MGatner%2Frector-error/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MGatner%2Frector-error/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MGatner%2Frector-error/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MGatner","download_url":"https://codeload.github.com/MGatner/rector-error/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247157076,"owners_count":20893202,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-01T08:09:01.878Z","updated_at":"2025-10-18T15:11:53.753Z","avatar_url":"https://github.com/MGatner.png","language":"PHP","readme":"# rector-error\nDemonstration of a Rector PHP bug\n\n## Process\n\n1. Clone the repo\n2. Run `composer update`\n3. Verify local execution succeeds: `./vendor/bin/rector process -vv`\n4. Install Rector globally\n5. Verify global execution fails: `rector process -vv`\n\n*Tested on PHP 7.4 and 8.1 with Rector `0.12.13`.*\n\n## Example Output\n\nFrom an actual run of this process on ubuntu 20.04, PHP 7.4, Rector 0.12.13.\n```\nubuntu:/opt/rector-error$ ~/.config/composer/vendor/bin/rector process -vv --clear-cache\n[parsing] src/MyException.php\n[parsing] src/MyOtherClass.php\n[refactoring] src/MyOtherClass.php\n[post rectors] src/MyOtherClass.php\n    [post rector] Rector\\PostRector\\Rector\\NodeToReplacePostRector\n    [post rector] Rector\\PostRector\\Rector\\NodeAddingPostRector\n    [post rector] Rector\\PostRector\\Rector\\PropertyAddingPostRector\n    [post rector] Ssch\\TYPO3Rector\\Rector\\PostRector\\FullQualifiedNamePostRector\n    [post rector] Rector\\PostRector\\Rector\\NodeRemovingPostRector\n    [post rector] Rector\\PostRector\\Rector\\ClassRenamingPostRector\n    [post rector] Rector\\PostRector\\Rector\\NameImportingPostRector\n    [post rector] Rector\\PostRector\\Rector\\UseAddingPostRector\n[print] src/MyOtherClass.php\n\n                                                                                                                        \n [ERROR] Could not process \"src/MyException.php\" file, due to:                                                          \n         \"System error: \"PHPStan\\BetterReflection\\Reflection\\ReflectionClass \"CodeIgniter\\Exceptions\\ExceptionInterface\"\n         could not be found in the located source\"                                                                      \n         Run Rector with \"--debug\" option and post the report here: https://github.com/rectorphp/rector/issues/new\". On \n         line: 26                                                                                                       \n                                                                                                                        \n\nubuntu:/opt/rector-error$ ./vendor/bin/rector process -vv --clear-cache\n[parsing] src/MyException.php\n[refactoring] src/MyException.php\n[post rectors] src/MyException.php\n    [post rector] Rector\\PostRector\\Rector\\NodeToReplacePostRector\n    [post rector] Rector\\PostRector\\Rector\\NodeAddingPostRector\n    [post rector] Rector\\PostRector\\Rector\\PropertyAddingPostRector\n    [post rector] Ssch\\TYPO3Rector\\Rector\\PostRector\\FullQualifiedNamePostRector\n    [post rector] Rector\\PostRector\\Rector\\NodeRemovingPostRector\n    [post rector] Rector\\PostRector\\Rector\\ClassRenamingPostRector\n    [post rector] Rector\\PostRector\\Rector\\NameImportingPostRector\n    [post rector] Rector\\PostRector\\Rector\\UseAddingPostRector\n[print] src/MyException.php\n[parsing] src/MyOtherClass.php\n[printing skipped due error] src/MyOtherClass.php\n\n                                                                                                                        \n [OK] Rector is done!                                                                                                   \n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmgatner%2Frector-error","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmgatner%2Frector-error","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmgatner%2Frector-error/lists"}