Skip to content
This repository has been archived by the owner on Aug 1, 2024. It is now read-only.

Remove deprecation notice in PHP 8.1 #357

Merged
merged 1 commit into from
Jul 28, 2022
Merged

Remove deprecation notice in PHP 8.1 #357

merged 1 commit into from
Jul 28, 2022

Conversation

spackmat
Copy link
Contributor

@spackmat spackmat commented Jan 5, 2022

Adds a TreeBuilder return type to Lexik\Bundle\FormFilterBundle\DependencyInjection\Configuration::getConfigTreeBuilder() to remove a deprecation notice triggered by the missing return type in PHP 8.1. That does not conflict with older PHP versions, since at least PHP 7.1 is required in composer.json for the bundle.

Also tidies up the "BC layer for symfony/config 4.1 and older" from that method as in composer.json at least Symfony 4.4 is required for the bundle and the BC layer is not needed anymore.

Adds a `TreeBuilder` return type to `Lexik\Bundle\FormFilterBundle\DependencyInjection\Configuration::getConfigTreeBuilder()` to remove a deprecation notice triggered by the missing return type in PHP 8.1. That does not conflict with older PHP versions, since at least PHP 7.1 is required in composer.json for the bundle.

Also tidies up the "BC layer for symfony/config 4.1 and older" from that method as in composer.json at least Symfony 4.4 is required for the bundle and the BC layer is not needed anymore.
@spackmat
Copy link
Contributor Author

spackmat commented Jan 5, 2022

Failing tests for PHP 8.1/Symfony 6.1.*@dev seems to be not related to my changes:

Symfony\Component\DependencyInjection\Exception\ParameterNotFoundException: The parameter "debug.file_link_format" has a dependency on a non-existent parameter "env(default::SYMFONY_IDE)".

@spackmat
Copy link
Contributor Author

spackmat commented May 6, 2022

Hey, any news on this? Would be nice to get that fixed, from my point of view my proposed changes don't have any side effects.

@bmupex
Copy link

bmupex commented Jun 29, 2022

In the interest of keeping this PR active, I'm keen to see this deprecation fixed also 👍

@gilles-g gilles-g self-assigned this Jun 30, 2022
@spackmat
Copy link
Contributor Author

@Spike31 is there anything missing here? Can I provide something?

@gilles-g gilles-g merged commit 7588970 into lexik:master Jul 28, 2022
@gilles-g
Copy link
Member

Thx @spackmat for the delay, tag created

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants