laravel/pint

Asymmetric Visibility Issue

クローズ

#383 opened on 2025/07/18

 (1 件のコメント) (0 件のリアクション) (0 人の担当者)PHP (189 件のフォーク)user submission
help wanted

Repository metrics

Stars
 (3,127 個のスター)
PR merge metrics
 (平均マージ 2d 1h) (30d で 12 merged PRs)

説明

Pint Version

1.24.0

PHP Version

8.4

Description

There seems to be a bug with how asymmetric visibility is handled. The following class properties are fine:

  • public private(set) int $concurrency;
  • private int $concurrency;

However if I try to use the abbreviated form private(set) int $concurrency; as specified in the RFC then I get the error Cannot access offset of type null on SplFixedArray

Steps To Reproduce

Set a class property like private(set) int $propertyName and then run pint on the file.

コントリビューターガイド