Skip to content

[warning] Depreciated php 8.1 #8

@Thommusa

Description

@Thommusa

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.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions