From: Anthony Ferrara Date: Wed, 18 Mar 2015 20:53:45 +0000 (-0400) Subject: Add error case with invalid type declaration default value X-Git-Tag: PRE_PHP7_NSAPI_REMOVAL~573^2~11^2~10 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f04053844828044a5fd2092e253aa7fa0d566c20;p=php Add error case with invalid type declaration default value --- diff --git a/Zend/tests/typehints/scalar_constant_defaults_error.phpt b/Zend/tests/typehints/scalar_constant_defaults_error.phpt new file mode 100644 index 0000000000..53938d724f --- /dev/null +++ b/Zend/tests/typehints/scalar_constant_defaults_error.phpt @@ -0,0 +1,16 @@ +--TEST-- +Scalar type hint - default via constants - error condition +--FILE-- + +--EXPECTF-- +Fatal error: Argument 1 passed to int_val() must be of the type integer, string given, called in %s on line %d and defined in %s on line %d \ No newline at end of file