Added
- Added new
StatsDClient
interface, whichClient
now implements - Added new
Exception
interface, which all exceptions now implement
Changed
- Supported PHP versions are now 7.4, 8.0, and 8.1
- All properties and methods now have type hints where applicable
gauge()
now accepts bothint
andfloat
values (#56)ConnectionException
message is now also propagated viatrigger_error()
(#57)- The following methods return the
StatsDClient
interface instead ofClient
:ConfigurationException::getInstance()
ConnectionException::getInstance()
- The following
Client
methods now returnvoid
instead of returning$this
:increment()
decrement()
startTiming()
endTiming()
timing()
timings()
time()
gauge()
set()
send()
- Renamed
Client::$instance_id
toClient::$instanceId
New Contributors
- @Jeroeny made their first contribution in #59
- @filakhtov made their first contribution in #57
Full Changelog: 1.5.0...2.0.0