portable-utf8 icon indicating copy to clipboard operation
portable-utf8 copied to clipboard

Deprecated PHP 8.4.2

Open wilianmaique opened this issue 10 months ago • 2 comments

various Deprecated errors: several Deprecated errors, these are just a few, there are more...

Deprecated: voku\helper\UTF8::str_titleize(): Implicitly marking parameter $word_define_chars as nullable is deprecated, the explicit nullable type must be used instead in C:\laragon\www\xxxxx\vendor\voku\portable-utf8\src\voku\helper\UTF8.php on line 8704

Deprecated: voku\helper\UTF8::str_to_lines(): Implicitly marking parameter $remove_short_values as nullable is deprecated, the explicit nullable type must be used instead in C:\laragon\www\xxxxx\vendor\voku\portable-utf8\src\voku\helper\UTF8.php on line 9064

Deprecated: voku\helper\UTF8::str_to_words(): Implicitly marking parameter $remove_short_values as nullable is deprecated, the explicit nullable type must be used instead in C:\laragon\www\xxxxx\vendor\voku\portable-utf8\src\voku\helper\UTF8.php on line 9111

Deprecated: voku\helper\UTF8::str_upper_camelize(): Implicitly marking parameter $lang as nullable is deprecated, the explicit nullable type must be used instead in C:\laragon\www\xxxxx\vendor\voku\portable-utf8\src\voku\helper\UTF8.php on line 9352

Deprecated: voku\helper\UTF8::strcspn(): Implicitly marking parameter $length as nullable is deprecated, the explicit nullable type must be used instead in C:\laragon\www\xxxxx\vendor\voku\portable-utf8\src\voku\helper\UTF8.php on line 9515

Deprecated: voku\helper\UTF8::strip_tags(): Implicitly marking parameter $allowable_tags as nullable is deprecated, the explicit nullable type must be used instead in C:\laragon\www\xxxxx\vendor\voku\portable-utf8\src\voku\helper\UTF8.php on line 9652

Deprecated: voku\helper\UTF8::strspn(): Implicitly marking parameter $length as nullable is deprecated, the explicit nullable type must be used instead in C:\laragon\www\xxxxx\vendor\voku\portable-utf8\src\voku\helper\UTF8.php on line 11118

Deprecated: voku\helper\UTF8::strtocasefold(): Implicitly marking parameter $lang as nullable is deprecated, the explicit nullable type must be used instead in C:\laragon\www\xxxxx\vendor\voku\portable-utf8\src\voku\helper\UTF8.php on line 11348

Deprecated: voku\helper\UTF8::strtolower(): Implicitly marking parameter $lang as nullable is deprecated, the explicit nullable type must be used instead in C:\laragon\www\xxxxx\vendor\voku\portable-utf8\src\voku\helper\UTF8.php on line 11403

Deprecated: voku\helper\UTF8::strtoupper(): Implicitly marking parameter $lang as nullable is deprecated, the explicit nullable type must be used instead in C:\laragon\www\xxxxx\vendor\voku\portable-utf8\src\voku\helper\UTF8.php on line 11483

Deprecated: voku\helper\UTF8::substr(): Implicitly marking parameter $length as nullable is deprecated, the explicit nullable type must be used instead in C:\laragon\www\xxxxx\vendor\voku\portable-utf8\src\voku\helper\UTF8.php on line 11698

Deprecated: voku\helper\UTF8::substr_compare(): Implicitly marking parameter $length as nullable is deprecated, the explicit nullable type must be used instead in C:\laragon\www\xxxxx\vendor\voku\portable-utf8\src\voku\helper\UTF8.php on line 11868

Deprecated: voku\helper\UTF8::substr_count(): Implicitly marking parameter $length as nullable is deprecated, the explicit nullable type must be used instead in C:\laragon\www\xxxxx\vendor\voku\portable-utf8\src\voku\helper\UTF8.php on line 11926

Deprecated: voku\helper\UTF8::substr_count_in_byte(): Implicitly marking parameter $length as nullable is deprecated, the explicit nullable type must be used instead in C:\laragon\www\xxxxx\vendor\voku\portable-utf8\src\voku\helper\UTF8.php on line 12018

