Просмотр исходного кода

ZF-10656: Fix bad example in reflection method docs

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@23305 44c647ce-9c0f-0410-b52a-842ac1e357ba
matthew 15 лет назад
Родитель
Сommit
393c515ee2
1 измененных файлов с 1 добавлено и 5 удалено
  1. 1 5
      documentation/manual/en/module_specs/Zend_Reflection-Examples.xml

+ 1 - 5
documentation/manual/en/module_specs/Zend_Reflection-Examples.xml

@@ -53,11 +53,7 @@ $file = $r->getDeclaringFile();
         <programlisting language="php"><![CDATA[
 $r = new Zend_Reflection_Method($class, $name);
 
-printf(
-"The method '%s' has a return type of %s",
-    $r->getName(),
-    $r->getReturn()
-);
+printf( "Method '%s':\n", $r->getName());
 
 foreach ($r->getParameters() as $key => $param) {
     printf(