Skip to content

PHPOption deprecation warning #101

@byrnereese

Description

@byrnereese

Running against PHP 8.1.1 and 8.1.2 produces the following warnings.

PHP Deprecated: Return type of PhpOption\Some::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /Users/byrne.reese/Projects/ringcentral/ringcentral-api-docs/code-samples/vendor/phpoption/phpoption/src/PhpOption/Some.php on line 152

PHP Deprecated: Return type of PhpOption\None::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /Users/byrne.reese/Projects/ringcentral/ringcentral-api-docs/code-samples/vendor/phpoption/phpoption/src/PhpOption/None.php on line 118

This appears to have been fixed: schmittjoh/php-option#61

It is unclear to me what dependency is including/installing php-option, but the following dependencies are out of date:

byrne.reese ~/.tmp $ php composer.phar show --outdated
guzzlehttp/psr7 1.8.3 2.1.0 PSR-7 message implementation that also provides...
rmccue/requests v1.8.1 v2.0.0 A HTTP library written in PHP, for human beings.
symfony/event-dispatcher v5.4.0 v6.0.2 Provides tools that allow your application comp...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions