2014-10-30 2 views
2

일부 레거시 코드에 몇 가지 코멘트를 달았습니다. PHPDocumentor를 사용하여 작은 문제를 해결했습니다.PHPDocumentor - 내 DocBlock의 문제점은 무엇입니까?

다음은 예입니다 :

/** 
* Constructs the Widget object 
* 
* Basic constructor for the widget object. 
* Another line of pointless explanation, badly worded. 
* 
* @param string $id The ID of the widget 
* @param int  $size The Size of the widget 
* @return void 
* @throws InvalidArgumentException 
*/ 
public function __construct($id, $size) { 
    if (!is_string($id) || !is_integer($size)) { 
     throw new InvalidArgumentException('$id must be a string, $size an integer'); 
    } 
    $this->id = $id; 
    $this->size = $size; 
} 

내가 명령 줄에서 PHPDocumentor을 실행하고 문서의 전체 사랑스러운 폴더 얻을.

문서는 잘 보이지만, 나는의 라인을 따라 PHPDocumentor 컴파일 오류 얻을 :

Argument $id is missing from the Docblock of __construct 

은 그냥 PHPDocumenator 불필요하게 징징인가를, 또는 내가 부족 분명 뭔가가있다?

+0

해당 파일을 가리키고 있습니까? – Cheery

+0

그래! 문서 자체가 완성되었지만 errors.html 파일에 오류가 발생했습니다. – Dycey

+0

ASCII가 아닌 다른 키보드 레이아웃에 글자를 입력 할 수 있습니까? – Cheery

답변

5

phpDocumentor 버전 2.8.1에서 동일한 문제가 발생했습니다. 이 버전의 버그 인 것 같습니다. enter link description here

저는 version 2.7.0을 사용 했으므로 이제는 문제가 없습니다.

+0

Ehsan의 링크는 GitHub 소스에서 빌드 및 패치를 통해 수정할 수있는 패치되지 않은 문제에 대한 설명으로 연결됩니다. 다행히 3.0에서 수정 될 것입니다. – Dycey

관련 문제