Closed SaintFrag closed 2 hours ago
Describe the bug In a .php file, I have a try, catch, finally block. Intelephense flags the finally { as "syntax error, unexpected '{'".
To Reproduce
<?php try { // Something } catch (Exception $e) { // Error } finally { // Finally }
Expected behavior The code is valid and simply shouldn't throw a syntax error. Add in some logging feedback to see it runs just fine.
Platform and version Windows 10, VS 1.94.0 PHP Intelephense 1.12.6
I just realized I had not disabled PHP Language Features. That solved it.
Describe the bug In a .php file, I have a try, catch, finally block. Intelephense flags the finally { as "syntax error, unexpected '{'".
To Reproduce
Expected behavior The code is valid and simply shouldn't throw a syntax error. Add in some logging feedback to see it runs just fine.
Platform and version Windows 10, VS 1.94.0 PHP Intelephense 1.12.6