Browse Source

Fixed static property access

pull/3502/head
Dmitry Stogov 8 years ago
parent
commit
2d3cac9e00
  1. 4
      ext/tidy/tests/027.phpt

4
ext/tidy/tests/027.phpt

@ -11,7 +11,7 @@ abstract class BaseClass {
private static $tidyconfig;
public function __construct() {
$this->tidyconfig = array(
self::$tidyconfig = array(
'indent' => false,
'clean' => true,
'merge-divs' => false,
@ -29,7 +29,7 @@ abstract class BaseClass {
$data = "awerawer"; // in my code, $data is downloaded from a site
$tidy = new tidy;
$tidy->parseString($data, $this->tidyconfig, 'utf8');
$tidy->parseString($data, self::$tidyconfig, 'utf8');
$tidy->cleanRepair();
return $tidy;

Loading…
Cancel
Save