com php-langspec: Adjust constant warning message for PHP 7.3: tests/constants/constants.phpt
| From: | Nikita Popov | Date: | Sat, 22 Dec 2018 12:29:45 +0000 |
| Subject: | com php-langspec: Adjust constant warning message for PHP 7.3: tests/constants/constants.phpt | ||
| Groups: | php.standards.cvs | ||
| Request: | Send a blank email to standards--cvs+get-424@lists.php.net to get a copy of this message | ||
Commit: 313688242e8cefdd99349f592a81a67a157c0fb6
Author: Nikita Popov <nikita.ppv@gmail.com> Sat, 22 Dec 2018 13:29:45 +0100
Parents: 197a397cf84bdcd3f896aebf15a73b5fd45a174d
Branches: master
Link: http://git.php.net/?p=php-langspec.git;a=commitdiff;h=313688242e8cefdd99349f592a81a67a157c0fb6
Log:
Adjust constant warning message for PHP 7.3
The spec already correctly mentions that resources are allowed.
The warning was clarified in PHP 7.3.
Changed paths:
M tests/constants/constants.phpt
Diff:
diff --git a/tests/constants/constants.phpt b/tests/constants/constants.phpt
index b1fe1c4..5e6b66f 100644
--- a/tests/constants/constants.phpt
+++ b/tests/constants/constants.phpt
@@ -214,7 +214,7 @@ define COLORS succeeded
Notice: Array to string conversion in %s/constants/constants.php on line 16
; value is >Array<
-Warning: Constants may only evaluate to scalar values or arrays in %s/constants/constants.php on
line 13
+Warning: Constants may only evaluate to scalar values, arrays or resources in
%s/constants/constants.php on line 13
define MY_OBJECT failed; not defined
Warning: fopen(Testfile.txt): failed to open stream: No such file or directory in
%s/constants/constants.php on line 90