Skip to content

UnsupportedPropertyReferenceUsage cannot be suppressed #9825

@mrsuh

Description

@mrsuh
<?php

class Test {
  public array $array = [];

  public function test(string $key): void {
    /** @psalm-suppress all */ 
    $stat = &$this->array[$key];
    /** @psalm-suppress ForbiddenCode */ 
    var_dump($stat);
  }
}

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