DDC-77: PHP Warning when trying to skip non-existaint Annotations #95

Open
opened 2026-01-22 12:26:49 +01:00 by admin · 0 comments
Owner

Originally created by @doctrinebot on GitHub (Oct 30, 2009).

Jira issue originally created by user @beberlei:

If you have a docblock that ends with an annotation, for example:

/****
 * @return
 */

it throws a PHP warnings, because is_subclass_of() requires the $class to be existent.

Fix: Add class_exists($name) before.

Originally created by @doctrinebot on GitHub (Oct 30, 2009). Jira issue originally created by user @beberlei: If you have a docblock that ends with an annotation, for example: ``` /**** * @return */ ``` it throws a PHP warnings, because is_subclass_of() requires the $class to be existent. Fix: Add class_exists($name) before.
admin added the Bug label 2026-01-22 12:26:49 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#95