We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b169312 commit 1395fd6Copy full SHA for 1395fd6
Zend/tests/function_arguments/sensitive_parameter_value_to_string.phpt
@@ -0,0 +1,14 @@
1
+--TEST--
2
+SensitiveParameterValue may not be converted to a string.
3
+--FILE--
4
+<?php
5
+
6
+$v = new SensitiveParameterValue('secret');
7
8
+var_dump((string)$v);
9
+?>
10
+--EXPECTF--
11
+Fatal error: Uncaught Error: Object of class SensitiveParameterValue could not be converted to string in %ssensitive_parameter_value_to_string.php:5
12
+Stack trace:
13
+#0 {main}
14
+ thrown in %ssensitive_parameter_value_to_string.php on line 5
0 commit comments