Adjusted bunch of inline doc to make Psalm pass again.

This commit is contained in:
Andrey Savchenko committed 2020-02-21 18:22:53 +02:00
1 parent f4f659c95a
commit dc88dcce1e
5 files changed
+8 -7

No files matched your search

+1
View File
@@ -18,5 +18,6 @@
<UndefinedFunction errorLevel="suppress"/> <UndefinedFunction errorLevel="suppress"/>
<UndefinedClass errorLevel="suppress"/> <UndefinedClass errorLevel="suppress"/>
<UndefinedDocblockClass errorLevel="suppress"/> <UndefinedDocblockClass errorLevel="suppress"/>
<UndefinedConstant errorLevel="suppress"/>
</issueHandlers> </issueHandlers>
</psalm> </psalm>
+2 -2
View File
@@ -76,12 +76,12 @@ class Backtrace_Formatter {
} }
/** /**
*
* @psalm-suppress PossiblyFalseOperand
* *
* @param string $item Backtrace item. * @param string $item Backtrace item.
* *
* @return string * @return string
*
* @psalm-suppress PossiblyFalseOperand
*/ */
protected function shorten_include( string $item ): string { protected function shorten_include( string $item ): string {
+2 -2
View File
@@ -11,12 +11,12 @@ class Mustache_Cache_FrozenCache extends \Mustache_Cache_FilesystemCache {
/** /**
* Cache and load a compiled Mustache_Template class. * Cache and load a compiled Mustache_Template class.
* *
* @psalm-suppress InvalidScalarArgument
*
* @param string $key Key. * @param string $key Key.
* @param string $value Value. * @param string $value Value.
* *
* @return void * @return void
*
* @psalm-suppress InvalidScalarArgument
*/ */
public function cache( $key, $value ): void { public function cache( $key, $value ): void {
+1 -3
View File
@@ -61,9 +61,7 @@ class Http_Collector extends Stopwatch_Collector {
* @param array $args HTTP request arguments. * @param array $args HTTP request arguments.
* @param string $url The request URL. * @param string $url The request URL.
* *
* @return mixed * @return array|\WP_Error
*
* @noinspection MoreThanThreeArgumentsInspection
*/ */
public function http_api_debug( $response, string $type, $class, array $args, string $url ) { 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. * Records time for a plugin that just finished loading.
* *
* @param string $plugin Plugin file path. * @param string $plugin Plugin file path.
*
* @psalm-suppress DocblockTypeContradiction
*/ */
public function plugin_loaded( $plugin ): void { public function plugin_loaded( $plugin ): void {