Skip to content

Commit 04fd50a

Browse files
committed
3.5 issues
1 parent 0ab0ae2 commit 04fd50a

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

src/Debug/Dump/Html/Object/Methods.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public function dump(ObjectAbstraction $abs)
6969
protected function dumpItemInner($name, array $info, array $cfg)
7070
{
7171
return $this->dumpModifiers($info, $cfg) . ' '
72-
. $this->dumpName($name, $info)
72+
. $this->dumpName($name, $info, $cfg)
7373
. $this->dumpParams($info)
7474
. $this->dumpReturnType($info)
7575
. $this->dumpStaticVars($info)
@@ -90,10 +90,11 @@ protected function dumpItemInner($name, array $info, array $cfg)
9090
*
9191
* @param Abstraction|string $name Method name
9292
* @param array $info Method info
93+
* @param array $cfg options
9394
*
9495
* @return string html fragment
9596
*/
96-
protected function dumpName($name, array $info)
97+
protected function dumpName($name, array $info, array $cfg)
9798
{
9899
return $this->html->buildTag(
99100
'span',

src/Debug/Route/Stream.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
use bdk\Debug;
1616
use bdk\Debug\LogEntry;
1717
use bdk\PubSub\Event;
18-
use Exception;
18+
use ErrorException;
1919

2020
/**
2121
* Output log to a stream
@@ -85,7 +85,7 @@ public static function hasColorSupport($streamResource)
8585
if (\function_exists('posix_isatty')) {
8686
try {
8787
return \posix_isatty($streamResource);
88-
} catch (Exception $e) {
88+
} catch (ErrorException $e) {
8989
// do nothing
9090
}
9191
}

0 commit comments

Comments
 (0)