Repository navigation
Commit 8b9ba1a
Check shadowed classes' declarations under real-name activation
signature-parity.php compared the natives only as the PHPStanTurbo\
prefixed declarations, mapped prefixed class names back to the twins,
skipped erased and absent types and ignored properties, constants and
non-public methods — so arginfo naming PHPStanTurbo\ classes, methods
without return types, missing defaults (a named-argument call skipping
the parameter throws natively), undeclared or untyped properties and
missing class constants all passed.
The check now activates the native classes under the real names, the way
TurboExtensionEnabler does, and compares them against a dump of the twins
from a child process that never activates: class shape, every method of
any visibility (a private one is optional, but a class that declares any
of its twin's private methods declares all of them) with parameter types,
optionality and default values and return types, every property with its
type, default, visibility, static and readonly flags, and every class
constant with its value. The classes that drift today are listed as
pending; the following commits fix them and shrink the list.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018Fdg8n3eEi4ZoXa4dA2k4A1 parent bc12558 commit 8b9ba1a
1 file changed
Lines changed: 345 additions & 122 deletions
0 commit comments