-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Config] finish adding parameter types #32286
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
Conversation
1c8f52a
to
cd07c1a
Compare
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.
Your changes make certain other components in version 5 incompatible with Config 4.4. Im not sure if we should break that compatibility just for adding type-hints.
src/Symfony/Component/DependencyInjection/Config/ContainerParametersResourceChecker.php
Show resolved
Hide resolved
cd07c1a
to
1905db9
Compare
1905db9
to
2ca8354
Compare
Fixed dependencies. This will happen anyway eventually with all the types added in master. |
…ion) This PR was merged into the 4.3 branch. Discussion ---------- fix invalid call to PhpFileLoader::load() in a test | Q | A | ------------- | --- | Branch? | 4.3 | Bug fix? | yno | New feature? | yno <!-- please update src/**/CHANGELOG.md files --> | BC breaks? | no <!-- see https://symfony.com/bc --> | Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files --> | Tests pass? | yes <!-- please add some, will be required by reviewers --> | Fixed tickets | | License | MIT | Doc PR | This was calling `\Symfony\Component\DependencyInjection\Loader\PhpFileLoader::load($resource, string $type = null)` with the container object as $type which I found in #32286 Commits ------- 8930335 fix invalid call to PhpFileLoader::load() in a test
@@ -417,6 +411,10 @@ protected function createNode() | |||
} | |||
|
|||
if ($this->default) { | |||
if (!\is_array($this->defaultValue)) { |
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.
only for 5? missing deprecation in 4.4?
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 just moved the check from PrototypedArrayNode.php::setDefaultValue
here so the typhint in setDefaultValue
can be added. The $this->defaultValue
comes from a generic setter that we cannot use types for. The behavior is the same, just cleaner code using types when possible.
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'm good with the bump of lowest versions. Please move all updates to docblocks to a PR on a lower branch.
I can do it for the single |
This PR was merged into the 4.4 branch. Discussion ---------- Fix phpdocs | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | no | New feature? | no <!-- please update src/**/CHANGELOG.md files --> | BC breaks? | no <!-- see https://symfony.com/bc --> | Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files --> | Tests pass? | yes <!-- please add some, will be required by reviewers --> | Fixed tickets | n/a | License | MIT | Doc PR | n/a Backported from #32286 <!-- Replace this notice by a short README for your feature/bugfix. This will help people understand your PR and can be used as a start for the documentation. Additionally (see https://symfony.com/roadmap): - Bug fixes must be submitted against the lowest maintained branch where they apply (lowest branches are regularly merged to upper ones so they get the fixes too). - Features and deprecations must be submitted against branch 4.4. - Legacy code removals go to the master branch. --> Commits ------- 4acddef fixed phpdocs
Thank you @Tobion. |
This PR was merged into the 5.0-dev branch. Discussion ---------- [Config] finish adding parameter types | Q | A | ------------- | --- | Branch? | master | Bug fix? | yno | New feature? | no <!-- please update src/**/CHANGELOG.md files --> | BC breaks? | no <!-- see https://symfony.com/bc --> | Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files --> | Tests pass? | yes <!-- please add some, will be required by reviewers --> | Fixed tickets | #32179 | License | MIT | Doc PR | symfony/symfony-docs#... <!-- required for new features --> Completes some missing things in #32201 Commits ------- 2ca8354 [Config] finish adding parameter types
Completes some missing things in #32201