Page MenuHomePhabricator

Phan should detect invalid constant access
Closed, ResolvedPublic

Description

T273099: Undefined class constant 'BASE_CSS_CLASS' is a fairly straightforward constant visibility error: BaseModule::BASE_CSS_CLASS is a private constant but a subclass references it. It was caused by rEGREfc1dbe3afd65: Fix PSR12.Properties.ConstantVisibility.NotFound. This should be trivial to detect during static analysis but phan missed it.

Event Timeline

DannyS712 subscribed.

The upstream issue was resolved in January - has our version of phan been updated, and can this be closed?

The upstream issue was resolved in January - has our version of phan been updated, and can this be closed?

No. We're still using 3.2.6, but the fix was included in 4.0.3.

Umherirrender subscribed.

A new version of the config package is now available - T289751