Skip to content

Commit 03b51d1

Browse files
authored
Remove max_breadcrumbs limit (#1890)
1 parent 82dca2e commit 03b51d1

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/Options.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1457,13 +1457,13 @@ private function validateDsnOption($dsn): bool
14571457
}
14581458

14591459
/**
1460-
* Validates if the value of the max_breadcrumbs option is in range.
1460+
* Validates if the value of the max_breadcrumbs option is valid.
14611461
*
14621462
* @param int $value The value to validate
14631463
*/
14641464
private function validateMaxBreadcrumbsOptions(int $value): bool
14651465
{
1466-
return $value >= 0 && $value <= self::DEFAULT_MAX_BREADCRUMBS;
1466+
return $value >= 0;
14671467
}
14681468

14691469
/**

tests/OptionsTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -586,7 +586,7 @@ public static function maxBreadcrumbsOptionIsValidatedCorrectlyDataProvider(): a
586586
[true, 0],
587587
[true, 1],
588588
[true, Options::DEFAULT_MAX_BREADCRUMBS],
589-
[false, Options::DEFAULT_MAX_BREADCRUMBS + 1],
589+
[true, Options::DEFAULT_MAX_BREADCRUMBS + 1],
590590
[false, 'string'],
591591
[false, '1'],
592592
];

0 commit comments

Comments
 (0)