23use InvalidArgumentException;
58 if (
$text ===
null ) {
66 $this->text = (string)
$text;
89 if (
$data !==
null ) {
90 foreach (
$data as $k => $v ) {
91 if ( substr( $k, 0, 1 ) ===
'_' ) {
92 throw new InvalidArgumentException(
'Keys in $data beginning with "_" are reserved' );
97 if ( $comment instanceof
Message ) {
101 ->setInterfaceMessageFlag(
true )
111class_alias( CommentStoreComment::class,
'CommentStoreComment' );
wfLogWarning( $msg, $callerOffset=1, $level=E_USER_WARNING)
Send a warning as a PHP error and the debug log.