-
-
Notifications
You must be signed in to change notification settings - Fork 0
Infer types from Reflection objects #3
Copy link
Copy link
Open
Description
https://psalm.dev/r/9a84ba1ae6
It would be nice if I could somehow be able to infer a wrapper function likeproperty_get($object, 'propName') -> propType
- VeeWee
<?php
class X {
public string $z = '';
}
$x = new X();
$rx = new \ReflectionClass($x);
$z = $rx->getProperty('z');
$v = $z->getValue($x);
/** @psalm-trace $v */Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels