PhpStorm not finding methods in objects created by late static binding by parent abstract class
问题 In my PHP application I have a base class for all database objects, which is further extended by specific model classes. It goes on like this (simplified): abstract class Model extends Collection { (...) function __construct(string $primary_key, string $value) { $data = MysqlDB::instance() -> select(static::TABLE, implode(',', static::COLUMNS), "$primary_key=\"$value\""); if (count($data) != 1) throw new ModelException('Select condition uncertain'); parent::__construct($data[0]); } public