Skip to content

PHP 8.1 displays warnings for php-code-search v 1.10.5 #31

@Hypnopompia

Description

@Hypnopompia

Trying to use spatie x-ray which requires php-code-search 1.10.5 and I see these warnings being generated when using PHP 8.1.

Deprecated: Return type of Permafrost\PhpCodeSearch\Support\Collections\Collection::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/thunter/Dropbox/Mac/src/hitlabs/pronto-api/src/vendor/permafrost-dev/php-code-search/src/Support/Collections/Enumerable.php on line 9

Deprecated: Return type of Permafrost\PhpCodeSearch\Support\Collections\Collection::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/thunter/Dropbox/Mac/src/hitlabs/pronto-api/src/vendor/permafrost-dev/php-code-search/src/Support/Collections/Enumerable.php on line 14

Deprecated: Return type of Permafrost\PhpCodeSearch\Support\Collections\Collection::offsetSet($key, $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/thunter/Dropbox/Mac/src/hitlabs/pronto-api/src/vendor/permafrost-dev/php-code-search/src/Support/Collections/Enumerable.php on line 19

Deprecated: Return type of Permafrost\PhpCodeSearch\Support\Collections\Collection::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/thunter/Dropbox/Mac/src/hitlabs/pronto-api/src/vendor/permafrost-dev/php-code-search/src/Support/Collections/Enumerable.php on line 28

Deprecated: Return type of Permafrost\PhpCodeSearch\Support\Collections\Collection::current() should either be compatible with Iterator::current(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /Users/thunter/Dropbox/Mac/src/hitlabs/pronto-api/src/vendor/permafrost-dev/php-code-search/src/Support/Collections/Enumerable.php on line 38

Deprecated: Return type of Permafrost\PhpCodeSearch\Support\Collections\Collection::next() should either be compatible with Iterator::next(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /Users/thunter/Dropbox/Mac/src/hitlabs/pronto-api/src/vendor/permafrost-dev/php-code-search/src/Support/Collections/Enumerable.php on line 48

Deprecated: Return type of Permafrost\PhpCodeSearch\Support\Collections\Collection::key() should either be compatible with Iterator::key(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /Users/thunter/Dropbox/Mac/src/hitlabs/pronto-api/src/vendor/permafrost-dev/php-code-search/src/Support/Collections/Enumerable.php on line 43

Deprecated: Return type of Permafrost\PhpCodeSearch\Support\Collections\Collection::valid() should either be compatible with Iterator::valid(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /Users/thunter/Dropbox/Mac/src/hitlabs/pronto-api/src/vendor/permafrost-dev/php-code-search/src/Support/Collections/Enumerable.php on line 53

Deprecated: Return type of Permafrost\PhpCodeSearch\Support\Collections\Collection::rewind() should either be compatible with Iterator::rewind(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /Users/thunter/Dropbox/Mac/src/hitlabs/pronto-api/src/vendor/permafrost-dev/php-code-search/src/Support/Collections/Enumerable.php on line 33

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions