mirror of
https://github.com/php/php-src.git
synced 2024-10-21 00:12:34 +00:00
18 lines
420 B
Plaintext
18 lines
420 B
Plaintext
|
--TEST--
|
||
|
ReflectionMethod::getDocComment() errors
|
||
|
--FILE--
|
||
|
<?php
|
||
|
class C { function f() {} }
|
||
|
$rc = new ReflectionMethod('C::f');
|
||
|
var_dump($rc->getDocComment(null));
|
||
|
var_dump($rc->getDocComment('X'));
|
||
|
?>
|
||
|
--EXPECTF--
|
||
|
|
||
|
Warning: Wrong parameter count for ReflectionFunctionAbstract::getDocComment() in %s on line %d
|
||
|
NULL
|
||
|
|
||
|
Warning: Wrong parameter count for ReflectionFunctionAbstract::getDocComment() in %s on line %d
|
||
|
NULL
|
||
|
|