Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

s/move/moveTo/ #539

Merged
merged 3 commits into from Apr 27, 2015
Merged

s/move/moveTo/ #539

merged 3 commits into from Apr 27, 2015

Conversation

weierophinney
Copy link
Contributor

Per @Crell, this change clarifies the purpose of the method by renaming it to moveTo(). Additionally, the method argument name was changed to $targetPath to make the change completely clear.

Per @Crell, this change clarifies the purpose of the method by renaming it to
`moveTo()`. Additionally, the method argument name was changed to `$targetPath`
to make the change completely clear.
@Crell
Copy link
Contributor

Crell commented Apr 27, 2015

$targetPath is even better, yes!

One other question: What is that path relative to? I would implicitly assume it's script-root-relative, as is PHP's default, but that's not clear. (And script-root-relative is always messy anyway.)

@weierophinney
Copy link
Contributor Author

@Crell

What is that path relative to?

That would be dependent on the $targetPath value and the current working directory. If the $targetPath is absolute, you write to that; otherwise, you write relative to the current working directory.

@Crell
Copy link
Contributor

Crell commented Apr 27, 2015

That should be made explicit, I think. Even if it's explicit to "the same logic as what PHP's move() function does" (which I think is the point).

@Crell
Copy link
Contributor

Crell commented Apr 27, 2015

+1!

@weierophinney
Copy link
Contributor Author

@simensen and/or @pmjones — Ready to merge! I'll create updates later on http-message once all issues are addressed.

pmjones pushed a commit that referenced this pull request Apr 27, 2015
@pmjones pmjones merged commit 74a034b into php-fig:master Apr 27, 2015
@weierophinney weierophinney deleted the hotfix/file-move-to branch April 27, 2015 19:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants