pantheon-systems / terminus-build-tools-plugin

Manage multidev environments for a Pantheon site using a GitHub PR workflow.
82 stars 68 forks source link

Fix deprecated trim() messages when using PHP 8.1 #458

Closed vinmassaro closed 1 year ago

vinmassaro commented 1 year ago

Running build:project:create using PHP 8.1, shows deprecated messages like:

PHP Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /Users/vincentmassaro/.terminus/terminus-dependencies-4f7bf5e1bb/vendor/pantheon-systems/terminus-build-tools-plugin/src/Credentials/CredentialManager.php on line 128

This commit fixes these instances of trim() in src/Credentials/CredentialManager.php so it doesn't receive a null value. Thanks.

greg-1-anderson commented 1 year ago

Thanks!