We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b3f43e4 commit 04f372fCopy full SHA for 04f372f
tests/Feature/ExportPostmanTest.php
@@ -389,7 +389,7 @@ public static function providerFormDataEnabled(): array
389
390
private function countCollectionItems(array $collectionItems)
391
{
392
- $sum = -3;
+ $sum = 0;
393
394
foreach ($collectionItems as $item) {
395
$sum += $this->retrieveRoutes($item);
@@ -400,6 +400,11 @@ private function countCollectionItems(array $collectionItems)
400
401
private function retrieveRoutes(array $route)
402
403
+ // Skip patch routes
404
+ if (isset($route['request']['method']) && $route['request']['method'] === 'PATCH') {
405
+ return 0;
406
+ }
407
+
408
if (isset($route['item'])) {
409
$sum = 0;
410
0 commit comments