Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Exception.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class Exception extends \RuntimeException
* @param int $code The Exception code
* @param \Exception $previous The previous exception used for the exception chaining.
*/
public function __construct($message = "", $code = 0, \Exception $previous = null)
public function __construct($message = "", $code = 0, ?\Exception $previous = null)
{
if (!$code) {
$code = self::E_ANY;
Expand Down
2 changes: 1 addition & 1 deletion src/TableFormatter.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class TableFormatter
*
* @param Colors|null $colors
*/
public function __construct(Colors $colors = null)
public function __construct(?Colors $colors = null)
{
// try to get terminal width
$width = $this->getTerminalWidth();
Expand Down
Loading