Skip to content

parsing error #1071

Closed
Closed
@staabm

Description

@staabm

running php bin/php-parse file.php on

file.php:

<?php

// lint >= 8.4

namespace AbstractFinalHook;

abstract class User
{
    final abstract public string $bar {
        get;
    }
}

leads to a Error beeing thrown. I think thats wrong

➜  PHP-Parser git:(master) ✗ php bin/php-parse file.php
====> File file.php:
Cannot use the final modifier on an abstract class member on line 9

recent related php-src bug: php/php-src#17916

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions