Skip to content

Conversation

xabbuh
Copy link
Member

@xabbuh xabbuh commented Mar 1, 2016

Q A
Branch master
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #17943 (comment), #17977
License MIT
Doc PR

This completes #17978.

@@ -30,6 +30,10 @@ class Dumper
*/
public function __construct($indentation = 4)
{
if ($indentation < 1) {
throw new \InvalidArgumentException('The indentation must be greater than zero.');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The indentation can be a float number like 3.14? or should ensure that the indentation is a natural number?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The docblock states that the argument must be an integer and we don't do scalar type checks in Symfony.

@fabpot
Copy link
Member

fabpot commented Mar 2, 2016

Done in the merge commit. Thanks.

@fabpot fabpot closed this Mar 2, 2016
@xabbuh xabbuh deleted the minimum-indentation-level-master branch March 2, 2016 11:55
@xabbuh
Copy link
Member Author

xabbuh commented Mar 2, 2016

Thanks @fabpot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants