Skip to content

Commit cd36780

Browse files
committed
typo, fixed types
1 parent 0d90117 commit cd36780

5 files changed

Lines changed: 14 additions & 12 deletions

File tree

src/Bridges/Nette/MailSender.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public function __construct(Nette\Mail\IMailer $mailer, $fromEmail = null)
3333

3434

3535
/**
36-
* @param string|\Exception|\Throwable $message
36+
* @param mixed $message
3737
* @param string $email
3838
* @return void
3939
*/

src/Tracy/Debugger.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -596,7 +596,7 @@ public static function barDump($var, $title = null, array $options = null)
596596

597597
/**
598598
* Logs message or exception.
599-
* @param string|\Exception|\Throwable $message
599+
* @param mixed $message
600600
* @return mixed
601601
*/
602602
public static function log($message, $priority = ILogger::INFO)

src/Tracy/Dumper.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
namespace Tracy;
99

1010

11-
1211
/**
1312
* Dumps a variable.
1413
*/
@@ -238,7 +237,7 @@ private static function dumpObject(&$var, $options, $level)
238237
$editorAttributes = '';
239238
if ($options[self::LOCATION] & self::LOCATION_CLASS) {
240239
$rc = $var instanceof \Closure ? new \ReflectionFunction($var) : new \ReflectionClass($var);
241-
$editor = Helpers::editorUri($rc->getFileName(), $rc->getStartLine());
240+
$editor = $rc->getFileName() ? Helpers::editorUri($rc->getFileName(), $rc->getStartLine()) : null;
242241
if ($editor) {
243242
$editorAttributes = Helpers::formatHtml(
244243
' title="Declared in file % on line %" data-tracy-href="%"',

src/Tracy/FireLogger.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
namespace Tracy;
99

1010

11-
1211
/**
1312
* FireLogger console logger.
1413
*

src/Tracy/Logger.php

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313
*/
1414
class Logger implements ILogger
1515
{
16-
/** @var string name of the directory where errors should be logged */
16+
/** @var string|null name of the directory where errors should be logged */
1717
public $directory;
1818

19-
/** @var string|array email or emails to which send error notifications */
19+
/** @var string|array|null email or emails to which send error notifications */
2020
public $email;
2121

2222
/** @var string|null sender of email notifications */
@@ -32,6 +32,10 @@ class Logger implements ILogger
3232
private $blueScreen;
3333

3434

35+
/**
36+
* @param string|null $directory
37+
* @param string|array|null $email
38+
*/
3539
public function __construct($directory, $email = null, BlueScreen $blueScreen = null)
3640
{
3741
$this->directory = $directory;
@@ -43,8 +47,8 @@ public function __construct($directory, $email = null, BlueScreen $blueScreen =
4347

4448
/**
4549
* Logs message or exception to file and sends email notification.
46-
* @param string|\Exception|\Throwable $message
47-
* @param int $priority one of constant ILogger::INFO, WARNING, ERROR (sends email), EXCEPTION (sends email), CRITICAL (sends email)
50+
* @param mixed $message
51+
* @param string $priority one of constant ILogger::INFO, WARNING, ERROR (sends email), EXCEPTION (sends email), CRITICAL (sends email)
4852
* @return string|null logged error filename
4953
*/
5054
public function log($message, $priority = self::INFO)
@@ -102,7 +106,7 @@ public static function formatMessage($message)
102106

103107

104108
/**
105-
* @param string|\Exception|\Throwable $message
109+
* @param mixed $message
106110
* @return string
107111
*/
108112
public static function formatLogLine($message, $exceptionFile = null)
@@ -155,7 +159,7 @@ protected function logException($exception, $file = null)
155159

156160

157161
/**
158-
* @param string|\Exception|\Throwable $message
162+
* @param mixed $message
159163
* @return void
160164
*/
161165
protected function sendEmail($message)
@@ -177,7 +181,7 @@ protected function sendEmail($message)
177181

178182
/**
179183
* Default mailer.
180-
* @param string|\Exception|\Throwable $message
184+
* @param mixed $message
181185
* @param string $email
182186
* @return void
183187
* @internal

0 commit comments

Comments
 (0)