Disabled Mixed Psalm errors because I quit.

This commit is contained in:
Andrey Savchenko committed 2019-06-16 00:24:03 +03:00
1 parent f8f5e436e5
commit a2ae665dd2
6 files changed
+1 -26

No files matched your search

-1
View File
@@ -82,7 +82,6 @@ class Backtrace_Formatter {
* @return string
*
* @psalm-suppress PossiblyFalseOperand
* @psalm-suppress MixedInferredReturnType
*/
protected function shorten_include( string $item ): string {
-2
View File
@@ -36,8 +36,6 @@ class Toolbar_Manager {
* Render interface and add to the toolbar.
*
* @param \WP_Admin_Bar $wp_admin_bar WordPress core toolbar object.
*
* @psalm-suppress MixedArgument
*/
public function admin_bar_menu( \WP_Admin_Bar $wp_admin_bar ): void {
-5
View File
@@ -21,9 +21,6 @@ class Plugin extends Container {
/**
* @param array $values Configuration values to apply.
* @psalm-param array<string, mixed> $values
*
* @psalm-suppress MixedArgument
* @psalm-suppress MixedAssignment
*/
public function __construct( array $values = [] ) {
@@ -64,8 +61,6 @@ class Plugin extends Container {
/**
* Start Stopwatch and timing plugin load immediately, then set up core events and needed hooks.
*
* @psalm-suppress MixedAssignment
*/
public function run(): void {
-7
View File
@@ -42,14 +42,7 @@ class Record_Provider implements ServiceProviderInterface, Bootable_Provider_Int
return new Lazy_Proxy_Collector( $laps['collectors'] );
};
/**
* @psalm-suppress MixedInferredReturnType
*/
$pimple['records'] = function ( Plugin $laps ): array {
/**
* @psalm-suppress MixedMethodCall
* @psalm-suppress MixedReturnStatement
*/
return $laps['records.lazy']->get_records();
};
}
-3
View File
@@ -37,8 +37,6 @@ class Sql_Collector implements Record_Collector_Interface {
* @param string $query SQL query.
*
* @return string
*
* @psalm-suppress MixedPropertyFetch
*/
public function query( $query ): string {
@@ -61,7 +59,6 @@ class Sql_Collector implements Record_Collector_Interface {
global $wpdb;
/** @psalm-suppress MixedPropertyFetch */
if ( empty( $wpdb->queries ) ) {
return [];
}