Skip to content

Global constants are FQCNed still #1135

@kkmuffme

Description

@kkmuffme

Bug report

Question Answer
PHP-Scoper version 0.18.18 (phar)
PHP version 8.4
Platform with version unix

Somewhere between 0.18.11 and the latest version, scoper stopped FQCNing all global functions (array_merge,...) - from the changelog I assume they're taken from https://github.com/JetBrains/phpstorm-stubs - which contains all these constants too.

However this still happens for constants (e.g. \true, \false, \E_USER_WARNING) even though they exist there

Additionally, adding these constants in 'exclude-constants' does nothing/they still get changed.

Is there a technical reason for that or is this an oversight?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions