Skip to content

Commit

Permalink
chore: update phpstan baseline
Browse files Browse the repository at this point in the history
  • Loading branch information
EdieLemoine committed Nov 14, 2024
1 parent 078a6e4 commit 97425f2
Showing 1 changed file with 11 additions and 20 deletions.
31 changes: 11 additions & 20 deletions phpstan-baseline.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,76 +2,67 @@

$ignoreErrors = [];
$ignoreErrors[] = [
// identifier: isset.offset
'message' => '#^Offset \'date\' on array\\{date\\: string, timezone\\: string, timezone_type\\: int\\} in isset\\(\\) always exists and is not nullable\\.$#',
'count' => 1,
'path' => __DIR__ . '/src/Base/Model/Model.php',
];
$ignoreErrors[] = [
// identifier: return.phpDocType
'message' => '#^PHPDoc tag @return with type void is incompatible with native type string\\.$#',
'count' => 1,
'path' => __DIR__ . '/src/Base/Model/Model.php',
];
$ignoreErrors[] = [
// identifier: assign.propertyType
'message' => '#^Static property MyParcelNL\\\\Pdk\\\\Base\\\\PdkBootstrapper\\:\\:\\$pdk \\(MyParcelNL\\\\Pdk\\\\Base\\\\Pdk\\) does not accept MyParcelNL\\\\Pdk\\\\Base\\\\Concern\\\\PdkInterface\\.$#',
'count' => 1,
'path' => __DIR__ . '/src/Base/PdkBootstrapper.php',
];
$ignoreErrors[] = [
// identifier: booleanNot.alwaysTrue
'message' => '#^Negated boolean expression is always true\\.$#',
'count' => 2,
'path' => __DIR__ . '/src/Base/Service/CurrencyService.php',
];
$ignoreErrors[] = [
'message' => '#^Negated boolean expression is always false\\.$#',
'count' => 1,
'path' => __DIR__ . '/src/Base/Support/Arr.php',
];
$ignoreErrors[] = [
'message' => '#^PHPDoc tag @mixin contains invalid type MyParcelNL\\\\Pdk\\\\Carrier\\\\Concern\\\\HasDeprecatedSubscriptionId\\.$#',
'count' => 1,
'path' => __DIR__ . '/src/Carrier/Model/Carrier.php',
];
$ignoreErrors[] = [
// identifier: return.phpDocType
'message' => '#^PHPDoc tag @return with type void is incompatible with native type MyParcelNL\\\\Pdk\\\\Settings\\\\Model\\\\Settings\\.$#',
'count' => 1,
'path' => __DIR__ . '/src/Settings/Repository/AbstractPdkSettingsRepository.php',
];
$ignoreErrors[] = [
// identifier: varTag.differentVariable
'message' => '#^Variable \\$existing in PHPDoc tag @var does not match assigned variable \\$id\\.$#',
'count' => 1,
'path' => __DIR__ . '/src/Settings/Repository/AbstractPdkSettingsRepository.php',
];
$ignoreErrors[] = [
// identifier: return.phpDocType
'message' => '#^PHPDoc tag @return with type void is incompatible with native type array\\.$#',
'count' => 1,
'path' => __DIR__ . '/src/Shipment/Collection/ShipmentCollection.php',
];
$ignoreErrors[] = [
// identifier: method.notFound
'message' => '#^Call to an undefined method MyParcelNL\\\\Pdk\\\\Api\\\\Contract\\\\ApiServiceInterface\\:\\:getBaseUrl\\(\\)\\.$#',
'count' => 1,
'path' => __DIR__ . '/src/Shipment/Repository/ShipmentRepository.php',
];
$ignoreErrors[] = [
// identifier: return.phpDocType
'message' => '#^PHPDoc tag @return with type MyParcelNL\\\\Pdk\\\\Shipment\\\\Collection\\\\ShipmentCollection is incompatible with native type string\\.$#',
'count' => 1,
'path' => __DIR__ . '/src/Shipment/Repository/ShipmentRepository.php',
];
$ignoreErrors[] = [
'message' => '#^Property MyParcelNL\\\\Pdk\\\\Shipment\\\\Request\\\\FetchShipmentsRequest\\:\\:\\$ids \\(MyParcelNL\\\\Pdk\\\\Base\\\\Support\\\\Collection\\) does not accept MyParcelNL\\\\Sdk\\\\src\\\\Support\\\\Collection\\.$#',
'count' => 1,
'path' => __DIR__ . '/src/Shipment/Request/FetchShipmentsRequest.php',
];
$ignoreErrors[] = [
'message' => '#^Property MyParcelNL\\\\Pdk\\\\Shipment\\\\Request\\\\FetchShipmentsRequest\\:\\:\\$referenceIdentifiers \\(MyParcelNL\\\\Pdk\\\\Base\\\\Support\\\\Collection\\) does not accept MyParcelNL\\\\Sdk\\\\src\\\\Support\\\\Collection\\.$#',
'count' => 1,
'path' => __DIR__ . '/src/Shipment/Request/FetchShipmentsRequest.php',
];
$ignoreErrors[] = [
// identifier: nullCoalesce.offset
'message' => '#^Offset \'positions\' on array\\{string, string\\} on left side of \\?\\? does not exist\\.$#',
'count' => 1,
'path' => __DIR__ . '/src/Shipment/Request/GetLabelsRequest.php',
];
$ignoreErrors[] = [
// identifier: method.notFound
'message' => '#^Call to an undefined method DateTimeInterface\\:\\:modify\\(\\)\\.$#',
'count' => 1,
'path' => __DIR__ . '/src/Shipment/Service/DropOffService.php',
Expand Down

0 comments on commit 97425f2

Please sign in to comment.