Allow arbitrary data types for PHPStan compatibility in @var class properties

Created on 21 April 2023, over 1 year ago
Updated 1 August 2023, over 1 year ago

Problem/Motivation

In Support advanced PHPStan data types (general, arrays) Fixed we relaxed data type requirements for @param and @return data types. Do the same for @var data types on class properties.

Steps to reproduce

class Foo {

  /**
   * Some comment.
   *
   * @var array<int,array<int,int>>
   */
  protected array $test;
}
Feature request
Status

Fixed

Version

8.3

Component

Coder Sniffer

Created by

🇦🇹Austria klausi 🇦🇹 Vienna

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024