File tree Expand file tree Collapse file tree 3 files changed +4
-1
lines changed Expand file tree Collapse file tree 3 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ pre-commit:
22 parallel : true
33 jobs :
44 - name : fmt
5- run : rustfmt {staged_files}
5+ run : rustfmt --edition 2021 {staged_files}
66 glob : " *.rs"
77 stage_fixed : true
88 - name : clippy
Original file line number Diff line number Diff line change @@ -287,6 +287,8 @@ mod tests {
287287 #[ test]
288288 fn test_eval_bailout ( ) {
289289 Embed :: run ( || {
290+ // TODO: For PHP 8.5, this needs to be replaced, as `E_USER_ERROR` is deprecated.
291+ // Currently, this seems to still be the best way to trigger a bailout.
290292 let result = Embed :: eval ( "trigger_error(\" Fatal error\" , E_USER_ERROR);" ) ;
291293
292294 assert ! ( result. is_err( ) ) ;
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