laminas / laminas-i18n

Provide translations for your application, and filter and validate internationalized values
https://docs.laminas.dev/laminas-i18n/
BSD 3-Clause "New" or "Revised" License
50 stars 29 forks source link

Fixed: handling non-scalars in NumberParse filter #106

Closed fabiang closed 1 year ago

fabiang commented 1 year ago

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 commented 1 year ago

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! 👍🏻

fabiang commented 1 year ago

Rebased to 2.23.x.

gsteel commented 1 year ago

Thanks @fabiang

fabiang commented 1 year ago

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