cvs: phpdoc /scripts check-references.php

From: Date: Fri, 16 Jan 2009 12:04:33 +0000
Subject: cvs: phpdoc /scripts check-references.php
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-3036@lists.php.net to get a copy of this message
vrana Fri Jan 16 12:04:33 2009 UTC Modified files: /phpdoc/scripts check-references.php Log: Don't check NULL initializer http://cvs.php.net/viewvc.cgi/phpdoc/scripts/check-references.php?r1=1.33&r2=1.34&diff_format=u Index: phpdoc/scripts/check-references.php diff -u phpdoc/scripts/check-references.php:1.33 phpdoc/scripts/check-references.php:1.34 --- phpdoc/scripts/check-references.php:1.33 Tue Jan 13 12:47:40 2009 +++ phpdoc/scripts/check-references.php Fri Jan 16 12:04:32 2009 @@ -445,7 +445,7 @@ if ($param == "bool" && strlen($init_source)) { $init_source = ($init_source ? "true" : "false"); } - if (($optional_source || $optional_doc) && $matches[4][$i] != $init_source && (is_int($source_refs[$function_name][0]) ? $source_refs[$function_name][0] > $i+1 : !in_array($i+1, (array) $source_refs[$function_name][0]))) { + if (($optional_source || $optional_doc) && $matches[4][$i] != $init_source && $init_source != "NULL" && (is_int($source_refs[$function_name][0]) ? $source_refs[$function_name][0] > $i+1 : !in_array($i+1, (array) $source_refs[$function_name][0]))) { $error .= "Parameter #" . ($i+1) . " has wrong initial value (" . $matches[4][$i] . " instead of $init_source) in $filename on line " . ($lineno + $i + 1) . ".\n"; } }

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