Skip to content

Patch 5.3.1 broke api-platform ui #1793

@markom-werbeagentur

Description

@markom-werbeagentur

Since swagger-php 5.3.1 the api docs UI in api-platform got broken. Context.__serialize() causes this issue:

Uncaught PHP Exception Error: "Cannot access property starting with "\0"" at /path-to-project/vendor/symfony/var-exporter/Internal/Hydrator.php line 66

Version 5.3.0 worked fine, removing Context.__serialize() fixes the issue - wich is for sure not the intended fix, however there should be any issue in.

Environment:
php 8.2
Symfony 5.4
api-platform 2.7

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions