laravel/pint

Asymmetric Visibility Issue

Fermée

#383 ouverte le 18 juil. 2025

 (1 commentaire) (0 réaction) (0 personne assignée)PHP (189 forks)user submission
help wanted

Métriques du dépôt

Stars
 (3 127 étoiles)
Métriques de merge PR
 (Merge moyen 1j 7h) (4 PRs mergées en 30 j)

Description

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.

Guide contributeur