Cannot use try without catch or finally¶
Description¶
Try command have catch and finally clauses. While both are optional, they can’t be omitted both at the same time.
Example¶
<?php
try {}
?>
Solutions¶
Add a catch clause.
Add a finally clause.