[php-src] PR #13889: ext/reflection: add getLine / getFileName / isUserDefined to reflection attribute

From: Date: Fri, 05 Apr 2024 12:21:55 +0000
Subject: [php-src] PR #13889: ext/reflection: add getLine / getFileName / isUserDefined to reflection attribute
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-25632@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/13889 Author: joelwurtz This add those methods to the ReflectionAttribute ```php class ReflectionAttribute implements Reflector { //... public function isUserDefined(): bool {} public function getFileName(): string|false {} public function getLine(): int {} } ``` Those method can be really useful when a library want to throw an exception during the analysis of an attribute so the library can show to the user which attribute specifically induce this exception (like: "Attribute at line %d in file %d cause a bad configuration") Does this need a RFC ?

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