Disabled Mixed Psalm errors because I quit.
This commit is contained in:
1 parent
f8f5e436e5
commit
a2ae665dd2
6 files changed
+1
-26
No files matched your search
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0"?>
|
||||
<psalm
|
||||
totallyTyped="true"
|
||||
totallyTyped="false"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xmlns="https://getpsalm.org/schema/config"
|
||||
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
|
||||
@@ -18,12 +18,5 @@
|
||||
<UndefinedFunction errorLevel="suppress"/>
|
||||
<UndefinedClass errorLevel="suppress"/>
|
||||
<UndefinedDocblockClass errorLevel="suppress"/>
|
||||
<MixedArgument>
|
||||
<errorLevel type="suppress">
|
||||
<file name="src/Provider/Record_Provider.php" />
|
||||
<file name="src/Provider/Manager_Provider.php" />
|
||||
<!-- <file name="src/Record/Collector/Hook_Collector.php" />-->
|
||||
</errorLevel>
|
||||
</MixedArgument>
|
||||
</issueHandlers>
|
||||
</psalm>
|
||||
@@ -82,7 +82,6 @@ class Backtrace_Formatter {
|
||||
* @return string
|
||||
*
|
||||
* @psalm-suppress PossiblyFalseOperand
|
||||
* @psalm-suppress MixedInferredReturnType
|
||||
*/
|
||||
protected function shorten_include( string $item ): string {
|
||||
|
||||
|
||||
@@ -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 {
|
||||
|
||||
|
||||
@@ -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 {
|
||||
|
||||
|
||||
@@ -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();
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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 [];
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user