Deprecated: voku\helper\UTF8::substr_in_byte(): Implicitly marking parameter $length as nullable is deprecated, the explicit nullable type must be used instead in C:\laragon\www\xxxxx\vendor\voku\portable-utf8\src\voku\helper\UTF8.php on line 12172

Deprecated: voku\helper\UTF8::titlecase(): Implicitly marking parameter $lang as nullable is deprecated, the explicit nullable type must be used instead in C:\laragon\www\xxxxx\vendor\voku\portable-utf8\src\voku\helper\UTF8.php on line 12566

Deprecated: voku\helper\UTF8::trim(): Implicitly marking parameter $chars as nullable is deprecated, the explicit nullable type must be used instead in C:\laragon\www\xxxxx\vendor\voku\portable-utf8\src\voku\helper\UTF8.php on line 12984

Deprecated: voku\helper\UTF8::ucfirst(): Implicitly marking parameter $lang as nullable is deprecated, the explicit nullable type must be used instead in C:\laragon\www\xxxxx\vendor\voku\portable-utf8\src\voku\helper\UTF8.php on line 13030

Deprecated: voku\helper\UTF8::wordwrap_per_line(): Implicitly marking parameter $delimiter as nullable is deprecated, the explicit nullable type must be used instead in C:\laragon\www\xxxxx\vendor\voku\portable-utf8\src\voku\helper\UTF8.php on line 13496

Deprecated: voku\helper\UTF8::reduce_string_array(): Implicitly marking parameter $remove_short_values as nullable is deprecated, the explicit nullable type must be used instead in C:\laragon\www\xxxxx\vendor\voku\portable-utf8\src\voku\helper\UTF8.php on line 13827 

wilianmaique avatar Feb 01 '25 19:02 wilianmaique

You need to mark all the parameters with ?int, $string in th functions to explicitly set them to null as of 8.4.x

jnoorman avatar Feb 16 '25 08:02 jnoorman

You need to mark all the parameters with ?int, $string in th functions to explicitly set them to null as of 8.4.x

we know this, but the repository owner does not respond

wilianmaique avatar Feb 16 '25 17:02 wilianmaique

Any release planned with this?

tormit avatar Jul 04 '25 08:07 tormit

Any release planned with this?

Anankke avatar Jul 06 '25 02:07 Anankke

hi, it's resolved in master, but our packages use stable versions, so a tag would be great. Thanks for all the work.

terabytesoftw avatar Jul 14 '25 11:07 terabytesoftw

@voku Would you be able to publish a version including this fix? Thanks!

ollyollyollyltd avatar Aug 06 '25 09:08 ollyollyollyltd

@voku Thanks for your open-source contributions. However, we cannot upgrade several packages due to the deprecations. Could you release a new tag?

Petervw avatar Aug 07 '25 14:08 Petervw

A tag would be very nice 🙏 Thanks for all the hard work!

jan-dh avatar Aug 18 '25 18:08 jan-dh

Until a release is deployed, I am using this patch to fix the 8.4 issues. It is based on 48c36239a2792ebc999044ffab7935011a58009e and can be installed using cweagans/composer-patches

https://gist.github.com/ollyollyollyltd/1fe0a99ab262aff09b4ec17aa745b090

ollyollyollyltd avatar Aug 28 '25 08:08 ollyollyollyltd

@voku Is is possible for you to release a new tag based on these changes?

lavandongen avatar Sep 12 '25 10:09 lavandongen

There should be at least some response from owner @voku on this. What is the status or why the current master cannot be tagged?

tormit avatar Sep 12 '25 10:09 tormit

JFYI (+ to calm a little bit down): https://github.com/voku/portable-utf8/pull/221#issuecomment-2898537480 Thanks @voku (in advance) if he has time to make a new tag! KR


Edit: Thought … Maybe a PR, based on the patch/gist by @ollyollyollyltd , can/could speed-up the implementation(?).

sokai avatar Nov 02 '25 15:11 sokai

Until @voku finds some time and energy to tag a new version, you can use this version in your composer.json:

dev-master#c4b3774

That constraint binds the package to the master branch, but for security reasons, explicitly to the latest commit that includes the fixes.

BernhardK91 avatar Nov 14 '25 17:11 BernhardK91