diff --git a/composer.json b/composer.json index 117e949..0a65f8f 100755 --- a/composer.json +++ b/composer.json @@ -9,13 +9,13 @@ "homepage": "https://yoti.com", "license": "MIT", "require": { - "php": "^7.1 || ^8.0 || ^8.1", + "php": "^7.4 || ^8.0 || ^8.1", "yoti/yoti-php-sdk": "^4.2" }, "require-dev": { "phpunit/phpunit": "^7.5 || ^8.5 || ^9.3", "squizlabs/php_codesniffer": "^3.4", - "friendsofphp/php-cs-fixer": "^3.4", + "friendsofphp/php-cs-fixer": "3.62.0", "brainmaestro/composer-git-hooks": "^2.8", "phpstan/phpstan-strict-rules": "^0.12.1", "phpstan/extension-installer": "^1.0", diff --git a/src/Aml/SandboxProfile.php b/src/Aml/SandboxProfile.php index b817aaf..f386fde 100644 --- a/src/Aml/SandboxProfile.php +++ b/src/Aml/SandboxProfile.php @@ -38,7 +38,7 @@ class SandboxProfile implements \JsonSerializable /** * Full address. * - * @var \Yoti\Sandbox\Aml\Address + * @var \Yoti\Sandbox\Aml\SandboxAddress */ private $amlAddress; @@ -47,7 +47,7 @@ class SandboxProfile implements \JsonSerializable * * @param string $givenNames * @param string $familyName - * @param \Yoti\Aml\Address $amlAddress + * @param \Yoti\Sandbox\Aml\SandboxAddress $amlAddress * @param null|string $ssn */ public function __construct($givenNames, $familyName, SandboxAddress $amlAddress, string $ssn = null) diff --git a/src/Aml/SandboxResult.php b/src/Aml/SandboxResult.php index eaf776a..0282327 100644 --- a/src/Aml/SandboxResult.php +++ b/src/Aml/SandboxResult.php @@ -124,7 +124,8 @@ public static function checkAttributes(array $result, ResponseInterface $respons // Throw an error if any expected attribute is missing. if (count($missingAttr) > 0) { - throw new SandboxAmlException('Missing attributes from the result: ' . implode(',', $missingAttr), $response); + throw new SandboxAmlException('Missing attributes from the result: ' + . implode(',', $missingAttr), $response); } } diff --git a/src/Aml/SandboxService.php b/src/Aml/SandboxService.php index 50314e0..6bc8365 100644 --- a/src/Aml/SandboxService.php +++ b/src/Aml/SandboxService.php @@ -6,9 +6,9 @@ use Psr\Http\Message\ResponseInterface; use Yoti\Constants; -use Yoti\Sandbox\Exception\SandboxAmlException; use Yoti\Http\Payload; use Yoti\Http\RequestBuilder; +use Yoti\Sandbox\Exception\SandboxAmlException; use Yoti\Util\Config; use Yoti\Util\Json; use Yoti\Util\PemFile;