Skip to content

StrictArrayParamDimFetchRector does not respect objects implementing \ArrayAccess interface #9927

Closed
rectorphp/rector-src
#8648

Description

@raphaelincert

Bug Report

Subject Details
Rector version 2.7.0

Hi,
the rule StrictArrayParamDimFetchRector does not work if an object that implements \ArrayAccess is passed as an argument.
The change results in: Uncaught TypeError: Argument 1 passed to Incert\Common\Payment\Modules\Adyen\BusinessLogic\AdyenBL::checkPaymentDetail() must be of the type array, object given, called in

Best regards

Minimal PHP Code Causing Issue

https://getrector.com/demo/92df5b03-b24a-4f9b-acd3-cd318e70d74b

Expected Behaviour

No change

Activity

  1. TomasVotruba commented on Oct 12, 2026

    @TomasVotruba
    Member

    Thanks for reporting 👍

  2. TomasVotruba commented on Oct 12, 2026

    @TomasVotruba
    Member
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions