Skip to content

Conversation

@Kanti
Copy link
Contributor

@Kanti Kanti commented Sep 6, 2024

The path is currently only an absolute path if you call rector with a directory like this
rector process pathToFile/.
If you call it with a filename instead, the path will be relative.
rector process pathToFile/File.php.
This makes implementing RectorRules with path usage more difficult than necessary.

fixes: sabbelasichon/typo3-rector#4301

@samsonasik
Copy link
Member

Thank you @Kanti

@samsonasik samsonasik enabled auto-merge (squash) September 8, 2024 01:24
@samsonasik samsonasik merged commit 393423f into rectorphp:main Sep 8, 2024
@Kanti Kanti deleted the always-absolute-path branch September 8, 2024 06:05
@TomasVotruba
Copy link
Member

Thanks 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG]: FilesystemInterface prefix (if file is selected instead of path)

3 participants