Skip to content

[Yaml] Improve the deprecation warnings for octal numbers to suggest migrating #45085

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 26, 2022

Conversation

stof
Copy link
Member

@stof stof commented Jan 20, 2022

Q A
Branch? 5.4
Bug fix? no
New feature? no
Deprecations? no
Tickets
License MIT
Doc PR n/a

The existing deprecation messages made some people think that octal numbers are totally unsupported in newer Symfony versions (see thephpleague/flysystem-bundle#81). This updates the deprecation message to provide the alternative when using an octal number is intended, to migrate to the Yaml 1.2 way of representing them.

@stof stof requested a review from xabbuh as a code owner January 20, 2022 10:13
@carsonbot carsonbot added this to the 5.4 milestone Jan 20, 2022
@stof
Copy link
Member Author

stof commented Jan 20, 2022

for now, I provide the full replacement in the deprecation message. this might have a negative effect on the deduplication of deprecations. An alternative could be to mention only the 0o prefix instead.

@stof stof force-pushed the improve_yaml_deprecation branch from 8db4f1b to 6eca1a4 Compare January 20, 2022 12:46
@carsonbot
Copy link

Hey!

I think @alexandre-daubois has recently worked with this code. Maybe they can help review this?

Cheers!

Carsonbot

@nicolas-grekas nicolas-grekas force-pushed the improve_yaml_deprecation branch from 6eca1a4 to 4153af6 Compare January 26, 2022 16:32
@nicolas-grekas
Copy link
Member

Thank you @stof.

@nicolas-grekas nicolas-grekas merged commit 34a0893 into symfony:5.4 Jan 26, 2022
@stof stof deleted the improve_yaml_deprecation branch November 8, 2022 15:17
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