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"?>
|
<?xml version="1.0"?>
|
||||||
<psalm
|
<psalm
|
||||||
totallyTyped="true"
|
totallyTyped="false"
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
xmlns="https://getpsalm.org/schema/config"
|
xmlns="https://getpsalm.org/schema/config"
|
||||||
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
|
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
|
||||||
@@ -18,12 +18,5 @@
|
|||||||
<UndefinedFunction errorLevel="suppress"/>
|
<UndefinedFunction errorLevel="suppress"/>
|
||||||
<UndefinedClass errorLevel="suppress"/>
|
<UndefinedClass errorLevel="suppress"/>
|
||||||
<UndefinedDocblockClass 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>
|
</issueHandlers>
|
||||||
</psalm>
|
</psalm>
|
||||||
@@ -82,7 +82,6 @@ class Backtrace_Formatter {
|
|||||||
* @return string
|
* @return string
|
||||||
*
|
*
|
||||||
* @psalm-suppress PossiblyFalseOperand
|
* @psalm-suppress PossiblyFalseOperand
|
||||||
* @psalm-suppress MixedInferredReturnType
|
|
||||||
*/
|
*/
|
||||||
protected function shorten_include( string $item ): string {
|
protected function shorten_include( string $item ): string {
|
||||||
|
|
||||||
|
|||||||
@@ -36,8 +36,6 @@ class Toolbar_Manager {
|
|||||||
* Render interface and add to the toolbar.
|
* Render interface and add to the toolbar.
|
||||||
*
|
*
|
||||||
* @param \WP_Admin_Bar $wp_admin_bar WordPress core toolbar object.
|
* @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 {
|
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.
|
* @param array $values Configuration values to apply.
|
||||||
* @psalm-param array<string, mixed> $values
|
* @psalm-param array<string, mixed> $values
|
||||||
*
|
|
||||||
* @psalm-suppress MixedArgument
|
|
||||||
* @psalm-suppress MixedAssignment
|
|
||||||
*/
|
*/
|
||||||
public function __construct( array $values = [] ) {
|
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.
|
* Start Stopwatch and timing plugin load immediately, then set up core events and needed hooks.
|
||||||
*
|
|
||||||
* @psalm-suppress MixedAssignment
|
|
||||||
*/
|
*/
|
||||||
public function run(): void {
|
public function run(): void {
|
||||||
|
|
||||||
|
|||||||
@@ -42,14 +42,7 @@ class Record_Provider implements ServiceProviderInterface, Bootable_Provider_Int
|
|||||||
return new Lazy_Proxy_Collector( $laps['collectors'] );
|
return new Lazy_Proxy_Collector( $laps['collectors'] );
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
|
||||||
* @psalm-suppress MixedInferredReturnType
|
|
||||||
*/
|
|
||||||
$pimple['records'] = function ( Plugin $laps ): array {
|
$pimple['records'] = function ( Plugin $laps ): array {
|
||||||
/**
|
|
||||||
* @psalm-suppress MixedMethodCall
|
|
||||||
* @psalm-suppress MixedReturnStatement
|
|
||||||
*/
|
|
||||||
return $laps['records.lazy']->get_records();
|
return $laps['records.lazy']->get_records();
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -37,8 +37,6 @@ class Sql_Collector implements Record_Collector_Interface {
|
|||||||
* @param string $query SQL query.
|
* @param string $query SQL query.
|
||||||
*
|
*
|
||||||
* @return string
|
* @return string
|
||||||
*
|
|
||||||
* @psalm-suppress MixedPropertyFetch
|
|
||||||
*/
|
*/
|
||||||
public function query( $query ): string {
|
public function query( $query ): string {
|
||||||
|
|
||||||
@@ -61,7 +59,6 @@ class Sql_Collector implements Record_Collector_Interface {
|
|||||||
|
|
||||||
global $wpdb;
|
global $wpdb;
|
||||||
|
|
||||||
/** @psalm-suppress MixedPropertyFetch */
|
|
||||||
if ( empty( $wpdb->queries ) ) {
|
if ( empty( $wpdb->queries ) ) {
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user