terminus icon indicating copy to clipboard operation
terminus copied to clipboard

PHP Deprecations

Open ChristopherMatthews opened this issue 4 years ago • 5 comments

Steps to reproduce the behavior

I have terminus 3.0.0-beta1 installed via composer on a Drupal 9.2.10 site running PHP 7.4

Running any terminus command results in the following notices:

PHP Deprecated:  Return type of Consolidation\AnnotatedCommand\AnnotationData::append($key, $value = '') should either be compatible with ArrayObject::append(mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /Users/matthews/terminus/vendor/consolidation/annotated-command/src/AnnotationData.php on line 34

Deprecated: Return type of Consolidation\AnnotatedCommand\AnnotationData::append($key, $value = '') should either be compatible with ArrayObject::append(mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /Users/matthews/terminus/vendor/consolidation/annotated-command/src/AnnotationData.php on line 34
PHP Deprecated:  str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /Users/matthews/terminus/vendor/consolidation/annotated-command/src/Parser/CommandInfo.php on line 383

Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /Users/matthews/terminus/vendor/consolidation/annotated-command/src/Parser/CommandInfo.php on line 383
PHP Deprecated:  str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /Users/matthews/terminus/vendor/consolidation/annotated-command/src/Parser/CommandInfo.php on line 383

Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /Users/matthews/terminus/vendor/consolidation/annotated-command/src/Parser/CommandInfo.php on line 383
PHP Deprecated:  str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /Users/matthews/terminus/vendor/consolidation/annotated-command/src/Parser/CommandInfo.php on line 383

Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /Users/matthews/terminus/vendor/consolidation/annotated-command/src/Parser/CommandInfo.php on line 383
PHP Deprecated:  str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /Users/matthews/terminus/vendor/consolidation/annotated-command/src/Parser/CommandInfo.php on line 383

Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /Users/matthews/terminus/vendor/consolidation/annotated-command/src/Parser/CommandInfo.php on line 383
PHP Deprecated:  str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /Users/matthews/terminus/vendor/consolidation/annotated-command/src/Parser/CommandInfo.php on line 383

Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /Users/matthews/terminus/vendor/consolidation/annotated-command/src/Parser/CommandInfo.php on line 383
PHP Deprecated:  Return type of Symfony\Component\Console\Helper\HelperSet::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /Users/matthews/terminus/vendor/symfony/console/Helper/HelperSet.php on line 94

Deprecated: Return type of Symfony\Component\Console\Helper\HelperSet::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /Users/matthews/terminus/vendor/symfony/console/Helper/HelperSet.php on line 94
PHP Deprecated:  strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /Users/matthews/terminus/vendor/consolidation/output-formatters/src/Transformations/Wrap/CalculateWidths.php on line 56

Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /Users/matthews/terminus/vendor/consolidation/output-formatters/src/Transformations/Wrap/CalculateWidths.php on line 56
PHP Deprecated:  strstr(): Passing null to parameter #1 ($haystack) of type string is deprecated in /Users/matthews/terminus/vendor/symfony/console/Helper/Table.php on line 552

Deprecated: strstr(): Passing null to parameter #1 ($haystack) of type string is deprecated in /Users/matthews/terminus/vendor/symfony/console/Helper/Table.php on line 552
PHP binary: /usr/local/Cellar/php/8.1.0/bin/php                                                               
PHP version: 8.1.0                                                                                             
php.ini used: /usr/local/etc/php/8.1/php.ini                                                                    
Terminus project config                                                                                                     
Terminus root dir: /Users/matthews/terminus/vendor/pantheon-systems/terminus                                         
Terminus version: 3.0.0-beta1                                                                                       
Operating system: Darwin Kernel Version 20.6.0: Mon Aug 30 06:12:21 PDT 2021; root:xnu-7195.141.6~3/RELEASE_X86_64  

ChristopherMatthews avatar Dec 02 '21 20:12 ChristopherMatthews

Terminus 3 is untested on PHP 8.1. Looks like some of Terminus' dependencies will have to be updated for 8.1 first.

greg-1-anderson avatar Dec 06 '21 02:12 greg-1-anderson

Ah, found another one.

PHP Deprecated:  strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in phar:///opt/homebrew/Cellar/terminus/3.0.6/bin/terminus/src/Hooks/SiteEnvLookup.php on line 108

kyletaylored avatar Mar 29 '22 19:03 kyletaylored