phpDoc @var для составного оператора не отображается правильно
У меня есть составное заявление в одном из моих классов, и, насколько я знаю, я следую за документами phpDoc здесь. Это просто соответствующая часть файла. У самого файла и класса есть docblocks.
class contact {
/**
* @var PDO $pdo The PDO class for database communication
* @var int $id The id of the contact
* @var int $clientId The id of the client the contact is linked to
* @var string $name The name of the contact
* @var string $address The first address line (normally street and house number) of the contact
* @var string $postal_code The postal code of the contact
* @var string $city The city of the contact
* @var string $state The state or region of the contact
* @var string $country The country of the contact
*/
protected $pdo, $id, $clientId, $name, $address, $postal_code, $city, $state, $country;
Когда я запускаю phpdoc для этого файла, он нормально анализируется без вывода. Однако, когда я смотрю на сгенерированные документы, информация отображается неправильно:
Что я делаю неправильно?
1 ответ
Решение
Предполагается, что это поддерживается в phpDocumentor 2.x, хотя это не было в 1.x. Поскольку это выглядит как выходной шаблон 2.x, это, скорее всего, ошибка в шаблоне, о которой вы можете сообщить как о проблеме в репозитории Github ( https://github.com/phpDocumentor).