Skip to content

Commit

Permalink
Force index and use parsed indexes
Browse files Browse the repository at this point in the history
  • Loading branch information
haszi committed Feb 26, 2024
1 parent ae259a6 commit 3c88dcd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion phpdotnet/phd/Index.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ class Index extends Format
private $currentid;
private $chunks = array();
private $isChunk = array();
private $nfo = array();
protected $nfo = array();
private $isSectionChunk = array();
private $log = '';
private $previousId = "";
Expand Down
4 changes: 2 additions & 2 deletions phpdotnet/phd/TestIndex.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
namespace phpdotnet\phd;

class TestIndex extends Index {
public function getIndexes(): array {
return $this->indexes;
public function getNfo(): array {
return $this->nfo;
}
}
4 changes: 2 additions & 2 deletions tests/index/bug_GH-98.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ require_once __DIR__ . "/../setup.php";
$xml_file = __DIR__ . "/data/bug_GH-98.xml";

Config::init([
"index" => true,
"force_index" => true,
"xml_file" => $xml_file,
]);

Expand All @@ -18,7 +18,7 @@ $render = new TestRender(new Reader, new Config, null, $index);

$render->run();

$indexes = array_keys($index->getIndexes());
$indexes = array_keys($index->getNfo());

echo "Indexes stored:\n";

Expand Down

0 comments on commit 3c88dcd

Please sign in to comment.