Skip to content

Commit 5f85e65

Browse files
authored
Merge pull request #1077 from ErikBooij/1.x
Rename Boolean in phpDocs to bool on 1.x
2 parents 07681ea + ecdfdc9 commit 5f85e65

24 files changed

+62
-62
lines changed

src/Monolog/Handler/AbstractHandler.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ abstract class AbstractHandler implements HandlerInterface
3232
protected $processors = array();
3333

3434
/**
35-
* @param int $level The minimum logging level at which this handler will be triggered
36-
* @param Boolean $bubble Whether the messages that are handled can bubble up the stack or not
35+
* @param int $level The minimum logging level at which this handler will be triggered
36+
* @param bool $bubble Whether the messages that are handled can bubble up the stack or not
3737
*/
3838
public function __construct($level = Logger::DEBUG, $bubble = true)
3939
{
@@ -141,8 +141,8 @@ public function getLevel()
141141
/**
142142
* Sets the bubbling behavior.
143143
*
144-
* @param Boolean $bubble true means that this handler allows bubbling.
145-
* false means that bubbling is not permitted.
144+
* @param bool $bubble true means that this handler allows bubbling.
145+
* false means that bubbling is not permitted.
146146
* @return self
147147
*/
148148
public function setBubble($bubble)
@@ -155,8 +155,8 @@ public function setBubble($bubble)
155155
/**
156156
* Gets the bubbling behavior.
157157
*
158-
* @return Boolean true means that this handler allows bubbling.
159-
* false means that bubbling is not permitted.
158+
* @return bool true means that this handler allows bubbling.
159+
* false means that bubbling is not permitted.
160160
*/
161161
public function getBubble()
162162
{

src/Monolog/Handler/AbstractSyslogHandler.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ abstract class AbstractSyslogHandler extends AbstractProcessingHandler
5353
);
5454

5555
/**
56-
* @param mixed $facility
57-
* @param int $level The minimum logging level at which this handler will be triggered
58-
* @param Boolean $bubble Whether the messages that are handled can bubble up the stack or not
56+
* @param mixed $facility
57+
* @param int $level The minimum logging level at which this handler will be triggered
58+
* @param bool $bubble Whether the messages that are handled can bubble up the stack or not
5959
*/
6060
public function __construct($facility = LOG_USER, $level = Logger::DEBUG, $bubble = true)
6161
{

src/Monolog/Handler/BufferHandler.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ class BufferHandler extends AbstractHandler
3434
* @param HandlerInterface $handler Handler.
3535
* @param int $bufferLimit How many entries should be buffered at most, beyond that the oldest items are removed from the buffer.
3636
* @param int $level The minimum logging level at which this handler will be triggered
37-
* @param Boolean $bubble Whether the messages that are handled can bubble up the stack or not
38-
* @param Boolean $flushOnOverflow If true, the buffer is flushed when the max size has been reached, by default oldest entries are discarded
37+
* @param bool $bubble Whether the messages that are handled can bubble up the stack or not
38+
* @param bool $flushOnOverflow If true, the buffer is flushed when the max size has been reached, by default oldest entries are discarded
3939
*/
4040
public function __construct(HandlerInterface $handler, $bufferLimit = 0, $level = Logger::DEBUG, $bubble = true, $flushOnOverflow = false)
4141
{

src/Monolog/Handler/ChromePHPHandler.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class ChromePHPHandler extends AbstractProcessingHandler
4545
*
4646
* Chrome limits the headers to 256KB, so when we sent 240KB we stop sending
4747
*
48-
* @var Boolean
48+
* @var bool
4949
*/
5050
protected static $overflowed = false;
5151

@@ -58,8 +58,8 @@ class ChromePHPHandler extends AbstractProcessingHandler
5858
protected static $sendHeaders = true;
5959

6060
/**
61-
* @param int $level The minimum logging level at which this handler will be triggered
62-
* @param Boolean $bubble Whether the messages that are handled can bubble up the stack or not
61+
* @param int $level The minimum logging level at which this handler will be triggered
62+
* @param bool $bubble Whether the messages that are handled can bubble up the stack or not
6363
*/
6464
public function __construct($level = Logger::DEBUG, $bubble = true)
6565
{

src/Monolog/Handler/DeduplicationHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ class DeduplicationHandler extends BufferHandler
6060
* @param string $deduplicationStore The file/path where the deduplication log should be kept
6161
* @param int $deduplicationLevel The minimum logging level for log records to be looked at for deduplication purposes
6262
* @param int $time The period (in seconds) during which duplicate entries should be suppressed after a given log is sent through
63-
* @param Boolean $bubble Whether the messages that are handled can bubble up the stack or not
63+
* @param bool $bubble Whether the messages that are handled can bubble up the stack or not
6464
*/
6565
public function __construct(HandlerInterface $handler, $deduplicationStore = null, $deduplicationLevel = Logger::ERROR, $time = 60, $bubble = true)
6666
{

src/Monolog/Handler/ElasticSearchHandler.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@ class ElasticSearchHandler extends AbstractProcessingHandler
4646
protected $options = array();
4747

4848
/**
49-
* @param Client $client Elastica Client object
50-
* @param array $options Handler configuration
51-
* @param int $level The minimum logging level at which this handler will be triggered
52-
* @param Boolean $bubble Whether the messages that are handled can bubble up the stack or not
49+
* @param Client $client Elastica Client object
50+
* @param array $options Handler configuration
51+
* @param int $level The minimum logging level at which this handler will be triggered
52+
* @param bool $bubble Whether the messages that are handled can bubble up the stack or not
5353
*/
5454
public function __construct(Client $client, array $options = array(), $level = Logger::DEBUG, $bubble = true)
5555
{

src/Monolog/Handler/ErrorLogHandler.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ class ErrorLogHandler extends AbstractProcessingHandler
2828
protected $expandNewlines;
2929

3030
/**
31-
* @param int $messageType Says where the error should go.
32-
* @param int $level The minimum logging level at which this handler will be triggered
33-
* @param Boolean $bubble Whether the messages that are handled can bubble up the stack or not
34-
* @param Boolean $expandNewlines If set to true, newlines in the message will be expanded to be take multiple log entries
31+
* @param int $messageType Says where the error should go.
32+
* @param int $level The minimum logging level at which this handler will be triggered
33+
* @param bool $bubble Whether the messages that are handled can bubble up the stack or not
34+
* @param bool $expandNewlines If set to true, newlines in the message will be expanded to be take multiple log entries
3535
*/
3636
public function __construct($messageType = self::OPERATING_SYSTEM, $level = Logger::DEBUG, $bubble = true, $expandNewlines = false)
3737
{

src/Monolog/Handler/FilterHandler.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,15 @@ class FilterHandler extends AbstractHandler
4040
/**
4141
* Whether the messages that are handled can bubble up the stack or not
4242
*
43-
* @var Boolean
43+
* @var bool
4444
*/
4545
protected $bubble;
4646

4747
/**
4848
* @param callable|HandlerInterface $handler Handler or factory callable($record, $this).
4949
* @param int|array $minLevelOrList A list of levels to accept or a minimum level if maxLevel is provided
5050
* @param int $maxLevel Maximum level to accept, only used if $minLevelOrList is not an array
51-
* @param Boolean $bubble Whether the messages that are handled can bubble up the stack or not
51+
* @param bool $bubble Whether the messages that are handled can bubble up the stack or not
5252
*/
5353
public function __construct($handler, $minLevelOrList = Logger::DEBUG, $maxLevel = Logger::EMERGENCY, $bubble = true)
5454
{

src/Monolog/Handler/FingersCrossed/ActivationStrategyInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ interface ActivationStrategyInterface
2222
* Returns whether the given record activates the handler.
2323
*
2424
* @param array $record
25-
* @return Boolean
25+
* @return bool
2626
*/
2727
public function isHandlerActivated(array $record);
2828
}

src/Monolog/Handler/FingersCrossedHandler.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ class FingersCrossedHandler extends AbstractHandler
4141
* @param callable|HandlerInterface $handler Handler or factory callable($record, $fingersCrossedHandler).
4242
* @param int|ActivationStrategyInterface $activationStrategy Strategy which determines when this handler takes action
4343
* @param int $bufferSize How many entries should be buffered at most, beyond that the oldest items are removed from the buffer.
44-
* @param Boolean $bubble Whether the messages that are handled can bubble up the stack or not
45-
* @param Boolean $stopBuffering Whether the handler should stop buffering after being triggered (default true)
44+
* @param bool $bubble Whether the messages that are handled can bubble up the stack or not
45+
* @param bool $stopBuffering Whether the handler should stop buffering after being triggered (default true)
4646
* @param int $passthruLevel Minimum level to always flush to handler on close, even if strategy not triggered
4747
*/
4848
public function __construct($handler, $activationStrategy = null, $bufferSize = 0, $bubble = true, $stopBuffering = true, $passthruLevel = null)

0 commit comments

Comments
 (0)