Skip to content

Commit

Permalink
fix: remove scalar type in parameter
Browse files Browse the repository at this point in the history
Remove scalar types for parameters and remove private visibility from constants declaration so docs build does not fail. Docs builds run on PHP 5.6.
  • Loading branch information
yenfryherrerafeliz committed Jan 24, 2024
1 parent a85127e commit 142e957
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/Credentials/InstanceProfileProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ class InstanceProfileProvider
const DEFAULT_AWS_EC2_METADATA_V1_DISABLED = false;
const ENDPOINT_MODE_IPv4 = 'IPv4';
const ENDPOINT_MODE_IPv6 = 'IPv6';
private const DEFAULT_METADATA_SERVICE_IPv4_ENDPOINT = 'http://169.254.169.254';
private const DEFAULT_METADATA_SERVICE_IPv6_ENDPOINT = 'http://[fd00:ec2::254]';
const DEFAULT_METADATA_SERVICE_IPv4_ENDPOINT = 'http://169.254.169.254';
const DEFAULT_METADATA_SERVICE_IPv6_ENDPOINT = 'http://[fd00:ec2::254]';

/** @var string */
private $profile;
Expand Down Expand Up @@ -430,12 +430,11 @@ private function resolveEndpointMode(): string
/**
* This method checks for whether a provide URI is valid.
* @param string $uri this parameter is the uri to do the validation against to.
* if the value for $uri is null.
*
* @return string|null
*/
private function isValidEndpoint(
string $uri
$uri
): bool
{
// We make sure first the provided uri is a valid URL
Expand Down

0 comments on commit 142e957

Please sign in to comment.