Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

samsonasik
Copy link
Member

@samsonasik samsonasik commented Jan 28, 2024

The Nette\Utils\FileSystem::write() is using file_put_contents() instead of rename() which has bug on php itself, ref:

that used by symfony.

This should fix rectorphp/rector#8432

/cc @stein197

using null arg to keep file permission:

-        $this->filesystem->dumpFile($filePath, $newContent);
+        FileSystem::write($filePath, $newContent, null);

@samsonasik
Copy link
Member Author

All checks have passed 🎉 @TomasVotruba I think it is ready.

@samsonasik
Copy link
Member Author

@TomasVotruba let's merge it to have faster feedback to test ;)

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.

Could not process a file due to System error: Cannot rename
1 participant