wp-cli / php-cli-tools

A collection of tools to help with PHP command line utilities
MIT License
671 stars 117 forks source link

PHP 8.2: strwidth() & Colors::pad()/decolorize() should always work with a string #163

Closed slaFFik closed 11 months ago

slaFFik commented 11 months ago

Fix #162

swissspidy commented 11 months ago

Only had a quick glance, but can‘t we fix the calling code instead?

slaFFik commented 11 months ago

I think we can, but it's like a dozen places all over the place :) Also, those methods are public static, so can (and are) be used by someone else - and the fix of the calling code won't do anything for them.

So I do believe these methods should be adjusted (perhaps together with the calling code as well).