1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Fix deprecation warnings in tests

This commit is contained in:
Ilija Tovilo
2024-10-14 14:27:18 +02:00
parent 94bd6ca080
commit 817d21ecc4
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);