Closed TysonAndre closed 6 years ago
Things to try:
Seeing a new bug with this example:
<?php
class Common{
const TYPE_INT = 'i';
}
class CC extends Common {
protected static $mappings = [
'key' => ['name' => 'name', 'type' => self::TYPE_INT],
];
}
src/union_type.php:9 PhanUndeclaredConstant Reference to undeclared constant \CC::TYPE_INT
This reduces memory usage somewhat and makes functions accepting UnionType easier to reason about.