diff --git a/src/Peachpie.Runtime/Variables.cs b/src/Peachpie.Runtime/Variables.cs index 7e2c2f1244..5bbb2c1d17 100644 --- a/src/Peachpie.Runtime/Variables.cs +++ b/src/Peachpie.Runtime/Variables.cs @@ -601,7 +601,7 @@ public static byte[] ToBytes(this PhpValue value, Context ctx) /// Checks the value is of type string or &string and gets its value. /// Single-byte strings are decoded using UTF-8. /// - public static bool IsPhpArray(this PhpValue value, [MaybeNullWhen(false)]out PhpArray? array) => (array = value.AsArray()) != null; + public static bool IsPhpArray(this PhpValue value, [MaybeNullWhen(false)]out PhpArray array) => (array = value.AsArray()) != null; /// /// Checks the value is of type string or &string and gets its value. @@ -650,7 +650,7 @@ public static bool IsBinaryString(this PhpValue value, out PhpString @string) /// /// Gets value indicating the variable is Unicode string value. /// - public static bool IsUnicodeString(this PhpValue value, /*[MaybeNullWhen(false)]*/out string? @string) + public static bool IsUnicodeString(this PhpValue value, [MaybeNullWhen(false)]out string @string) { switch (value.TypeCode) { diff --git a/tests/web/filter_var_array.php b/tests/web/filter_var_array.php new file mode 100644 index 0000000000..2d2ee4eb90 --- /dev/null +++ b/tests/web/filter_var_array.php @@ -0,0 +1,35 @@ + 'libgd