We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
if ($expected === "null") { $expected = null; }
This is shit and it's repeated in many scenarios. My proposition is to add some helper to maintain things like this:
function behat_null(string $nullable): ?string { return $nullable !== "null" ? $nullable : null; }
Only question is how: as a loose function or some static helper? Probably we could add some helpers for converting true/false from strings too.
true
false
The text was updated successfully, but these errors were encountered:
#9
6fd1493
#9 - Add helper for nullable strings (#30)
327a638
* #9 * Codestyle * Added test * Improved helper method naming
PiotrFedak
Successfully merging a pull request may close this issue.
if ($expected === "null") { $expected = null; }
This is shit and it's repeated in many scenarios. My proposition is to add some helper to maintain things like this:
Only question is how: as a loose function or some static helper?
Probably we could add some helpers for converting
true
/false
from strings too.The text was updated successfully, but these errors were encountered: