Skip to content

Conversation

@xabbuh
Copy link
Member

@xabbuh xabbuh commented Feb 9, 2024

Q A
Branch? 6.4
Bug fix? yes
New feature? no
Deprecations? no
Issues see the test failures after #53876
License MIT

namespace Symfony\Component\DependencyInjection\Tests\Fixtures;

readonly class ReadonlyTest
readonly class ReadOnlyClass
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

class renamed so that it is not being eagerly loaded by PHPUnit

@nicolas-grekas
Copy link
Member

But readonly classes are supported since 8.2, no?

@xabbuh
Copy link
Member Author

xabbuh commented Feb 9, 2024

They are, but the VarExporter component doesn't on 8.2 (probably because of https://wiki.php.net/rfc/readonly_amendments, see #49282).

@xabbuh xabbuh changed the title [DependencyInjection] require PHP 8.3 to dump lazy proxies for readonly classes [DependencyInjection] fix tests Feb 9, 2024
@nicolas-grekas
Copy link
Member

Thank you @xabbuh.

@nicolas-grekas nicolas-grekas merged commit b449929 into symfony:6.4 Feb 9, 2024
@xabbuh xabbuh deleted the pr-53876 branch February 9, 2024 09:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants