1
0
mirror of https://github.com/danog/parallel.git synced 2024-12-11 16:49:51 +01:00

Fix flattenArgument for booleans (#97)

This commit is contained in:
Jáchym Toušek 2020-02-11 16:57:22 +01:00 committed by GitHub
parent 09ab72333b
commit 1e8062c702
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -71,5 +71,9 @@ function flattenArgument($value): string
return 'null';
}
if (\is_bool($value)) {
return $value ? 'true' : 'false';
}
return (string) $value;
}