1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-08 14:16:42 +02:00

Merge pull request #648 from deguif/fix-undeclared-properties

Fixed undeclared properties
This commit is contained in:
Jordi Boggiano
2015-09-17 16:29:05 +01:00
5 changed files with 11 additions and 1 deletions

View File

@@ -20,8 +20,8 @@ use Monolog\Logger;
*/ */
class MandrillHandler extends MailHandler class MandrillHandler extends MailHandler
{ {
protected $client;
protected $message; protected $message;
protected $apiKey;
/** /**
* @param string $apiKey A valid Mandrill API key * @param string $apiKey A valid Mandrill API key

View File

@@ -15,6 +15,10 @@ class UdpSocket
{ {
const DATAGRAM_MAX_LENGTH = 65023; const DATAGRAM_MAX_LENGTH = 65023;
protected $ip;
protected $port;
protected $socket;
public function __construct($ip, $port = 514) public function __construct($ip, $port = 514)
{ {
$this->ip = $ip; $this->ip = $ip;

View File

@@ -21,6 +21,8 @@ use Monolog\Handler\SyslogUdp\UdpSocket;
*/ */
class SyslogUdpHandler extends AbstractSyslogHandler class SyslogUdpHandler extends AbstractSyslogHandler
{ {
protected $socket;
/** /**
* @param string $host * @param string $host
* @param int $port * @param int $port

View File

@@ -3,6 +3,8 @@ namespace Monolog\Formatter;
class ScalarFormatterTest extends \PHPUnit_Framework_TestCase class ScalarFormatterTest extends \PHPUnit_Framework_TestCase
{ {
private $formatter;
public function setUp() public function setUp()
{ {
$this->formatter = new ScalarFormatter(); $this->formatter = new ScalarFormatter();

View File

@@ -15,6 +15,8 @@ use Monolog\TestCase;
class DynamoDbHandlerTest extends TestCase class DynamoDbHandlerTest extends TestCase
{ {
private $client;
public function setUp() public function setUp()
{ {
if (!class_exists('Aws\DynamoDb\DynamoDbClient')) { if (!class_exists('Aws\DynamoDb\DynamoDbClient')) {