Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix CS and php5.3 compat

commit 5785a9ac4aab1511baf2a1547fc0ca8e89631c38 1 parent 0524c87
@Seldaek authored
View
6 src/Monolog/Handler/Curl/Util.php
@@ -33,13 +33,11 @@ public static function execute($ch, $retries = 5, $closeAfterDone = true)
{
while ($retries--) {
if (curl_exec($ch) === false) {
-
$curlErrno = curl_errno($ch);
-
+
if (false === in_array($curlErrno, self::$retriableErrorCodes, true) || !$retries) {
-
$curlError = curl_error($ch);
-
+
if ($closeAfterDone) {
curl_close($ch);
}
View
2  src/Monolog/Handler/RollbarHandler.php
@@ -58,7 +58,7 @@ protected function write(array $record)
$exception = $context['exception'];
unset($context['exception']);
- $payload = [];
+ $payload = array();
if (isset($context['payload'])) {
$payload = $context['payload'];
unset($context['payload']);
View
2  src/Monolog/Processor/IntrospectionProcessor.php
@@ -91,7 +91,7 @@ public function __invoke(array $record)
return $record;
}
- private function isTraceClassOrSkippedFunction (array $trace, $index)
+ private function isTraceClassOrSkippedFunction(array $trace, $index)
{
if (!isset($trace[$index])) {
return false;
View
1  tests/Monolog/RegistryTest.php
@@ -130,7 +130,6 @@ public function testReplacesLogger()
$log1 = new Logger('test1');
$log2 = new Logger('test2');
-
Registry::addLogger($log1, 'log');
Registry::addLogger($log2, 'log', true);
Please sign in to comment.
Something went wrong with that request. Please try again.