silverstripe / sspak

Tool for managing bundles of db/assets from Silverstripe environments
http://silverstripe.github.io/sspak/
BSD 3-Clause "New" or "Revised" License
47 stars 34 forks source link

PHP Deprecated notice: strtolower(): Passing null #93

Closed n8-dev closed 1 year ago

n8-dev commented 1 year ago

Simply running sspak you'll see this at the top if you're on php8.1+

PHP Deprecated:  strtolower(): Passing null to parameter #1 ($string) of type string is deprecated in phar:///usr/local/bin/sspak/bin/sspak on line 37

Deprecated: strtolower(): Passing null to parameter #1 ($string) of type string is deprecated in phar:///usr/local/bin/sspak/bin/sspak on line 37
GuySartorelli commented 1 year ago

php8.1<

Was the < a typo or did you mean less than PHP 8.1?

n8-dev commented 1 year ago

Sorry @GuySartorelli

Typo. 8.1 and up

n8-dev commented 1 year ago

Happy to make the PR @GuySartorelli

GuySartorelli commented 1 year ago

Sorry, I've been very distracted with CMS 5 stuff. Yes, please raise a PR if you're still keen, that'd be great.