-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Added deprecation to cwd not existing Fixes #18249 #23708
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
Changes from 1 commit
a019543
602a7d4
7103381
56a4a01
f9225dd
4c9f3d0
f44bfd9
296cfe6
5918f16
1dd14be
06dd2eb
d684e70
7e0141c
1e4abf6
53b2c2e
8830131
d9746a2
babbfea
d57ac4d
b93e7ad
e8a2702
647fdff
29ad993
8e9ddd2
f46239d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -336,6 +336,10 @@ public function start(callable $callback = null/*, array $env = array()*/) | |
} | ||
|
||
if (!is_dir($this->cwd)) { | ||
if ('\\' === DIRECTORY_SEPARATOR) { | ||
throw new RuntimeException("The provided cwd does not exist."); | ||
} | ||
|
||
@trigger_error('The provided cwd does not exist. Command is currently ran against getcwd(). This behaviour is deprecated since version 3.4 and will be removed in 4.0.', E_USER_DEPRECATED); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. behavior There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Does Symfony follow british or american spelling across the board? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. US There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ok, ill make that change this evening There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done |
||
} | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should stick to my previous suggestion: on Windows, we should throw an exception instead of a deprecation, because on Windows, it's already broken, the getcwd fallback does not apply.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done