Skip to content

Commit

Permalink
hints
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Jan 2, 2024
1 parent 86bdba4 commit 52629b1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Bridges/Nette/TracyExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public function getConfigSchema(): Nette\Schema\Schema
}


public function loadConfiguration()
public function loadConfiguration(): void
{
$builder = $this->getContainerBuilder();

Expand All @@ -76,7 +76,7 @@ public function loadConfiguration()
}


public function afterCompile(Nette\PhpGenerator\ClassType $class)
public function afterCompile(Nette\PhpGenerator\ClassType $class): void
{
$initialize = $this->initialization ?? new Nette\PhpGenerator\Closure;
$initialize->addBody('if (!Tracy\Debugger::isEnabled()) { return; }');
Expand Down
3 changes: 2 additions & 1 deletion src/Tracy/Debugger/Debugger.php
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ public static function enable(
// php configuration
if (function_exists('ini_set')) {
ini_set('display_errors', '0'); // or 'stderr'
ini_set('html_errors', '0');
ini_set('html_errors', '0'); // additionally turns off stack trace displaing by xdebug
ini_set('log_errors', '0');
ini_set('zend.exception_ignore_args', '0');
}
Expand Down Expand Up @@ -354,6 +354,7 @@ public static function errorHandler(
{
$error = error_get_last();
if (($error['type'] ?? null) === E_COMPILE_WARNING) {
// compile-warning does not trigger the handler, so we are testing it now
error_clear_last();
self::errorHandler($error['type'], $error['message'], $error['file'], $error['line']);
}
Expand Down

0 comments on commit 52629b1

Please sign in to comment.