[PR #26] [MERGED] Fix reading docblocks for classes containing anonymous classes #36

Closed
opened 2026-01-24 11:24:54 +01:00 by admin · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/doctrine/reflection/pull/26
Author: @sspat
Created: 12/3/2019
Status: Merged
Merged: 12/3/2019
Merged by: @alcaeus

Base: masterHead: fix_annotation_parsing_for_classes_creating_anon_classes


📝 Commits (1)

📊 Changes

3 files changed (+23 additions, -1 deletions)

View changed files

📝 lib/Doctrine/Common/Reflection/StaticReflectionParser.php (+2 -1)
tests/Doctrine/Tests/Common/Reflection/AnnotationClassWithAnonymousClass.php (+19 -0)
📝 tests/Doctrine/Tests/Common/Reflection/StaticReflectionParserTest.php (+2 -0)

📄 Description

Fixes #19.
The tests were taken from https://github.com/doctrine/reflection/pull/20 by @xopoc14

I'm not shure that it's correct to copy the code from another PR, if there is a better way doing a fix based on a test from another PR - please guide me how to do it.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/doctrine/reflection/pull/26 **Author:** [@sspat](https://github.com/sspat) **Created:** 12/3/2019 **Status:** ✅ Merged **Merged:** 12/3/2019 **Merged by:** [@alcaeus](https://github.com/alcaeus) **Base:** `master` ← **Head:** `fix_annotation_parsing_for_classes_creating_anon_classes` --- ### 📝 Commits (1) - [`512a4f0`](https://github.com/doctrine/reflection/commit/512a4f0ec19d2bb85020cdb768b351261f2f23fd) Fix for issue #19 ### 📊 Changes **3 files changed** (+23 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `lib/Doctrine/Common/Reflection/StaticReflectionParser.php` (+2 -1) ➕ `tests/Doctrine/Tests/Common/Reflection/AnnotationClassWithAnonymousClass.php` (+19 -0) 📝 `tests/Doctrine/Tests/Common/Reflection/StaticReflectionParserTest.php` (+2 -0) </details> ### 📄 Description Fixes #19. The tests were taken from https://github.com/doctrine/reflection/pull/20 by @xopoc14 I'm not shure that it's correct to copy the code from another PR, if there is a better way doing a fix based on a test from another PR - please guide me how to do it. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
admin added the pull-request label 2026-01-24 11:24:54 +01:00
admin closed this issue 2026-01-24 11:24:54 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/reflection#36