Skip to content

Commit

Permalink
Deprecate static reflection service
Browse files Browse the repository at this point in the history
It is unused, and forces `ReflectionService::getClass()` to have a
nullable return type.
  • Loading branch information
greg0ire committed Jun 22, 2024
1 parent 4350cca commit 1627059
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
7 changes: 7 additions & 0 deletions UPGRADE.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ awareness about deprecated code.
- Use of our low-overhead runtime deprecation API, details:
https://github.com/doctrine/deprecations/

# Upgrade to 3.4

## Deprecated `StaticReflectionService`

The class `Doctrine\Persistence\Mapping\StaticReflectionService` is deprecated
without replacement.

# Upgrade to 3.3

## Added method `ObjectManager::isUninitializedObject()`
Expand Down
2 changes: 2 additions & 0 deletions src/Persistence/Mapping/StaticReflectionService.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@

/**
* PHP Runtime Reflection Service.
*
* @deprecated No replacement planned
*/
class StaticReflectionService implements ReflectionService
{
Expand Down

0 comments on commit 1627059

Please sign in to comment.