Select Git revision
.phpstan-baseline.php
.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[] = [