Skip to content

Commit

Permalink
Disabled Mixed Psalm errors because I quit.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rarst committed Jun 15, 2019
1 parent f8f5e43 commit a2ae665
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 26 deletions.
9 changes: 1 addition & 8 deletions psalm.xml
Original file line number Diff line number Diff line change
@@ -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"
Expand All @@ -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>
1 change: 0 additions & 1 deletion src/Formatter/Backtrace_Formatter.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ protected function filter( string $item ): bool {
* @return string
*
* @psalm-suppress PossiblyFalseOperand
* @psalm-suppress MixedInferredReturnType
*/
protected function shorten_include( string $item ): string {

Expand Down
2 changes: 0 additions & 2 deletions src/Manager/Toolbar_Manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@ public function __construct( Record_Collector_Interface $collector, Mustache_Eng
* 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 {

Expand Down
5 changes: 0 additions & 5 deletions src/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [] ) {

Expand Down Expand Up @@ -64,8 +61,6 @@ public function register( ServiceProviderInterface $provider, array $values = []

/**
* Start Stopwatch and timing plugin load immediately, then set up core events and needed hooks.
*
* @psalm-suppress MixedAssignment
*/
public function run(): void {

Expand Down
7 changes: 0 additions & 7 deletions src/Provider/Record_Provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,7 @@ public function register( Container $pimple ): void {
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();
};
}
Expand Down
3 changes: 0 additions & 3 deletions src/Record/Collector/Sql_Collector.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@ public function __construct() {
* @param string $query SQL query.
*
* @return string
*
* @psalm-suppress MixedPropertyFetch
*/
public function query( $query ): string {

Expand All @@ -61,7 +59,6 @@ public function get_records(): array {

global $wpdb;

/** @psalm-suppress MixedPropertyFetch */
if ( empty( $wpdb->queries ) ) {
return [];
}
Expand Down

0 comments on commit a2ae665

Please sign in to comment.