Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[Config] Add parameter types#41575
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Uh oh!
There was an error while loading.Please reload this page.
| * @param bool|string $ignoreErrors Whether errors should be ignored; pass "not_found" to ignore only when the loaded resource is not found | ||
| */ | ||
| publicfunctionimport($resource,string$type =null,$ignoreErrors =false,string$sourceResource =null,$exclude =null) | ||
| publicfunctionimport(mixed$resource,string$type =null,bool |string$ignoreErrors =false,string$sourceResource =null,$exclude =null) |
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.
I've omitted the type declaration for$exclude in order to maintain compatibility with Config 5.4. Shall I keep it that way or shall I bump?
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.
let's keep compat
carsonbot commentedJun 7, 2021
Hey! I think@jschaedl has recently worked with this code. Maybe they can help review this? Cheers! Carsonbot |
This PR was merged into the 4.4 branch.Discussion----------[Config] Backport type declarations| Q | A| ------------- | ---| Branch? | 4.4| Bug fix? | no| New feature? | no| Deprecations? | no| Tickets | N/A| License | MIT| Doc PR | N/AThis PR backports type declarations from#41575 where it's safe to do so.Commits-------46e18af [Config] Backport type declarations
5aa99b3 toa9e75c2Compare9fada46 to4754580CompareUh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
35eec33 to7ec2142CompareUh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
src/Symfony/Component/Config/Tests/Definition/NormalizationTest.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
Signed-off-by: Alexander M. Turek <me@derrabus.de>
nicolas-grekas commentedJun 29, 2021
Thank you@derrabus. |
Uh oh!
There was an error while loading.Please reload this page.
This PR adds parameter types to all methods of the Config component.