svn: /phpdoc/doc-base/trunk/scripts/ check-references.php

From: Date: Mon, 31 Aug 2009 13:16:27 +0000
Subject: svn: /phpdoc/doc-base/trunk/scripts/ check-references.php
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-4802@lists.php.net to get a copy of this message
vrana Mon, 31 Aug 2009 13:16:27 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=287917 Log: Distinguish errors and comments Changed paths: U phpdoc/doc-base/trunk/scripts/check-references.php Modified: phpdoc/doc-base/trunk/scripts/check-references.php =================================================================== --- phpdoc/doc-base/trunk/scripts/check-references.php 2009-08-31 12:28:46 UTC (rev 287916) +++ phpdoc/doc-base/trunk/scripts/check-references.php 2009-08-31 13:16:27 UTC (rev 287917) @@ -405,7 +405,7 @@ $modifier = (preg_match('~::__construct$~', $function_name) ? "i" : ""); if (!preg_match("~<type>(" . $return_types[$function_name][0] . ")</type>~$modifier", $return_type) && ($return_types[$function_name][0] != "object" || preg_match("~<type>($valid_types|$invalid_types)</type>~", $return_type))) { echo "Wrong return type in $filename on line $lineno.\n"; - echo ": (" . $return_types[$function_name][0] . ") in " . $return_types[$function_name][1] . " on line " . $return_types[$function_name][2] . ".\n"; + echo $return_types[$function_name][1] . ":" . $return_types[$function_name][2] . ": " . $return_types[$function_name][0] . "\n"; } } elseif (preg_match("~<type>(callback|$invalid_types)</type>~", $return_type)) { echo "Wrong return type in $filename on line $lineno.\n";

« previous php.doc.cvs (#4802) next »