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

Fixed: handling non-scalars in NumberParse filter #106

Merged
merged 1 commit into from
Oct 9, 2023

Conversation

fabiang
Copy link
Contributor

@fabiang fabiang commented Oct 9, 2023

filter() now returns $value as-is for non-scalar and boolean values, which fixes triggering a deprection warning since PHP 8.1.

Fix for issue #105

Q A
Documentation no
Bugfix yes
BC Break no
New Feature no
RFC no
QA no

Description

@froschdesign
Copy link
Member

For a bugfix please use the current release branch, which is 2.23.x:

More on this topic can be found in the contributing guidelines: "What branch to issue the pull request against?"

Thanks in advance! 👍🏻

@froschdesign froschdesign added the Bug Something isn't working label Oct 9, 2023
@froschdesign froschdesign linked an issue Oct 9, 2023 that may be closed by this pull request
@froschdesign froschdesign added this to the 2.23.1 milestone Oct 9, 2023
@fabiang fabiang force-pushed the fix-numberparse-deprecation branch from dc75ba3 to 5bbc11a Compare October 9, 2023 09:48
@fabiang fabiang changed the base branch from 2.24.x to 2.23.x October 9, 2023 09:49
filter() now returns $value as-is for non-scalar and boolean values, which fixes triggering a deprection warning since PHP 8.1.

Fix for issue laminas#105

Signed-off-by: Fabian Grutschus <github@lubyte.de>
@fabiang fabiang force-pushed the fix-numberparse-deprecation branch from 5bbc11a to 68d7b15 Compare October 9, 2023 09:53
@fabiang
Copy link
Contributor Author

fabiang commented Oct 9, 2023

Rebased to 2.23.x.

Copy link
Member

@gsteel gsteel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@gsteel gsteel self-assigned this Oct 9, 2023
@gsteel gsteel merged commit 970a277 into laminas:2.23.x Oct 9, 2023
9 checks passed
@gsteel
Copy link
Member

gsteel commented Oct 9, 2023

Thanks @fabiang

@fabiang
Copy link
Contributor Author

fabiang commented Oct 9, 2023

Oh thank you! I've tested this change in my current project and notices are gone.

@fabiang fabiang deleted the fix-numberparse-deprecation branch October 9, 2023 12:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Better handling of NULL values in Laminas\I18n\Filter\NumberParse
3 participants