Skip to content
Snippets Groups Projects
Select Git revision
  • 71e0f62730ccc1bcc4116e999e6359d8675d04ba
  • master default protected
  • devel
  • feature/add-escaping-to-templates
  • feature/add-priority-sorting
  • 3.3.0
  • 3.2.1
  • 3.2.0
  • 3.1.0
  • 3.0.0
  • 2.4.12
  • 2.4.11
  • 2.4.10
  • 2.4.9
  • 2.4.8
  • 2.4.7
  • 2.4.6
  • 2.4.5
  • 2.4.4
  • 2.4.2
  • 2.4.1
  • 2.4.0
  • 2.3.2
  • 2.3.1
  • 2.3
25 results

.phpstan-baseline.php

Blame
  • .phpstan-baseline.php 18.20 KiB
    <?php declare(strict_types = 1);
    
    $ignoreErrors = [];
    $ignoreErrors[] = [
    	'message' => '#^Method WPDesk\\\\Forms\\\\Field\\\\BasicField\\:\\:get_type\\(\\) should return string but returns mixed\\.$#',
    	'identifier' => 'return.type',
    	'count' => 1,
    	'path' => __DIR__ . '/src/Field/BasicField.php',
    ];
    $ignoreErrors[] = [
    	'message' => '#^Method WPDesk\\\\Forms\\\\Field\\\\BasicField\\:\\:unset_attribute\\(\\) has invalid return type WPDesk\\\\Forms\\\\Field\\\\Traits\\\\HtmlAttributes\\.$#',
    	'identifier' => 'return.trait',
    	'count' => 1,
    	'path' => __DIR__ . '/src/Field/BasicField.php',
    ];
    $ignoreErrors[] = [
    	'message' => '#^Method WPDesk\\\\Forms\\\\Field\\\\BasicField\\:\\:unset_attribute\\(\\) should return WPDesk\\\\Forms\\\\Field\\\\Traits\\\\HtmlAttributes but returns \\$this\\(WPDesk\\\\Forms\\\\Field\\\\BasicField\\)\\.$#',
    	'identifier' => 'return.type',
    	'count' => 1,
    	'path' => __DIR__ . '/src/Field/BasicField.php',
    ];
    $ignoreErrors[] = [
    	'message' => '#^Offset \'class\' on array\\{placeholder\\: string, name\\: string, id\\: string, class\\: array\\<string\\>\\} on left side of \\?\\? always exists and is not nullable\\.$#',
    	'identifier' => 'nullCoalesce.offset',
    	'count' => 1,
    	'path' => __DIR__ . '/src/Field/BasicField.php',
    ];
    $ignoreErrors[] = [
    	'message' => '#^Offset \'data\' on array\\{default_value\\: string, possible_values\\?\\: array\\<string\\>, sublabel\\?\\: string, priority\\: int, label\\: string, description\\: string, description_tip\\: string, data\\: array\\<int\\|string\\>\\} on left side of \\?\\? always exists and is not nullable\\.$#',
    	'identifier' => 'nullCoalesce.offset',
    	'count' => 1,
    	'path' => __DIR__ . '/src/Field/BasicField.php',
    ];
    $ignoreErrors[] = [
    	'message' => '#^Offset \'default_value\' on array\\{default_value\\: string, possible_values\\?\\: array\\<string\\>, sublabel\\?\\: string, priority\\: int, label\\: string, description\\: string, description_tip\\: string, data\\: array\\<int\\|string\\>\\} on left side of \\?\\? always exists and is not nullable\\.$#',
    	'identifier' => 'nullCoalesce.offset',
    	'count' => 1,
    	'path' => __DIR__ . '/src/Field/BasicField.php',
    ];
    $ignoreErrors[] = [
    	'message' => '#^Offset \'description\' on array\\{default_value\\: string, possible_values\\?\\: array\\<string\\>, sublabel\\?\\: string, priority\\: int, label\\: string, description\\: string, description_tip\\: string, data\\: array\\<int\\|string\\>\\} on left side of \\?\\? always exists and is not nullable\\.$#',
    	'identifier' => 'nullCoalesce.offset',
    	'count' => 1,
    	'path' => __DIR__ . '/src/Field/BasicField.php',
    ];
    $ignoreErrors[] = [
    	'message' => '#^Offset \'description_tip\' on array\\{default_value\\: string, possible_values\\?\\: array\\<string\\>, sublabel\\?\\: string, priority\\: int, label\\: string, description\\: string, description_tip\\: string, data\\: array\\<int\\|string\\>\\} on left side of \\?\\? always exists and is not nullable\\.$#',
    	'identifier' => 'nullCoalesce.offset',
    	'count' => 1,
    	'path' => __DIR__ . '/src/Field/BasicField.php',
    ];
    $ignoreErrors[] = [
    	'message' => '#^Offset \'disabled\' on array\\{placeholder\\: string, name\\: string, id\\: string, class\\: array\\<string\\>\\} on left side of \\?\\? does not exist\\.$#',
    	'identifier' => 'nullCoalesce.offset',
    	'count' => 1,
    	'path' => __DIR__ . '/src/Field/BasicField.php',
    ];
    $ignoreErrors[] = [
    	'message' => '#^Offset \'id\' on array\\{placeholder\\: string, name\\: string, id\\: string, class\\: array\\<string\\>\\} on left side of \\?\\? always exists and is not nullable\\.$#',
    	'identifier' => 'nullCoalesce.offset',
    	'count' => 1,
    	'path' => __DIR__ . '/src/Field/BasicField.php',
    ];
    $ignoreErrors[] = [
    	'message' => '#^Offset \'label\' on array\\{default_value\\: string, possible_values\\?\\: array\\<string\\>, sublabel\\?\\: string, priority\\: int, label\\: string, description\\: string, description_tip\\: string, data\\: array\\<int\\|string\\>\\} on left side of \\?\\? always exists and is not nullable\\.$#',
    	'identifier' => 'nullCoalesce.offset',
    	'count' => 1,
    	'path' => __DIR__ . '/src/Field/BasicField.php',
    ];
    $ignoreErrors[] = [