tracy
tracy copied to clipboard
Fix PhpStan suggestions
- bug fix
- BC break? yes
Fixed PhpStan suggestions.
New errors:
------ ------------------------------------------------------------------------
Line Bridges/Nette/TracyExtension.php
------ ------------------------------------------------------------------------
103 Cannot access property $netteMailer on array|object.
105 Cannot access property $fromEmail on array|object.
110 Cannot access property $bar on array|object.
112 Strict comparison using === between '' and '@' will always evaluate to
false.
130 Cannot access property $blueScreen on array|object.
------ ------------------------------------------------------------------------
------ -------------------------------------------------------------------
Line Tracy/Debugger/Debugger.php
------ -------------------------------------------------------------------
374 Access to an undefined property ErrorException::$context.
379 Access to an undefined property ErrorException::$context.
387 Access to an undefined property ErrorException::$context.
401 Access to an undefined property ErrorException::$context.
402 Access to an undefined property ErrorException::$skippable.
407 Access to an undefined property Tracy\IBarPanel::$data.
446 Negated boolean expression is always false.
460 Negated boolean expression is always false.
463 Access to an undefined property Tracy\DefaultBarPanel::$cpuUsage.
478 Negated boolean expression is always false.
489 Negated boolean expression is always false.
------ -------------------------------------------------------------------
------ -------------------------------------------------------------------
Line Tracy/Dumper/Dumper.php
------ -------------------------------------------------------------------
505 Parameter #1 $character of function ord expects string, float|int
given.
------ -------------------------------------------------------------------
------ ----------------------------------------------------------
Line Tracy/Helpers.php
------ ----------------------------------------------------------
214 Access to an undefined property Throwable::$tracyAction.
------ ----------------------------------------------------------
Old errors:
------ -------------------------------------------------------------------------
Line Bridges/Nette/Bridge.php
------ -------------------------------------------------------------------------
36 Class Latte\CompileException not found.
39 Access to property $sourceName on an unknown class
Latte\CompileException.
42 Access to property $sourceName on an unknown class
Latte\CompileException.
43 Access to property $sourceLine on an unknown class
Latte\CompileException.
43 Access to property $sourceName on an unknown class
Latte\CompileException.
44 Access to property $sourceLine on an unknown class
Latte\CompileException.
44 Access to property $sourceLine on an unknown class
Latte\CompileException.
44 Access to property $sourceName on an unknown class
Latte\CompileException.
47 Access to property $sourceCode on an unknown class
Latte\CompileException.
47 Access to property $sourceLine on an unknown class
Latte\CompileException.
72 Class Latte\CompileException not found.
73 Access to property $sourceName on an unknown class
Latte\CompileException.
74 Call to method getMessage() on an unknown class Latte\CompileException.
75 Call to method getMessage() on an unknown class Latte\CompileException.
78 Access to property $sourceLine on an unknown class
Latte\CompileException.
78 Access to property $sourceName on an unknown class
Latte\CompileException.
------ -------------------------------------------------------------------------
------ -------------------------------------------------------------------------
Line Bridges/Nette/MailSender.php
------ -------------------------------------------------------------------------
24 Property Tracy\Bridges\Nette\MailSender::$mailer has unknown class
Nette\Mail\IMailer as its type.
30 Parameter $mailer of method
Tracy\Bridges\Nette\MailSender::__construct() has invalid typehint type
Nette\Mail\IMailer.
44 Instantiated class Nette\Mail\Message not found.
45 Call to method setHeader() on an unknown class Nette\Mail\Message.
47 Call to method setFrom() on an unknown class Nette\Mail\Message.
50 Call to method addTo() on an unknown class Nette\Mail\Message.
52 Call to method setSubject() on an unknown class Nette\Mail\Message.
53 Call to method setBody() on an unknown class Nette\Mail\Message.
55 Call to method send() on an unknown class Nette\Mail\IMailer.
------ -------------------------------------------------------------------------
------ ------------------------------------------------------
Line Bridges/Nette/TracyExtension.php
------ ------------------------------------------------------
103 Cannot access property $netteMailer on array|object.
103 Class Nette\Mail\IMailer not found.
105 Cannot access property $fromEmail on array|object.
110 Cannot access property $bar on array|object.
122 Class Nette\Http\Session not found.
128 Cannot access property $blueScreen on array|object.
------ ------------------------------------------------------
------ ------------------------------------------------------------------------
Line Tracy/Debugger/Debugger.php
------ ------------------------------------------------------------------------
31 Static property Tracy\Debugger::$productionMode (bool) does not accept
default value of type null.
374 Access to an undefined property ErrorException::$context.
379 Access to an undefined property ErrorException::$context.
387 Access to an undefined property ErrorException::$context.
401 Access to an undefined property ErrorException::$context.
402 Access to an undefined property ErrorException::$skippable.
407 Access to an undefined property Tracy\IBarPanel::$data.
446 Negated boolean expression is always false.
460 Negated boolean expression is always false.
463 Access to an undefined property Tracy\DefaultBarPanel::$cpuUsage.
478 Negated boolean expression is always false.
489 Negated boolean expression is always false.
------ ------------------------------------------------------------------------
------ -------------------------------------------------------------------
Line Tracy/Dumper/Dumper.php
------ -------------------------------------------------------------------
185 Variable $options might not be defined.
189 Variable $options might not be defined.
192 Variable $options might not be defined.
504 Parameter #1 $character of function ord expects string, float|int
given.
545 PHPDoc tag @param references unknown parameter: $k
------ -------------------------------------------------------------------
------ ----------------------------------------------------------
Line Tracy/Helpers.php
------ ----------------------------------------------------------
215 Access to an undefined property Throwable::$tracyAction.
216 Variable $replace might not be defined.
216 Variable $replace might not be defined.
253 Variable $i might not be defined.
254 Variable $i might not be defined.
255 Variable $i might not be defined.
255 Variable $i might not be defined.
------ ----------------------------------------------------------
------ ----------------------------------
Line Tracy/Logger/Logger.php
------ ----------------------------------
166 Right side of && is always true.
------ ----------------------------------