Skip to content
This repository was archived by the owner on Jul 25, 2022. It is now read-only.

PHP 8.1 deprecation warnings #35

Open
distantnative opened this issue Nov 30, 2021 · 0 comments
Open

PHP 8.1 deprecation warnings #35

distantnative opened this issue Nov 30, 2021 · 0 comments

Comments

@distantnative
Copy link

PHP 8.1 throws the following deprecation warnings:

PHP Deprecated: Implicit conversion from float 0.7836734693877551 to int loses precision in /vendor/true/punycode/src/Punycode.php on line 151
PHP Deprecated: Implicit conversion from float 27.428571428571427 to int loses precision in /vendor/true/punycode/src/Punycode.php on line 145

live627 added a commit to live627/SMF2.1 that referenced this issue Feb 14, 2022
Improve tgz file handling

ac004c1
add typehints
pass the correct type to html_entity_decode()
validate_iri()  must default `$flags` to `0`


k,lk
Avoid passing `null` to date functions
Explicitly convert `float` to `int` to stop deprecation warnings

true/php-punycode#35
pass default limit to preg_split()
pass connection object to pg_version()

SimpleMachines#7190
avoid passing `null` to strlen() in iri functions


avoid passing `null` to strtolower() in fixTag()
Avoids passing null to some preg_* functions

Fixes SimpleMachines#7212

Signed-off-by: Jon Stovell <[email protected]>
TimWolla added a commit to WoltLab/WCF that referenced this issue Jun 8, 2022
The true/punycode library appears to be no longer maintained and is not PHP 8.1
deprecation clean: true/php-punycode#35

Suppress the deprecation warning for now. The library should be replaced in a
future version.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant