@@ -23,7 +23,7 @@ $regexesToTest = [
2323 ],
2424 [
2525 '@\b\w{1,2}\b@ ' => $ callback ,
26- '~\A.~ ' => $ trampolineThrow ,
26+ '~\A.~ ' => $ callbackThrow ,
2727 ],
2828 [
2929 '@\b\w{1,2}\b@ ' => $ callback ,
@@ -58,7 +58,6 @@ foreach ($regexesToTest as $regex) {
5858
5959?>
6060--EXPECTF--
61- Warning: Undefined variable $trampolineThrow in %s on line %d
6261Trampoline for trampoline
6362Trampoline for trampoline
6463Trampoline for trampoline
@@ -91,10 +90,12 @@ Trampoline for trampoline
9190Trampoline for trampoline
9291
9392Warning: Array to string conversion in %s on line %d
94- TypeError: preg_replace_callback_array(): Argument #1 ($pattern) must contain only valid callbacks
93+ Trampoline for trampolineThrow
94+ Exception: boo
9595Trampoline for trampoline
9696Trampoline for trampoline
97- TypeError: preg_replace_callback_array(): Argument #1 ($pattern) must contain only valid callbacks
97+ Trampoline for trampolineThrow
98+ Exception: boo
9899Error: Object of class stdClass could not be converted to string
99100TypeError: preg_replace_callback_array(): Argument #2 ($subject) must be of type array|string, stdClass given
100101Trampoline for trampoline
0 commit comments