Code Inspection: '__toString' may throw an exception

Last modified: 16 May 2022

Configure inspections: Settings / Preferences | Editor | Inspections

Show intention actions: Alt+Enter

Reports the usages of __toString that may throw an exception, which is not allowed for PHP language level lower than 7.4.