Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[warning] Depreciated php 8.1 #8

Open
Thommusa opened this issue Aug 30, 2022 · 0 comments
Open

[warning] Depreciated php 8.1 #8

Thommusa opened this issue Aug 30, 2022 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@Thommusa
Copy link

Describe the bug
Deprecated: Return type of MCStreetguy\ComposerParser\Service\AbstractMap::current() should either be compatible with Iterator::current(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /vendor/mcstreetguy/composer-parser/src/Service/AbstractMap.php on line 67

Deprecated: Return type of MCStreetguy\ComposerParser\Service\AbstractMap::next() should either be compatible with Iterator::next(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in
/vendor/mcstreetguy/composer-parser/src/Service/AbstractMap.php on line 89

Deprecated: Return type of MCStreetguy\ComposerParser\Service\AbstractMap::key() should either be compatible with Iterator::key(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in vendor/mcstreetguy/composer-parser/src/Service/AbstractMap.php on line 78

Deprecated: Return type of MCStreetguy\ComposerParser\Service\AbstractMap::valid() should either be compatible with Iterator::valid(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in vendor/mcstreetguy/composer-parser/src/Service/AbstractMap.php on line 100

Deprecated: Return type of MCStreetguy\ComposerParser\Service\AbstractMap::rewind() should either be compatible with Iterator::rewind(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in vendor/mcstreetguy/composer-parser/src/Service/AbstractMap.php on line 56

Deprecated: Return type of MCStreetguy\ComposerParser\Service\AbstractMap::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 endor/mcstreetguy/composer-parser/src/Service/AbstractMap.php on line 129

Deprecated: Return type of MCStreetguy\ComposerParser\Service\AbstractMap::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 /vendor/mcstreetguy/composer-parser/src/Service/AbstractMap.php on line 153

Deprecated: Return type of MCStreetguy\ComposerParser\Service\AbstractMap::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 /vendor/mcstreetguy/composer-parser/src/Service/AbstractMap.php on line 113

Deprecated: Return type of MCStreetguy\ComposerParser\Service\AbstractMap::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 /vendor/mcstreetguy/composer-parser/src/Service/AbstractMap.php on line 141

To Reproduce
Use the library with php 8.1

Expected behavior
No warning, can be fix by set the return type of each method.

@Thommusa Thommusa added the bug Something isn't working label Aug 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants