diff --git a/data/module/Net/URL.php b/data/module/Net/URL.php index dc03705189..005890b462 100644 --- a/data/module/Net/URL.php +++ b/data/module/Net/URL.php @@ -106,16 +106,6 @@ class Net_URL */ var $useBrackets; - /** - * PHP4 Constructor - * - * @see __construct() - */ - function Net_URL($url = null, $useBrackets = true) - { - $this->__construct($url, $useBrackets); - } - /** * PHP5 Constructor * @@ -127,7 +117,7 @@ function Net_URL($url = null, $useBrackets = true) * multiple querystrings with the same name * exist */ - function __construct($url = null, $useBrackets = true) + public function __construct($url = null, $useBrackets = true) { $this->url = $url; $this->useBrackets = $useBrackets; diff --git a/tests/require.php b/tests/require.php index aa427b1e4a..73154f19eb 100644 --- a/tests/require.php +++ b/tests/require.php @@ -7,8 +7,10 @@ exit(1); } -class_exists('FPDI'); // XXX PHPStan が FPDI を見つけてくれないのでロードしておく -class_exists('Smarty'); // XXX PHPStan が Smarty を見つけてくれないのでロードしておく +// XXX PHPStan が見つけてくれないライブラリをロードしておく +class_exists('FPDI'); +class_exists('Smarty'); +class_exists('MDB2'); if (!class_exists('PHPUnit_Framework_TestCase')) { class_alias('PHPUnit\Framework\TestCase', 'PHPUnit_Framework_TestCase');