raml-php-parser icon indicating copy to clipboard operation
raml-php-parser copied to clipboard

Fix deprecation for PHP 8.1+

Open adriendupuis opened this issue 2 years ago • 0 comments

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"

adriendupuis avatar Mar 22 '23 16:03 adriendupuis