Skip to content

Commit 3e1a1ab

Browse files
committed
Force the value of Dumper::setIndentation($num) to be of type integer.
1 parent 5be7237 commit 3e1a1ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Yaml/Dumper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class Dumper
3232
*/
3333
public function setIndentation($num)
3434
{
35-
$this->indentation = $num;
35+
$this->indentation = (int) $num;
3636
}
3737

3838
/**

0 commit comments

Comments
 (0)