diff options
author | Christian Schneider | 2020-05-18 22:51:30 +0200 |
---|---|---|
committer | Christian Schneider | 2020-05-18 22:51:30 +0200 |
commit | b7a19850c90c349890a9db8b37cf92f60dd1a1a8 (patch) | |
tree | c37dd4142a124b918d1477d75d2177487ac030b5 | |
parent | c32d6b549e7d1e44742ddaa01f7af588dee71136 (diff) | |
download | itools-b7a19850c90c349890a9db8b37cf92f60dd1a1a8.tar.gz itools-b7a19850c90c349890a9db8b37cf92f60dd1a1a8.tar.bz2 itools-b7a19850c90c349890a9db8b37cf92f60dd1a1a8.zip |
Warn about object method usage of it_url::get()
-rw-r--r-- | it_url.class | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/it_url.class b/it_url.class index ba91922..5d7b4dd 100644 --- a/it_url.class +++ b/it_url.class @@ -114,7 +114,10 @@ static function _postprocess($data, $p) 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); } |