Skip to content

Commit 5c0f248

Browse files
committed
Add closing PHP tags to #[\Deprecated] tests
1 parent 4709c9d commit 5c0f248

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

Zend/tests/attributes/deprecated_001.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ $cls->test();
3333
$cls->test2();
3434

3535
call_user_func([$cls, "test"]);
36+
37+
?>
3638
--EXPECTF--
3739
Deprecated: Function test() is deprecated in %s
3840

Zend/tests/attributes/deprecated_002.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ var_dump($reflection->getAttributes()[0]->newInstance());
1717
$reflection = new ReflectionFunction('test2');
1818
var_dump($reflection->getAttributes()[0]->newInstance());
1919

20+
?>
2021
--EXPECTF--
2122
object(Deprecated)#3 (1) {
2223
["message"]=>

Zend/tests/attributes/deprecated_003.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@
77
function test() {
88
}
99

10-
10+
?>
1111
--EXPECTF--
1212
Fatal error: Deprecated::__construct: Argument #1 ($message) must be of type string, int given in %s

0 commit comments

Comments
 (0)