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

Created on 21 April 2023, about 1 year ago
Updated 1 August 2023, 11 months 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.69.0 2024