Adjusted bunch of inline doc to make Psalm pass again.
This commit is contained in:
1 parent
f4f659c95a
commit
dc88dcce1e
5 files changed
+8
-7
No files matched your search
@@ -18,5 +18,6 @@
|
||||
<UndefinedFunction errorLevel="suppress"/>
|
||||
<UndefinedClass errorLevel="suppress"/>
|
||||
<UndefinedDocblockClass errorLevel="suppress"/>
|
||||
<UndefinedConstant errorLevel="suppress"/>
|
||||
</issueHandlers>
|
||||
</psalm>
|
||||
@@ -76,12 +76,12 @@ class Backtrace_Formatter {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @psalm-suppress PossiblyFalseOperand
|
||||
*
|
||||
* @param string $item Backtrace item.
|
||||
*
|
||||
* @return string
|
||||
*
|
||||
* @psalm-suppress PossiblyFalseOperand
|
||||
*/
|
||||
protected function shorten_include( string $item ): string {
|
||||
|
||||
|
||||
@@ -11,12 +11,12 @@ class Mustache_Cache_FrozenCache extends \Mustache_Cache_FilesystemCache {
|
||||
/**
|
||||
* Cache and load a compiled Mustache_Template class.
|
||||
*
|
||||
* @psalm-suppress InvalidScalarArgument
|
||||
*
|
||||
* @param string $key Key.
|
||||
* @param string $value Value.
|
||||
*
|
||||
* @return void
|
||||
*
|
||||
* @psalm-suppress InvalidScalarArgument
|
||||
*/
|
||||
public function cache( $key, $value ): void {
|
||||
|
||||
|
||||
@@ -61,9 +61,7 @@ class Http_Collector extends Stopwatch_Collector {
|
||||
* @param array $args HTTP request arguments.
|
||||
* @param string $url The request URL.
|
||||
*
|
||||
* @return mixed
|
||||
*
|
||||
* @noinspection MoreThanThreeArgumentsInspection
|
||||
* @return array|\WP_Error
|
||||
*/
|
||||
public function http_api_debug( $response, string $type, $class, array $args, string $url ) {
|
||||
|
||||
|
||||
@@ -31,6 +31,8 @@ class Plugin_Load_Collector implements Record_Collector_Interface {
|
||||
* Records time for a plugin that just finished loading.
|
||||
*
|
||||
* @param string $plugin Plugin file path.
|
||||
*
|
||||
* @psalm-suppress DocblockTypeContradiction
|
||||
*/
|
||||
public function plugin_loaded( $plugin ): void {
|
||||
|
||||
|
||||
Reference in new issue
Block a user