Fix deprecation warnings in tests

This commit is contained in:
Ilija Tovilo 2024-10-14 14:27:18 +02:00
parent 94bd6ca080
commit 817d21ecc4
No known key found for this signature in database
GPG Key ID: 5050C66BFCD1015A
2 changed files with 6 additions and 6 deletions

View File

@ -3,9 +3,9 @@ GH-16293: Exception in assert() callback with bail enabled
--FILE--
<?php
assert_options(ASSERT_EXCEPTION, 0);
assert_options(ASSERT_BAIL, 1);
assert_options(ASSERT_CALLBACK, 'f1');
@assert_options(ASSERT_EXCEPTION, 0);
@assert_options(ASSERT_BAIL, 1);
@assert_options(ASSERT_CALLBACK, 'f1');
assert(false);
?>

View File

@ -3,9 +3,9 @@ GH-16293: Exception in assert() callback with bail enabled
--FILE--
<?php
assert_options(ASSERT_EXCEPTION, 0);
assert_options(ASSERT_BAIL, 1);
assert_options(ASSERT_CALLBACK, function () {
@assert_options(ASSERT_EXCEPTION, 0);
@assert_options(ASSERT_BAIL, 1);
@assert_options(ASSERT_CALLBACK, function () {
throw new Exception('Boo');
});
assert(false);