[php-src] PR #20902: ext/reflection: Add ReflectionConstant::inNamespace() method

From: Date: Sun, 11 Jan 2026 01:27:31 +0000
Subject: [php-src] PR #20902: ext/reflection: Add ReflectionConstant::inNamespace() method
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-34509@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/20902 Author: khaledalam ## Description Related to #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: - [x] getShortName() - returns the short name without namespace - [x] getNamespaceName() - returns the namespace name But was missing: - [ ] inNamespace() - returns boolean indicating if in a namespace

« previous php.git-pulls (#34509) next »