From b7a19850c90c349890a9db8b37cf92f60dd1a1a8 Mon Sep 17 00:00:00 2001
From: Christian Schneider
Date: Mon, 18 May 2020 22:51:30 +0200
Subject: Warn about object method usage of it_url::get()

---
 it_url.class | 3 +++
 1 file changed, 3 insertions(+)

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);
 }
 
-- 
cgit v1.2.3