Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

XML config points to invalid URLs for schema, messing up PHPStorm #18275

Closed
@dkarlovi

Description

@dkarlovi

https://symfony.com/doc/current/serializer.html

Points tohttps://symfony.com/schema/dic/serializer-mapping/serializer-mapping-1.0.xsd which currently doesn't work (404).

<?xml version="1.0" encoding="UTF-8" ?><serializerxmlns="http://symfony.com/schema/dic/serializer-mapping"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:schemaLocation="http://symfony.com/schema/dic/serializer-mapping        https://symfony.com/schema/dic/serializer-mapping/serializer-mapping-1.0.xsd">    <classname="App\Model\Person">        <attributename="createdAt">            <context>                <entryname="datetime_format">Y-m-d</entry>            </context>        </attribute>    </class></serializer>

The URLs are not versioned so using them like this is probably suboptimal,@stof also pointed out in Slack this URL is not used at all (by Symfony) so it could also be pointed to the local filesystem.

options:

1.version the URLs, upload missing files, update the docs to use the new URLs
2. fix the docs to point to local file system instead

Optionally, XML config examples in docs should be validated against the schema so we know they're correct, here's an example from the same URL which seems invalid:

<!-- config/packages/framework.xml--><framework:config><!-- ...-->    <framework:serializer><!-- needs framework: prefix?-->        <default-contextenable-max-depth="true"yaml-indentation="2"/>    </framework:serializer></framework:config>

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp