1--TEST--
2Multiple final multipliers should generate CompileError, not a fatal error
3--SKIPIF--
4<?php if (PHP_VERSION_ID < 70300) die('skip Requires PHP 7.3+'); ?>
5--FILE--
6<?php
7
8$code = <<<'PHP'
9<?php class C {
10    final final function foo($fff) {}
11}
12PHP;
13
14try {
15    ast\parse_code($code, $version=70);
16} catch (CompileError $e) {
17    echo $e->getMessage(), "\n";
18}
19?>
20--EXPECT--
21Multiple final modifiers are not allowed
22