Skip to content
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

[DependencyInjection] Cast tag attribute value to string #44639

Merged
merged 1 commit into from Dec 17, 2021

Conversation

ruudk
Copy link
Contributor

@ruudk ruudk commented Dec 15, 2021

Q A
Branch? 4.4
Bug fix? yes
New feature? no
Deprecations? no
Tickets
License MIT
Doc PR
DOMElement::setAttribute(): Passing null to parameter #2 ($value) of type string is deprecated

This happens when a tag value is null on PHP 8.1.

@carsonbot carsonbot added this to the 4.4 milestone Dec 15, 2021
@carsonbot carsonbot changed the title [DependencyInjection][PHP 8.1] Cast tag value to string to fix: DOMElement::setAttribute(): Passing null to parameter #2 ($value) of type string is deprecated [DependencyInjection] [PHP 8.1] Cast tag value to string to fix: DOMElement::setAttribute(): Passing null to parameter #2 ($value) of type string is deprecated Dec 15, 2021
@ruudk ruudk force-pushed the set-attribute-nullable-php-81 branch from 59c0a3d to 26e56fb Compare Dec 15, 2021
DOMElement::setAttribute(): Passing null to parameter symfony#2 ($value) of type string is deprecated

This happens when a tag value is `null` on PHP 8.1.
@ruudk ruudk force-pushed the set-attribute-nullable-php-81 branch from 26e56fb to 8fe5fce Compare Dec 15, 2021
@derrabus derrabus changed the title [DependencyInjection] [PHP 8.1] Cast tag value to string to fix: DOMElement::setAttribute(): Passing null to parameter #2 ($value) of type string is deprecated [DependencyInjection] Cast tag attribute value to string Dec 15, 2021
@derrabus derrabus mentioned this pull request Dec 15, 2021
137 tasks
fabpot
fabpot approved these changes Dec 17, 2021
@fabpot
Copy link
Member

fabpot commented Dec 17, 2021

Thank you @ruudk.

@fabpot fabpot merged commit f2cac74 into symfony:4.4 Dec 17, 2021
11 checks passed
@ruudk ruudk deleted the set-attribute-nullable-php-81 branch Dec 17, 2021
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants