Skip to content

Conversation

@mmalferov
Copy link
Member

No description provided.

@Girgias Girgias merged commit 0aa6447 into php:master Jan 27, 2025
2 checks passed
@mmalferov mmalferov deleted the patch-6 branch January 27, 2025 22:34
@mmalferov
Copy link
Member Author

Maybe create a separate pull request that corrects the categorical requirement to extend the iterator class?

The class must extend the ArrayIterator class.

To:

The class must belong to or extend the ArrayIterator class.

<?php

$array = [];

// The third argument do not extends the ArrayIterator class, while "MUST"
$arrayObject = new ArrayObject($array, 0, 'ArrayIterator');```

@Girgias
Copy link
Member

Girgias commented Jan 30, 2025

I suppose

must be a subclass (or subtype) of ArrayIterator
would work better?

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

Successfully merging this pull request may close these issues.

2 participants