raml-php-parser
raml-php-parser copied to clipboard
Fix deprecation for PHP 8.1+
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"