Skip to content
This repository was archived by the owner on Jan 20, 2024. It is now read-only.

Fix deprecation for PHP 8.1+#180

Open
adriendupuis wants to merge 3 commits intoraml-org:masterfrom
adriendupuis:patch-1
Open

Fix deprecation for PHP 8.1+#180
adriendupuis wants to merge 3 commits intoraml-org:masterfrom
adriendupuis:patch-1

Conversation

@adriendupuis
Copy link

@adriendupuis adriendupuis commented Mar 22, 2023

When using PHP 8.1 or 8.2

  • "PHP Deprecated: Return type of Raml\SecurityScheme\SecuritySettings\DefaultSecuritySettings::offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice"
  • "PHP Deprecated: Return type of Raml\SecurityScheme\SecuritySettings\DefaultSecuritySettings::offsetGet($offset) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice"
  • "PHP Deprecated: Return type of Raml\TypeCollection::current() should either be compatible with Iterator::current(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice"
  • "PHP Deprecated: Return type of Raml\TypeCollection::key() should either be compatible with Iterator::key(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice"
  • "PHP Deprecated: Return type of Raml\TypeCollection::valid() should either be compatible with Iterator::valid(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice"
  • "PHP Deprecated: Return type of Raml\TraitCollection::current() should either be compatible with Iterator::current(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice"
  • "PHP Deprecated: Return type of Raml\TraitCollection::key() should either be compatible with Iterator::key(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice"
  • "PHP Deprecated: Return type of Raml\TraitCollection::valid() should either be compatible with Iterator::valid(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice"

Needed for PHP 8.1+

"PHP Deprecated:  Return type of Raml\SecurityScheme\SecuritySettings\DefaultSecuritySettings::offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice"

"PHP Deprecated:  Return type of Raml\SecurityScheme\SecuritySettings\DefaultSecuritySettings::offsetGet($offset) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice"
Needed for PHP 8.1+

"PHP Deprecated:  Return type of Raml\TypeCollection::current() should either be compatible with Iterator::current(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice"
"PHP Deprecated: Return type of Raml\TypeCollection::key() should either be compatible with Iterator::key(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice"
"PHP Deprecated:  Return type of Raml\TypeCollection::valid() should either be compatible with Iterator::valid(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice"
Needed for PHP 8.1+

"Deprecated: Return type of Raml\TraitCollection::current() should either be compatible with Iterator::current(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice"
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant