Skip to content

Conversation

@khaledalam
Copy link

@khaledalam khaledalam commented Jan 11, 2026

Description

Fix #19557

This PR adds the missing inNamespace() method to ReflectionConstant to achieve full parity with ReflectionClass and ReflectionFunctionAbstract for API consistency.

Background

ReflectionConstant already has:

  • getShortName() - returns the short name without namespace
  • getNamespaceName() - returns the namespace name

But was missing:

  • inNamespace() - returns boolean indicating if in a namespace

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ext/reflection: Add missing ReflectionConstant::inNamespace() method

1 participant