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

Several deprecated issues are shown related to GetOptionKit after I updated to PHP 8.1. #448

Open
uhunkler opened this issue Sep 18, 2023 · 1 comment

Comments

@uhunkler
Copy link
Contributor

  • moosh version: 1.15
  • moodle version: 4.1
    • database:
  • php version: 8.1
  • operating system: 8.1-bullseye

Several deprecated issues are shown related to GetOptionKit after I updated to PHP 8.1.

Deprecated: Return type of GetOptionKit\OptionCollection::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/moosh/vendor/corneltek/getoptionkit/src/OptionCollection.php on line 203

etc.

@haietza
Copy link

haietza commented Oct 18, 2023

We are seeing the same deprecation warnings on PHP 8.1.

In addition, we are also seeing:

PHP Deprecated: Return type of GetOptionKit\OptionCollection::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /usr/local/share/moosh/vendor/corneltek/getoptionkit/src/OptionCollection.php on line 198

PHP Deprecated: Return type of GetOptionKit\OptionResult::offsetExists($name) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /usr/local/share/moosh/vendor/corneltek/getoptionkit/src/OptionResult.php on line 114

PHP Deprecated: Return type of GetOptionKit\OptionResult::offsetGet($name) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #
[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /usr/local/share/moosh/vendor/corneltek/getoptionkit/src/OptionResult.php on line 119

PHP Deprecated: Return type of GetOptionKit\OptionResult::offsetSet($name, $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 /usr/local/share/moosh/vendor/corneltek/getoptionkit/src/OptionResult.php on line 109

PHP Deprecated: Return type of GetOptionKit\OptionResult::offsetUnset($name) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /usr/local/share/moosh/vendor/corneltek/getoptionkit/src/OptionResult.php on line 124

PHP Deprecated: ucfirst(): Passing null to parameter #1 ($string) of type string is deprecated in /usr/local/share/moosh/vendor/corneltek/getoptionkit/src/Option.php on line 264

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants