Skip to content

Commit b649ce0

Browse files
committed
Allow empty string for setting value
Some PHP features are enabled by default and can be disabled by using an empty string as a setting value, e.g. user_ini.filename. The code currently require a non-empty string, making it impossible to disable such a feature. Allow an empty string as the value of a setting.
1 parent a898e23 commit b649ce0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

manifests/config/setting.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#
2121
define php::config::setting (
2222
String[1] $key,
23-
Variant[Integer, String[1]] $value,
23+
Variant[Integer, String] $value,
2424
Stdlib::Absolutepath $file,
2525
) {
2626
assert_private()

0 commit comments

Comments
 (0)