Skip to content

Merge release 2.0.3 into 2.1.x - #223

Merged
DanielBadura merged 4 commits into
2.1.xfrom
2.0.x-merge-up-into-2.1.x_9BzlNKXP
Oct 9, 2026
Merged

DanielBadura merged 4 commits into
2.1.xfrom
2.0.x-merge-up-into-2.1.x_9BzlNKXP

Conversation

@github-actions

@github-actions github-actions Bot commented Oct 9, 2026

Copy link
Copy Markdown

Release Notes for 2.0.3

2.0.x bugfix release (patch)

2.0.3

The PSR-6 and PSR-16 metadata factories used the class name as cache key.
Class names contain a backslash, which is a reserved character in PSR-6 and
PSR-16, so the factories failed with any compliant cache like symfony/cache.
The class name is now hashed and prefixed, and a cache hit is only accepted
if the cached metadata really belongs to the requested class.

Unserialized metadata also missed some values, so metadata loaded from a
cache failed as soon as they were accessed: the class name of the class
metadata, and the property name, type and personal data fallback callable
of the property metadata.
Fix cache keys of the metadata factories
…-2.0.x_rnicmz5Z

# Conflicts:
#	src/Metadata/ClassMetadata.php
#	src/Metadata/PropertyMetadata.php
#	tests/Unit/Metadata/ClassMetadataTest.php
@DanielBadura
DanielBadura merged commit 681a797 into 2.1.x Oct 9, 2026
14 of 15 checks passed
@DanielBadura
DanielBadura deleted the 2.0.x-merge-up-into-2.1.x_9BzlNKXP branch October 9, 2026 12:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant