Skip to content

Commit

Permalink
initialize arrays to avoid type errors
Browse files Browse the repository at this point in the history
  • Loading branch information
matthi4s committed Mar 20, 2019
1 parent 1b6119a commit 415f251
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/Analyser/PatternAnalyser.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class PatternAnalyser extends Analyser
/**
* @var array
*/
protected $possibleInsightClasses;
protected $possibleInsightClasses = [];

/**
* Set possible insight classes
Expand Down
2 changes: 1 addition & 1 deletion src/Analysis/Problem.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ abstract class Problem extends Insight implements ProblemInterface
/**
* @var array
*/
protected $solutions;
protected $solutions = [];

/**
* @var int
Expand Down
2 changes: 1 addition & 1 deletion src/Detective/Detective.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class Detective implements DetectiveInterface
/**
* @var array
*/
protected $possibleLogClasses;
protected $possibleLogClasses = [];

/**
* @var LogFileInterface
Expand Down
2 changes: 1 addition & 1 deletion src/Log/Entry.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class Entry implements EntryInterface
/**
* @var array
*/
protected $lines;
protected $lines = [];

/**
* @var mixed
Expand Down
2 changes: 1 addition & 1 deletion src/Log/Log.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public static function getDefaultParser()
/**
* @var array
*/
protected $entries;
protected $entries = [];

/**
* @var int
Expand Down
2 changes: 1 addition & 1 deletion src/Parser/PatternParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class PatternParser extends Parser
/**
* @var array
*/
protected $matches;
protected $matches = [];

/**
* @var string
Expand Down
2 changes: 1 addition & 1 deletion src/Printer/ModifiablePrinter.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ abstract class ModifiablePrinter extends Printer implements ModifiablePrinterInt
/**
* @var array
*/
protected $modifications;
protected $modifications = [];

/**
* Set all modifications replacing the current modifications
Expand Down

0 comments on commit 415f251

Please sign in to comment.