Jordi Boggiano
6627c092d8
Add phpstan strict rules and deprecation rules, fix all related issues
2022-04-24 11:08:10 +02:00
Jordi Boggiano
0dac87975c
Add property types to all properties where possible
2022-04-21 21:58:32 +02:00
Jordi Boggiano
7952a83e0c
Move phpdoc to native types
2022-04-20 09:21:58 +02:00
Jordi Boggiano
2695fa86cd
CI fixes
2022-04-19 22:16:53 +02:00
Jordi Boggiano
2d006a8472
Convert level/levelName to enums ( #1656 )
2022-04-19 21:49:03 +02:00
Jordi Boggiano
5eb9b8ed93
Code cleanups
2022-03-21 14:18:54 +01:00
Jordi Boggiano
22c8b19358
Add LogRecord class, drop PHP <8.1
2022-03-21 14:18:53 +01:00
Maximilian Bösing
4a11cadb27
Add constructor injection for SocketHandler and its children ( #1600 )
...
* feature: add constructor injection for `SocketHandler` and its children
Signed-off-by: Maximilian Bösing <2189546+boesing@users.noreply.github.com >
* docs: add parameter documentation to `SocketHandler#__construct`
Signed-off-by: Maximilian Bösing <2189546+boesing@users.noreply.github.com >
2021-10-13 22:29:04 +02:00
Jordi Boggiano
493d7475e6
Fix type error
2021-09-14 15:30:26 +02:00
Jordi Boggiano
4b47204f78
Fix SocketHandler::getChunkSize return type, fixes #1570 , closes #1576
2021-09-14 15:07:52 +02:00
Jordi Boggiano
8b5278d8e1
Bump phpstan to level 8
2021-07-04 14:08:43 +02:00
Jordi Boggiano
13d40f953f
More type fixes towards level 7
2021-07-04 14:04:52 +02:00
Jordi Boggiano
01d104aa78
Add Record/Level/LevelName type aliases and improve phpstan type coverage to level 6
2021-07-04 14:04:52 +02:00
Jordi Boggiano
546dc0843d
Fix comparison
2020-12-14 13:49:05 +01:00
Jordi Boggiano
3ee78ae731
Simplify timeout handling and really allow millisecond precision, refs #1517
2020-12-14 13:34:59 +01:00
milos
38367d3f48
add support to define writetimeout in ms
2020-11-30 17:42:04 +01:00
milos
1106f259c2
add support to define writetimeout in ms
2020-11-30 17:40:22 +01:00
Jordi Boggiano
4a33226f25
Wrap up type-hint adding to all handlers
2018-11-19 23:28:33 +01:00
Jordi Boggiano
06143b03e5
Add a bunch of return types and fix type inconsistencies reports from phan
2018-07-04 14:14:08 +02:00
Jordi Boggiano
71afce5df7
Merge branch '1.x'
2018-06-18 11:34:19 +02:00
Klemen Bratec
e8db808dd3
Allow setting stream chunk size in SocketHandler ( #1129 )
2018-06-18 11:31:46 +02:00
Jordi Boggiano
bd7b28e5ee
Merge branch '1.x'
2018-06-07 18:49:40 +02:00
Jordi Boggiano
8c4539f1fe
More boolean=>bool
2018-06-07 18:45:07 +02:00
Erik Booij
ecdfdc9897
Rename Boolean in phpDocs to bool
2017-11-04 12:14:41 +01:00
Jordi Boggiano
5ce1c921ad
Fix type errors, thanks phan
2016-09-25 22:11:37 +02:00
Martin Kačmar
c02b43e0e0
Fix for TypeError - stream_set_timeout() expects integer as second and third parameter
2016-06-15 17:01:22 +02:00
Jordi Boggiano
21dde4dedb
Move to strict mode and fix tests
2016-05-27 13:44:00 +01:00
Remi Collet
8cfc819265
missing property
2016-03-25 17:25:05 +01:00
Jordi Boggiano
5085630fd6
Fix SlackHandler bug where slack drops some messages if the socket is closed too early, fixes #729
2016-03-07 12:29:57 +00:00
Jordi Boggiano
c889fb2648
CS fixes & upgrading cs fixer config
2015-11-18 17:09:46 +00:00
Danilo Silva
988d595351
set to 10 seconds the default timeout during writing data on a socket, to aovid possible issue and with a very low risk to break backward compatibility @Seldaek
2015-10-28 16:13:45 +01:00
Danilo Silva
65cc3083b6
exit prematurely when data has been written to avoid unnecessary time check @Seldaek
2015-10-28 16:12:09 +01:00
Danilo Silva
5c129a7f7f
Avoid infinite loops when no data is written on a socket for a time greater than writingTimeout settings
2015-10-19 12:02:32 +02:00
Jordi Boggiano
c5b08724f4
Merge pull request #605 from localheinz/fix/docblock
...
Fix: Type should be bool
2015-07-14 10:27:59 +01:00
Jordi Boggiano
ca1376bd61
CS fixes
2015-07-14 10:26:05 +01:00
Andreas Möller
462ffe495a
Enhancement: Rename parameter
2015-07-13 22:10:37 -04:00
Andreas Möller
a88d24ef45
Fix: Type should be boolean
2015-07-13 22:10:11 -04:00
Jordi Boggiano
b738a6c04c
CS fixes
2014-10-17 19:12:45 +01:00
Grégoire Pineau
f3b61cf48a
Fixed visibility
2014-09-08 20:01:00 +02:00
Jordi Boggiano
09d8747914
Specify port in the connection string instead of adding a protected property
2013-01-06 21:38:40 +01:00
Sebastian Goettschkes
2c0d390c0c
Change visibility back to private
2012-10-24 20:54:22 +02:00
Sebastian Goettschkes
cb675ae10f
Changing typo in variable name and default title for pushover message
2012-10-05 16:56:58 +02:00
Sebastian Goettschkes
f2bac1f351
Changing the SocketHandler to call generateDataStream when writing to socket
...
Now the write method does not to be overwritten when the format of the dataStream the Socket sends has to be altered in any way the formatter cannot handle (See the PushoverHandler for an example)
2012-09-24 13:13:18 +02:00
Sebastian Goettschkes
7d0bacf29c
Rewriting the write method
...
Before, the write method would alter the $record array and then call parent::write().
Now the method builds the string which should be written into the stream and then does it himself.
I had to change two methods to be protected so the PushoverHandler could call them.
2012-09-09 21:10:42 +02:00
Sebastian Goettschkes
d6489bb3ae
Adding a first version of PushoverHandler
...
The PushoverHandler sends messages to api.pushover.net. The class depends on the SocketHandler
I modified the SocketHandler to make it possible to change the port for subclasses (Pushover needs the explicit port 80 to work)
The tests only see if the content sent to the api is correct. The rest should be already covered in the tests for the Sockets.
2012-09-09 15:50:31 +02:00
Martin Hasoň
535cea507f
Avoid memory leak in SocketHandler (substr function in the first iteration)
2012-08-02 13:21:20 +02:00
Martin Hasoň
26adcea582
Enabled float timeouts in SocketHandler
2012-08-02 13:10:43 +02:00
Jordi Boggiano
b42da84c12
Minor CS fixes, updated changelog
2012-04-22 16:36:31 +02:00
Pablo de Leon Belloc
a35db5bcdb
SocketHandler: Coding standard fixes. Remove redundant test.
2012-04-01 20:43:39 -03:00
Pablo Belloc
bee3e1bca4
Remove SocketHandler's ConnecitonException and WriteToSocketException - replace them with \UnexpectedValueException and \RuntimeException respectively
2012-03-28 08:49:25 -03:00