@@ -588,12 +588,13 @@ protected function validateBoolean($value)
588
588
* Validates a given threshold.
589
589
*
590
590
* @param float|int $value
591
+ * @param string $context
591
592
*
592
593
* @throws InvalidArgumentException
593
594
*
594
595
* @return float
595
596
*/
596
- protected function validateThreshold ($ value , string $ context = '' )
597
+ protected function validateThreshold ($ value , $ context = '' )
597
598
{
598
599
$ threshold = (float ) $ value ;
599
600
if ($ threshold < 0 ) {
@@ -626,12 +627,13 @@ protected function validateThreshold($value, string $context = '')
626
627
* Validates a given duration.
627
628
*
628
629
* @param string $value
630
+ * @param string $context
629
631
*
630
632
* @throws InvalidArgumentException
631
633
*
632
634
* @return int
633
635
*/
634
- protected function validateDuration ($ value , string $ context = '' )
636
+ protected function validateDuration ($ value , $ context = '' )
635
637
{
636
638
if (!isset (self ::$ validDurations [$ value ])) {
637
639
$ durations = array_keys (self ::$ validDurations );
@@ -667,12 +669,13 @@ protected function typeName($service)
667
669
*
668
670
* @param string $value
669
671
* @param int|null $limit
672
+ * @param string $context
670
673
*
671
674
* @throws InvalidArgumentException
672
675
*
673
676
* @return int
674
677
*/
675
- protected function validateInstanceCount ($ value , $ limit , string $ context = '' )
678
+ protected function validateInstanceCount ($ value , $ limit , $ context = '' )
676
679
{
677
680
$ count = (int ) $ value ;
678
681
if ($ count != $ value || $ value <= 0 ) {
0 commit comments