-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
[3.4] Fix return types declarations #33332
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
Changes from 1 commit
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
ef5ead0
[HttpFoundation] fix return type declarations
nicolas-grekas c1b7118
[Routing] Fix return type declarations
derrabus e0d79f7
[Security] Fix return type declarations
derrabus 05fe553
[HttpKernel] Fix return type declarations
nicolas-grekas 9c63be4
[Config] fix return type declarations
derrabus ca1fad4
[DI] fix return type declarations
derrabus 70feaa4
[Translation] fix return type declarations
derrabus 5072cfc
[Serializer] fix return type declarations
derrabus 5f9aaa7
[Cache] fix return type declarations
nicolas-grekas 28646c7
[Workflow] fix return type declarations
nicolas-grekas 6af0c80
[Process] fix return type declarations
nicolas-grekas 2ea98bb
[Validator] fix return type declarations
nicolas-grekas 2b8ef1d
[DomCrawler] fix return type declarations
nicolas-grekas 73f504c
[Templating] fix return type declarations
nicolas-grekas 523e9b9
[Intl] fix return type declarations
nicolas-grekas a32a713
[Console] fix return type declarations
nicolas-grekas 8706f18
[Form] fix return type declarations
nicolas-grekas 5f3b4b6
[Bridge/Doctrine] fix return type declarations
nicolas-grekas 07405e2
[PropertyInfo] fix return type declarations
nicolas-grekas c1d7a88
[BrowserKit] fix return type declarations
nicolas-grekas 2ceb453
[SecurityBundle] fix return type declarations
nicolas-grekas File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
[BrowserKit] fix return type declarations
- Loading branch information
commit c1d7a88b575a0acb9af569d4c85002d274f04630
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we want this? At first sight i dont see any test relying on it...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
on branch 4.4 at least:
Failed asserting that '' is false.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hm, i would patch 4.4 instead. It's a type violation IMHO.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
or a BC break :)
REQUEST_TIME_FLOAT isn't a string either so that forcing a string here wouldn't be good (for the return type I mean)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
float values can be represented as string :) for now i'd rely on the fact we dont use strict types: https://3v4l.org/3lAC8
getting server parameters as strings seems really valueable IMHO.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
float to string to float isn't always accurate, we shouldn't take the risk
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fair enough.. maybe server params arent strings per se 😅