Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[Console] allow answer to be trimmed by adding a flag#32707
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
[Console] allow answer to be trimmed by adding a flag#32707
Uh oh!
There was an error while loading.Please reload this page.
Conversation
chalasr commentedJul 24, 2019
I'm sorry, but this is a new feature which will be released in the next minor version, it cannot be backported, as per semver. |
phil-davis commentedJul 24, 2019
I was "hoping" this could be considered a bug - the caller does not (and is not able to) get the full "real" answer back from the end-user, and this change provides an optional way for the caller to get the full answer, without breaking the behaviour of any existing calls. Anyway, I understand if it cannot be classed as a "bugfix". That means that this optional not-trimmed behaviour will not be possible to use until after 4.4 is released. |
phil-davis commentedJul 24, 2019
Hmmm - I was fixing code for pre-PHP7 support, at least to see if I can make CI pass with the older PHP. |
Uh oh!
There was an error while loading.Please reload this page.
According to#23210 (comment) we add a new flag in the Question class to be able to not trim the answer.
This is a "backport" request for#31626 - the code is completely backward-compatible, any existing use gets the answer trimmed. So this
setTrimmable(false)ability would only come into effect if someone modifies their code to use it.I am asking if it is OK/possible to implement this in the
3.4branch. I realise that this can be considered a "new feature" and so withsemverthe version should be bumped to3.5.0for a "new feature" that is backward-compatible. And I suspect that3.5is no longer allowed to happen. But maybe it could also be called a bug, because without this change there is no way to know that the user's answer has leading/trailing spaces.