I am trying to get the doc comment from a class and for the life of me, I have no idea why getDocComment() is returning false. I am expecting getDocComment to return @Whatever.
<?php
/** @Whatever */
class Test {
}
$rc = new ReflectionClass("Test");
var_dump($rc->getDocComment());
Output: bool(false)
$ php --version
PHP 5.5.1 (cli) (built: Aug 31 2013 01:32:53)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2013 Zend Technologies
with Zend OPcache v7.0.2-dev, Copyright (c) 1999-2013, by Zend Technologies