# Invalid YAML in “Registering Services Without Autowiring” examples The documentation contains invalid YAML in the following pages: * [state-processors.md – Registering Services Without Autowiring (Symfony variant only)](https://github.com/api-platform/docs/blob/4.2/core/state-processors.md#registering-services-without-autowiring-only-for-the-symfony-variant) * [state-providers.md – Registering Services Without Autowiring (Symfony variant only)](https://github.com/api-platform/docs/blob/4.2/core/state-providers.md#registering-services-without-autowiring-only-for-the-symfony-variant) The examples currently include a `~` after the service class, which makes the YAML invalid: ```yaml services: # ... App\State\BlogPostProvider: ~ tags: [ 'api_platform.state_provider' ] ``` ✅ Correct version: ```yaml services: # ... App\State\BlogPostProvider: tags: [ 'api_platform.state_provider' ] ``` This fix should be applied to both pages to prevent confusion and ensure valid YAML examples.