Added psalm configuration and refined source.

This commit is contained in:
Andrey Savchenko committed 2018-11-30 18:15:38 +02:00
1 parent 4013046e4f
commit 70de78b276
13 files changed
+82 -4

No files matched your search

+5 -1
View File
@@ -8,7 +8,7 @@ namespace Rarst\Laps\Formatter;
*/
class Backtrace_Formatter {
/** @var array $skip String matches to omit. */
/** @var string[] $skip String matches to omit. */
protected static $skip = [
'wp-blog-header.php',
'wp-load.php',
@@ -74,9 +74,13 @@ class Backtrace_Formatter {
}
/**
*
* @param string $item Backtrace item.
*
* @return string
*
* @psalm-suppress PossiblyFalseOperand
* @psalm-suppress MixedInferredReturnType
*/
protected function shorten_include( string $item ): string {