Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Lots of deprecation warnings with PHP version 8.1.7 #149

Copy link
Copy link

Description

@mikejw
Issue body actions

I'm getting lots of deprecation warning when running this PHP script. It's only with PHP version 8 that this is happening.

https://github.com/mikejw/empathy/blob/bootstrap4/bin/empathy

`PHP` Deprecated:  Return type of cli\Arguments::offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /Users/mike/code/mikejw/empathy-php8/vendor/wp-cli/php-cli-tools/lib/cli/Arguments.php on line 89

Deprecated: Return type of cli\Arguments::offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /Users/mike/code/mikejw/empathy-php8/vendor/wp-cli/php-cli-tools/lib/cli/Arguments.php on line 89
PHP Deprecated:  Return type of cli\Arguments::offsetGet($offset) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /Users/mike/code/mikejw/empathy-php8/vendor/wp-cli/php-cli-tools/lib/cli/Arguments.php on line 103

Deprecated: Return type of cli\Arguments::offsetGet($offset) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /Users/mike/code/mikejw/empathy-php8/vendor/wp-cli/php-cli-tools/lib/cli/Arguments.php on line 103
PHP Deprecated:  Return type of cli\Arguments::offsetSet($offset, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /Users/mike/code/mikejw/empathy-php8/vendor/wp-cli/php-cli-tools/lib/cli/Arguments.php on line 119

Deprecated: Return type of cli\Arguments::offsetSet($offset, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /Users/mike/code/mikejw/empathy-php8/vendor/wp-cli/php-cli-tools/lib/cli/Arguments.php on line 119
PHP Deprecated:  Return type of cli\Arguments::offsetUnset($offset) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /Users/mike/code/mikejw/empathy-php8/vendor/wp-cli/php-cli-tools/lib/cli/Arguments.php on line 132

Deprecated: Return type of cli\Arguments::offsetUnset($offset) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /Users/mike/code/mikejw/empathy-php8/vendor/wp-cli/php-cli-tools/lib/cli/Arguments.php on line 132
PHP Deprecated:  Return type of cli\arguments\Lexer::current() should either be compatible with Iterator::current(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /Users/mike/code/mikejw/empathy-php8/vendor/wp-cli/php-cli-tools/lib/cli/arguments/Lexer.php on line 36

Deprecated: Return type of cli\arguments\Lexer::current() should either be compatible with Iterator::current(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /Users/mike/code/mikejw/empathy-php8/vendor/wp-cli/php-cli-tools/lib/cli/arguments/Lexer.php on line 36
PHP Deprecated:  Return type of cli\arguments\Lexer::next() should either be compatible with Iterator::next(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /Users/mike/code/mikejw/empathy-php8/vendor/wp-cli/php-cli-tools/lib/cli/arguments/Lexer.php on line 52

Deprecated: Return type of cli\arguments\Lexer::next() should either be compatible with Iterator::next(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /Users/mike/code/mikejw/empathy-php8/vendor/wp-cli/php-cli-tools/lib/cli/arguments/Lexer.php on line 52
PHP Deprecated:  Return type of cli\arguments\Lexer::key() should either be compatible with Iterator::key(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /Users/mike/code/mikejw/empathy-php8/vendor/wp-cli/php-cli-tools/lib/cli/arguments/Lexer.php on line 63

Deprecated: Return type of cli\arguments\Lexer::key() should either be compatible with Iterator::key(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /Users/mike/code/mikejw/empathy-php8/vendor/wp-cli/php-cli-tools/lib/cli/arguments/Lexer.php on line 63
PHP Deprecated:  Return type of cli\arguments\Lexer::valid() should either be compatible with Iterator::valid(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /Users/mike/code/mikejw/empathy-php8/vendor/wp-cli/php-cli-tools/lib/cli/arguments/Lexer.php on line 84

Deprecated: Return type of cli\arguments\Lexer::valid() should either be compatible with Iterator::valid(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /Users/mike/code/mikejw/empathy-php8/vendor/wp-cli/php-cli-tools/lib/cli/arguments/Lexer.php on line 84
PHP Deprecated:  Return type of cli\arguments\Lexer::rewind() should either be compatible with Iterator::rewind(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /Users/mike/code/mikejw/empathy-php8/vendor/wp-cli/php-cli-tools/lib/cli/arguments/Lexer.php on line 71

Deprecated: Return type of cli\arguments\Lexer::rewind() should either be compatible with Iterator::rewind(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /Users/mike/code/mikejw/empathy-php8/vendor/wp-cli/php-cli-tools/lib/cli/arguments/Lexer.php on line 71
PHP Deprecated:  strncmp(): Passing null to parameter #1 ($string1) of type string is deprecated in /Users/mike/code/mikejw/empathy-php8/vendor/wp-cli/php-cli-tools/lib/cli/arguments/Argument.php on line 80

Deprecated: strncmp(): Passing null to parameter #1 ($string1) of type string is deprecated in /Users/mike/code/mikejw/empathy-php8/vendor/wp-cli/php-cli-tools/lib/cli/arguments/Argument.php on line 80
PHP Deprecated:  strncmp(): Passing null to parameter #1 ($string1) of type string is deprecated in /Users/mike/code/mikejw/empathy-php8/vendor/wp-cli/php-cli-tools/lib/cli/arguments/Argument.php on line 89

Deprecated: strncmp(): Passing null to parameter #1 ($string1) of type string is deprecated in /Users/mike/code/mikejw/empathy-php8/vendor/wp-cli/php-cli-tools/lib/cli/arguments/Argument.php on line 89
Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.