0
我在其中一個類中有一個複合語句,並且據我所知,我在此處跟着phpDoc docs。這只是該文件的相關部分。文件本身和類有docblocks。用於複合語句的phpDoc @var顯示不正確
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時,它的分析沒有任何輸出。然而,當我查看生成的文檔時,無法正確顯示的信息:
我在做什麼錯?
對不起,我已經在github上報告過這個問題,但忘記了在這裏鏈接到它。謝謝你的回覆,我的錯誤。這裏是鏈接:https://github.com/phpDocumentor/phpDocumentor2/issues/1439 – Keelan 2014-10-15 21:56:44