From: Antonio Ospite <ao2@ao2.it>
Date: Wed, 14 Nov 2018 14:57:36 +0000 (+0100)
Subject: src/Tweeper.php: harmonize error messages
X-Git-Tag: v1.4.0~7
X-Git-Url: https://git.ao2.it/tweeper.git/commitdiff_plain/4336e714ebb2cf1b07c59a4534b9d9acd244c6f9?hp=4336e714ebb2cf1b07c59a4534b9d9acd244c6f9

src/Tweeper.php: harmonize error messages

Since the Tweeper class is supposed to be used as a library don't let
any error be fatal and convert all current uses of E_USER_ERROR into
E_USER_WARNING.

Also convert the few instances of E_USER_NOTICE into E_USER_WARNING.

Finally, stop using error_log as well in favour of trigger_error which
provides more context in the produced message.
---