- 追加された行はこの色です。
- 削除された行はこの色です。
*File List [#c010555a]
dddd
*File List [#zfa98dd3]
-[[pukiwiki/lib/convert_html.php>#convert]]
~
*Deprecated [#lf29f1b1]
返り値の宣言であるnewのキャストをひたすら書き換えていく作業
$config = & new "hoge"
*Strict Standards [#wfd96d78]
関数の引数型を書き換えていく
function canContain(& $obj)
を
$config = new "hoge"
function canContain($obj)
にしていく
~
----
~
&size(16){&font(b){Deprecated: Assigning the return value of new by reference is deprecated in [DocumentRoot]/pukiwiki/lib/func.php on line "xxx"};};
# vi [DocumentRoot]/pukiwiki/lib/func.php
-&size(16){&font(b){関数:get_autolink_pattern(& $pages)};};
- $config = &new Config('AutoLink');
_/_/_/_/_/
+ $config = new Config('AutoLink');
~
----
~
&size(16){&font(b){Deprecated: Assigning the return value of new by reference is deprecated in [DocumentRoot]/pukiwiki/lib/convert_html.php on line "xxx"};};
&aname(convert);
&size(16){&font(b){Strict Standards: Declaration of Align::canContain() should be compatible with Element::canContain($obj) in [DocumentRoot]/pukiwiki/lib/convert_html.php on line "xxx"};};
# vi [DocumentRoot]/pukiwiki/lib/convert_html.php
-&size(16){&font(b){関数:convert_html($lines)};};
- $body = & new Body(++$contents_id);
_/_/_/_/_/
+ $body = new Body(++$contents_id);
~
このエラーは書き換える内容が全て同じなので、書き換える箇所が属するクラスのみ記載
該当関数の引数型を上記の様に書き換えていく
編集にviを使っているなら、sedコマンドで入れ替える事推奨。楽なので
-class Heading extends Element
-class HRule extends Element
-class ListContainer extends Element
-class ListElement extends Element
-class BQuote extends Element
-class Table extends Element
-class YTable extends Element
-class Pre extends Element
-class Div extends Element
-class Align extends Element
-&size(16){&font(b){関数:& toPara($class = '')};};
- $obj = & new Paragraph('', $class);
_/_/_/_/_/
+ $obj = new Paragraph('', $class);
~
-&size(16){&font(b){関数:Table($out)};};
- $row[] = & new TableCell($cell, $is_template);
_/_/_/_/_/
+ $row[] = new TableCell($cell, $is_template);
~
-&size(16){&font(b){関数:Body($id)};};
- $this->contents = & new Element();
_/_/_/_/_/
+ $this->contents = new Element();
~
----
~
&size(16){&font(b){Deprecated: Assigning the return value of new by reference is deprecated in [DocumentRoot]/pukiwiki/lib/config.php on line "xxx"};};
# vi [DocumentRoot]/pukiwiki/lib/config.php
-&size(16){&font(b){関数:read()};};
- $obj = & new ConfigTable('');
_/_/_/_/_/
+ $obj = new ConfigTable('');
~
-&size(16){&font(b){関数:read()};};
- $obj = & new ConfigTable($line);
_/_/_/_/_/
+ $obj = new ConfigTable($line);
~
-&size(16){&font(b){関数:read()};};
- $obj = & new ConfigTable_Direct('', $obj);
_/_/_/_/_/
+ $obj = new ConfigTable_Direct('', $obj);
~
-&size(16){&font(b){関数:read()};};
- $obj = & new ConfigTable_Direct('', $obj);
_/_/_/_/_/
+ $obj = new ConfigTable_Direct('', $obj);
~
-&size(16){&font(b){関数:read()};};
- $obj = & new ConfigTable_Sequential('', $obj);
_/_/_/_/_/
+ $obj = new ConfigTable_Sequential('', $obj);
~
-&size(16){&font(b){関数:& get_object($title)};};
- $this->objs[$title] = & new ConfigTable('*' . trim($title) . "\n");
_/_/_/_/_/
+ $this->objs[$title] = new ConfigTable('*' . trim($title) . "\n");
~
----
~
&size(16){&font(b){Deprecated: Assigning the return value of new by reference is deprecated in [DocumentRoot]/pukiwiki/lib/link.php on line "xxx"};};
# vi [DocumentRoot]/pukiwiki/lib/link.php
-&size(16){&font(b){関数:& links_get_objects($page, $refresh = FALSE)};};
- $obj = & new InlineConverter(NULL, array('note'));
_/_/_/_/_/
+ $obj = new InlineConverter(NULL, array('note'));