Skip to content

Commit 507da91

Browse files
pjcdawkinsRicardo Kirkner
authored andcommitted
Remove scalar type hints
1 parent fbe77c0 commit 507da91

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/Command/Autoscaling/AutoscalingSettingsSetCommand.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -588,12 +588,13 @@ protected function validateBoolean($value)
588588
* Validates a given threshold.
589589
*
590590
* @param float|int $value
591+
* @param string $context
591592
*
592593
* @throws InvalidArgumentException
593594
*
594595
* @return float
595596
*/
596-
protected function validateThreshold($value, string $context = '')
597+
protected function validateThreshold($value, $context = '')
597598
{
598599
$threshold = (float) $value;
599600
if ($threshold < 0) {
@@ -626,12 +627,13 @@ protected function validateThreshold($value, string $context = '')
626627
* Validates a given duration.
627628
*
628629
* @param string $value
630+
* @param string $context
629631
*
630632
* @throws InvalidArgumentException
631633
*
632634
* @return int
633635
*/
634-
protected function validateDuration($value, string $context = '')
636+
protected function validateDuration($value, $context = '')
635637
{
636638
if (!isset(self::$validDurations[$value])) {
637639
$durations = array_keys(self::$validDurations);
@@ -667,12 +669,13 @@ protected function typeName($service)
667669
*
668670
* @param string $value
669671
* @param int|null $limit
672+
* @param string $context
670673
*
671674
* @throws InvalidArgumentException
672675
*
673676
* @return int
674677
*/
675-
protected function validateInstanceCount($value, $limit, string $context = '')
678+
protected function validateInstanceCount($value, $limit, $context = '')
676679
{
677680
$count = (int) $value;
678681
if ($count != $value || $value <= 0) {

0 commit comments

Comments
 (0)