diff options
author | Christian Schneider | 2020-06-02 09:56:17 +0200 |
---|---|---|
committer | Christian Schneider | 2020-06-02 09:56:17 +0200 |
commit | e9057cbea41b418a92ab41e91a1d01808906bdd0 (patch) | |
tree | 67c05f819b8d5ae52c3563754fcdcb1dcda1ad3f /it_url.class | |
parent | 7e99d49d7bc100b853ea8c720384536857815912 (diff) | |
download | itools-e9057cbea41b418a92ab41e91a1d01808906bdd0.tar.gz itools-e9057cbea41b418a92ab41e91a1d01808906bdd0.tar.bz2 itools-e9057cbea41b418a92ab41e91a1d01808906bdd0.zip |
Switch it_url::get() to static / remove support for legacy usage ->get()
Diffstat (limited to 'it_url.class')
-rw-r--r-- | it_url.class | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/it_url.class b/it_url.class index 29429d2..d02939c 100644 --- a/it_url.class +++ b/it_url.class @@ -111,13 +111,8 @@ static function _postprocess($data, $p) * @param $p['postprocess'] function called with content and $p which has it_error. returns content or null * @return Content of resulting page (considering redirects, excluding headers or false on error) or array (empty on error) if 'assoc' => true */ -function get($p = [], $timeout = null) +static function get($p = [], $timeout = null) { - if (isset($this) && $this instanceof it_url) # FIXME 202006 cschneid Compatibility until all application switched to 'assoc' => true or it_ur::get() - { - it::error("Deprecated usage of it_url::get() as object method"); - return $this->_get($p, $timeout); - } return (new static)->_get($p, $timeout); } |