Skip to content

Polyfill signatures inconsistent with the extension #72

@BenMorel

Description

@BenMorel

These interfaces and classes implement ArrayAccess in the extension:

$classes = array_merge(get_declared_interfaces(), get_declared_classes());

foreach ($classes as $class) {
    if (substr($class, 0, 3) === 'Ds\\') {
        if ((new ReflectionClass($class))->implementsInterface(ArrayAccess::class)) {
            echo "$class\n";
        }
    }
}
Ds\Sequence
Ds\Vector
Ds\Deque
Ds\Stack
Ds\Map

However, I can see that the following classes/interfaces implement ArrayAccess in the polyfill:

Ds\Queue
Ds\Stack
Ds\Sequence
Ds\Set
Ds\Map

In short, the following classes implement ArrayAccess in the polyfill but not in the extension (at least, according to reflection):

  • Queue
  • Set

Is this an issue with the polyfill or the extension?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions