Skip to content

Make ReflectionConstant non-finalΒ #19747

@kukulich

Description

@kukulich

Description

It's the same problem as #7520 and it's beautifully explained here: https://bugs.php.net/bug.php?id=81474

I must admit that we missed that ReflectionConstant was created in PHP 8.4.

The following code:

<?php

$rc = new ReflectionClass(ReflectionConstant::class);

var_dump($rc->isFinal());

Resulted in this output:

bool(true)

But I expected this output instead:

bool(false)

PHP Version

PHP 8.4

Operating System

No response

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions