[PHP-doc 1050] ErrorException の例1のコーディングミス
Kenji Suzuki
kenji.uui @ gmail.com
2015年 3月 5日 (木) 12:13:49 JST
Kenji です。
http://php.net/manual/ja/class.errorexception.php
の「例1」のサンプルコードに誤りを見つけましたので報告します。
× throw new ErrorException($errstr, 0, $errno, $errfile, $errline);
◯ throw new ErrorException($errstr, $errno, 0, $errfile, $errline);
コンストラクタの第2引数は code、第3引数は severity です。
public __construct ([ string $message = "" [, int $code = 0 [, int $severity = 1 [, string $filename = __FILE__ [, int $lineno = __LINE__ [, Exception $previous = NULL ]]]]]] )
以上、よろしくお願いします。
// Kenji
PHP-doc メーリングリストの案内