File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -287,7 +287,7 @@ mod tests {
287287 #[ test]
288288 fn test_eval_bailout ( ) {
289289 Embed :: run ( || {
290- let result = Embed :: eval ( "trigger_error(\" Fatal error\" , E_USER_ERROR );" ) ;
290+ let result = Embed :: eval ( "trigger_error(\" Fatal error\" , E_ERROR );" ) ;
291291
292292 assert ! ( result. is_err( ) ) ;
293293 assert ! ( result. unwrap_err( ) . is_bailout( ) ) ;
Original file line number Diff line number Diff line change @@ -308,6 +308,7 @@ bitflags! {
308308 /// Compile warning
309309 const CompileWarning = E_COMPILE_WARNING ;
310310 /// User error
311+ #[ cfg_attr( php84, deprecated = "`E_USER_ERROR` is deprecated since PHP 8.4. Throw an exception instead." ) ]
311312 const UserError = E_USER_ERROR ;
312313 /// User warning
313314 const UserWarning = E_USER_WARNING ;
You can’t perform that action at this time.
0 commit comments