Closed
Description
php > try { $x = ast\parse_code('<?php class C { final final function foo($fff) {}}', 50); } catch (\Throwable $e) {print("Caught exception\n"); echo $e; }
Fatal error: Multiple final modifiers are not allowed in string code on line 1
This was observed in php 7.1.
Is there any way to make this into a catchable \Error
?
The fact that it's uncatchable may affect some applications
(Noticed when running this extension on the test phpt files in php-src)
Metadata
Metadata
Assignees
Labels
No labels