laravel/pint

Asymmetric Visibility Issue

已關閉

#383 建立於 2025年7月18日

 (1 則留言) (0 個反應) (0 位負責人)PHP (189 個分叉)user submission
help wanted

倉庫指標

星標
 (3,127 顆星)
PR 合併指標
 (平均合併 2天 1小時) (30 天內合併 12 個 PR)

描述

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.

貢獻者指南