From 9d26e025ef78ff87df9d7405f29ba7fe45c048d4 Mon Sep 17 00:00:00 2001 From: Yoshinari Takaoka Date: Thu, 28 Jan 2021 03:23:42 +0900 Subject: [PATCH] Fixed E_WARNING "($context) must be passed by reference, value given". --- phpdotnet/phd/Format.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/phpdotnet/phd/Format.php b/phpdotnet/phd/Format.php index 35340fdb4..fbd240d8f 100644 --- a/phpdotnet/phd/Format.php +++ b/phpdotnet/phd/Format.php @@ -150,7 +150,7 @@ public function sortIDs() { $this->sqlite->query('SELECT example(docbook_id) FROM ids WHERE element=\'example\' OR element=\'informalexample\''); } - public function SQLiteIndex(&$context, $index, $id, $filename, $parent, $sdesc, $ldesc, $element, $previous, $next, $chunk) { + public function SQLiteIndex($context, $index, $id, $filename, $parent, $sdesc, $ldesc, $element, $previous, $next, $chunk) { $this->indexes[$id] = array( "docbook_id" => $id, "filename" => $filename, @@ -164,7 +164,7 @@ public function SQLiteIndex(&$context, $index, $id, $filename, $parent, $sdesc, ); } - public function SQLiteChildren(&$context, $index, $id, $parent) + public function SQLiteChildren($context, $index, $id, $parent) { if (!isset($this->children[$parent]) || !is_array($this->children[$parent]) @@ -174,23 +174,23 @@ public function SQLiteChildren(&$context, $index, $id, $parent) $this->children[$parent][] = $id; } - public function SQLiteRefname(&$context, $index, $id, $sdesc) { + public function SQLiteRefname($context, $index, $id, $sdesc) { $ref = strtolower(str_replace(array("_", "::", "->"), array("-", "-", "-"), html_entity_decode($sdesc, ENT_QUOTES, 'UTF-8'))); $this->refs[$ref] = $id; } - public function SQLiteVarname(&$context, $index, $id, $sdesc) { + public function SQLiteVarname($context, $index, $id, $sdesc) { $this->vars[$sdesc] = $id; } - public function SQLiteClassname(&$context, $index, $id, $sdesc) { + public function SQLiteClassname($context, $index, $id, $sdesc) { $this->classes[strtolower($sdesc)] = $id; } - public function SQLiteExample(&$context, $index, $id) { + public function SQLiteExample($context, $index, $id) { $this->examples[] = $id; } - public static function SQLiteFinal(&$context) { + public static function SQLiteFinal($context) { return $context; }