diff --git a/CHANGELOG.md b/CHANGELOG.md index 8b97b115..5b5f0e0f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,7 @@ CHANGELOG ========= -3.8.0 +3.8.0 (2026-11-18) ------------------ * `with()` now rejects non-array sections and shopping cart items with @@ -52,6 +52,21 @@ CHANGELOG `verificationTime` and `wasVerificationSuccessful` named arguments. Omit `was_verification_successful` if no verification was attempted. * Added `ryft` to the payment processor validation. +* The minimum version of `geoip2/geoip2` is now 3.5.0. `minfraud.phar` + bundles this version or later. The 3.7.0 phar bundled `maxmind-db/reader` + 1.13.1, which lacks the decoder limits for crafted databases + (GHSA-hj94-g986-h9r7). See the release notes for + [geoip2/geoip2 3.5.0](https://github.com/maxmind/GeoIP2-php/releases/tag/v3.5.0). +* Most concrete classes that no other class extends are now marked `@final`. + They will be `final` in the next major version. Static analyzers such as + PHPStan report a class that extends them. These classes stay open: + * `MaxMind\MinFraud\Model\Insights`, because + `MaxMind\MinFraud\Model\Factors` extends it. + * `MaxMind\MinFraud\Model\IpAddress` and + `MaxMind\MinFraud\Model\RiskScoreReason`, until the next major version. + With `@final`, PHPStan asks to narrow the `?array` return type of their + `jsonSerialize()` methods to `array`. That change would break a subclass + that overrides the method. 3.7.0 (2026-07-21) ------------------ diff --git a/README.md b/README.md index 56ba638e..0d182c92 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ You should now have the file `composer.phar` in your project directory. Run in your project root: ``` -php composer.phar require maxmind/minfraud:^3.7.0 +php composer.phar require maxmind/minfraud:^3.8.0 ``` You should now have the files `composer.json` and `composer.lock` as well as diff --git a/composer.json b/composer.json index cbf54b06..c6f9f139 100644 --- a/composer.json +++ b/composer.json @@ -19,7 +19,7 @@ "require": { "php": ">=8.1", "ext-json": "*", - "geoip2/geoip2": "^v3.4.0" + "geoip2/geoip2": "^v3.5.0" }, "require-dev": { "friendsofphp/php-cs-fixer": "^3.95", diff --git a/mise.lock b/mise.lock index bffaa389..e1daa878 100644 --- a/mise.lock +++ b/mise.lock @@ -1,88 +1,95 @@ # @generated - this file is auto-generated by `mise lock` https://mise.jdx.dev/dev-tools/mise-lock.html [[tools."github:box-project/box"]] -version = "4.7.0" +version = "4.7.1" backend = "github:box-project/box" [tools."github:box-project/box"."platforms.linux-arm64"] -checksum = "sha256:3d390eeaec33288098fe83f8a54c60cc575cb6be295f38ff4482b4b4f26f8d52" -url = "https://github.com/box-project/box/releases/download/4.7.0/box.phar" -url_api = "https://api.github.com/repos/box-project/box/releases/assets/376333812" +checksum = "sha256:aedabb38bad96a90868603f118956c3faa662b545c06be66df1b145aba703c0a" +checksum_source = "mise-versions" +url = "https://github.com/box-project/box/releases/download/4.7.1/box.phar" +url_api = "https://api.github.com/repos/box-project/box/releases/assets/681185755" [tools."github:box-project/box"."platforms.linux-arm64-musl"] -checksum = "sha256:3d390eeaec33288098fe83f8a54c60cc575cb6be295f38ff4482b4b4f26f8d52" -url = "https://github.com/box-project/box/releases/download/4.7.0/box.phar" -url_api = "https://api.github.com/repos/box-project/box/releases/assets/376333812" +checksum = "sha256:aedabb38bad96a90868603f118956c3faa662b545c06be66df1b145aba703c0a" +checksum_source = "mise-versions" +url = "https://github.com/box-project/box/releases/download/4.7.1/box.phar" +url_api = "https://api.github.com/repos/box-project/box/releases/assets/681185755" [tools."github:box-project/box"."platforms.linux-x64"] -checksum = "sha256:3d390eeaec33288098fe83f8a54c60cc575cb6be295f38ff4482b4b4f26f8d52" -url = "https://github.com/box-project/box/releases/download/4.7.0/box.phar" -url_api = "https://api.github.com/repos/box-project/box/releases/assets/376333812" +checksum = "sha256:aedabb38bad96a90868603f118956c3faa662b545c06be66df1b145aba703c0a" +checksum_source = "mise-versions" +url = "https://github.com/box-project/box/releases/download/4.7.1/box.phar" +url_api = "https://api.github.com/repos/box-project/box/releases/assets/681185755" [tools."github:box-project/box"."platforms.linux-x64-musl"] -checksum = "sha256:3d390eeaec33288098fe83f8a54c60cc575cb6be295f38ff4482b4b4f26f8d52" -url = "https://github.com/box-project/box/releases/download/4.7.0/box.phar" -url_api = "https://api.github.com/repos/box-project/box/releases/assets/376333812" +checksum = "sha256:aedabb38bad96a90868603f118956c3faa662b545c06be66df1b145aba703c0a" +checksum_source = "mise-versions" +url = "https://github.com/box-project/box/releases/download/4.7.1/box.phar" +url_api = "https://api.github.com/repos/box-project/box/releases/assets/681185755" [tools."github:box-project/box"."platforms.macos-arm64"] -checksum = "sha256:3d390eeaec33288098fe83f8a54c60cc575cb6be295f38ff4482b4b4f26f8d52" -url = "https://github.com/box-project/box/releases/download/4.7.0/box.phar" -url_api = "https://api.github.com/repos/box-project/box/releases/assets/376333812" +checksum = "sha256:aedabb38bad96a90868603f118956c3faa662b545c06be66df1b145aba703c0a" +checksum_source = "mise-versions" +url = "https://github.com/box-project/box/releases/download/4.7.1/box.phar" +url_api = "https://api.github.com/repos/box-project/box/releases/assets/681185755" [tools."github:box-project/box"."platforms.macos-x64"] -checksum = "sha256:3d390eeaec33288098fe83f8a54c60cc575cb6be295f38ff4482b4b4f26f8d52" -url = "https://github.com/box-project/box/releases/download/4.7.0/box.phar" -url_api = "https://api.github.com/repos/box-project/box/releases/assets/376333812" +checksum = "sha256:aedabb38bad96a90868603f118956c3faa662b545c06be66df1b145aba703c0a" +checksum_source = "mise-versions" +url = "https://github.com/box-project/box/releases/download/4.7.1/box.phar" +url_api = "https://api.github.com/repos/box-project/box/releases/assets/681185755" [tools."github:box-project/box"."platforms.windows-x64"] -checksum = "sha256:3d390eeaec33288098fe83f8a54c60cc575cb6be295f38ff4482b4b4f26f8d52" -url = "https://github.com/box-project/box/releases/download/4.7.0/box.phar" -url_api = "https://api.github.com/repos/box-project/box/releases/assets/376333812" +checksum = "sha256:aedabb38bad96a90868603f118956c3faa662b545c06be66df1b145aba703c0a" +checksum_source = "mise-versions" +url = "https://github.com/box-project/box/releases/download/4.7.1/box.phar" +url_api = "https://api.github.com/repos/box-project/box/releases/assets/681185755" [[tools."github:composer/composer"]] -version = "2.10.2" +version = "2.11.2" backend = "github:composer/composer" [tools."github:composer/composer"."platforms.linux-arm64"] -checksum = "sha256:5ee7125f8a30a34d246cefdc0bc85b8a783b28f2aec968994118512350d28027" -url = "https://github.com/composer/composer/releases/download/2.10.2/composer.phar" -url_api = "https://api.github.com/repos/composer/composer/releases/assets/463051343" +checksum = "sha256:dd158c0afd41d15fac89e1b4e47b5d42911fe316c3687cd5edac98319b25d028" +url = "https://github.com/composer/composer/releases/download/2.11.2/composer.phar" +url_api = "https://api.github.com/repos/composer/composer/releases/assets/730809739" provenance = "github-attestations" [tools."github:composer/composer"."platforms.linux-arm64-musl"] -checksum = "sha256:5ee7125f8a30a34d246cefdc0bc85b8a783b28f2aec968994118512350d28027" -url = "https://github.com/composer/composer/releases/download/2.10.2/composer.phar" -url_api = "https://api.github.com/repos/composer/composer/releases/assets/463051343" +checksum = "sha256:dd158c0afd41d15fac89e1b4e47b5d42911fe316c3687cd5edac98319b25d028" +url = "https://github.com/composer/composer/releases/download/2.11.2/composer.phar" +url_api = "https://api.github.com/repos/composer/composer/releases/assets/730809739" provenance = "github-attestations" [tools."github:composer/composer"."platforms.linux-x64"] -checksum = "sha256:5ee7125f8a30a34d246cefdc0bc85b8a783b28f2aec968994118512350d28027" -url = "https://github.com/composer/composer/releases/download/2.10.2/composer.phar" -url_api = "https://api.github.com/repos/composer/composer/releases/assets/463051343" +checksum = "sha256:dd158c0afd41d15fac89e1b4e47b5d42911fe316c3687cd5edac98319b25d028" +url = "https://github.com/composer/composer/releases/download/2.11.2/composer.phar" +url_api = "https://api.github.com/repos/composer/composer/releases/assets/730809739" provenance = "github-attestations" [tools."github:composer/composer"."platforms.linux-x64-musl"] -checksum = "sha256:5ee7125f8a30a34d246cefdc0bc85b8a783b28f2aec968994118512350d28027" -url = "https://github.com/composer/composer/releases/download/2.10.2/composer.phar" -url_api = "https://api.github.com/repos/composer/composer/releases/assets/463051343" +checksum = "sha256:dd158c0afd41d15fac89e1b4e47b5d42911fe316c3687cd5edac98319b25d028" +url = "https://github.com/composer/composer/releases/download/2.11.2/composer.phar" +url_api = "https://api.github.com/repos/composer/composer/releases/assets/730809739" provenance = "github-attestations" [tools."github:composer/composer"."platforms.macos-arm64"] -checksum = "sha256:5ee7125f8a30a34d246cefdc0bc85b8a783b28f2aec968994118512350d28027" -url = "https://github.com/composer/composer/releases/download/2.10.2/composer.phar" -url_api = "https://api.github.com/repos/composer/composer/releases/assets/463051343" +checksum = "sha256:dd158c0afd41d15fac89e1b4e47b5d42911fe316c3687cd5edac98319b25d028" +url = "https://github.com/composer/composer/releases/download/2.11.2/composer.phar" +url_api = "https://api.github.com/repos/composer/composer/releases/assets/730809739" provenance = "github-attestations" [tools."github:composer/composer"."platforms.macos-x64"] -checksum = "sha256:5ee7125f8a30a34d246cefdc0bc85b8a783b28f2aec968994118512350d28027" -url = "https://github.com/composer/composer/releases/download/2.10.2/composer.phar" -url_api = "https://api.github.com/repos/composer/composer/releases/assets/463051343" +checksum = "sha256:dd158c0afd41d15fac89e1b4e47b5d42911fe316c3687cd5edac98319b25d028" +url = "https://github.com/composer/composer/releases/download/2.11.2/composer.phar" +url_api = "https://api.github.com/repos/composer/composer/releases/assets/730809739" provenance = "github-attestations" [tools."github:composer/composer"."platforms.windows-x64"] -checksum = "sha256:5ee7125f8a30a34d246cefdc0bc85b8a783b28f2aec968994118512350d28027" -url = "https://github.com/composer/composer/releases/download/2.10.2/composer.phar" -url_api = "https://api.github.com/repos/composer/composer/releases/assets/463051343" +checksum = "sha256:dd158c0afd41d15fac89e1b4e47b5d42911fe316c3687cd5edac98319b25d028" +url = "https://github.com/composer/composer/releases/download/2.11.2/composer.phar" +url_api = "https://api.github.com/repos/composer/composer/releases/assets/730809739" provenance = "github-attestations" [[tools."github:phpDocumentor/phpDocumentor"]] @@ -125,43 +132,50 @@ url = "https://github.com/phpDocumentor/phpDocumentor/releases/download/v3.10.0/ url_api = "https://api.github.com/repos/phpDocumentor/phpDocumentor/releases/assets/419563924" [[tools.hugo]] -version = "0.164.0" +version = "0.170.0" backend = "aqua:gohugoio/hugo" [tools.hugo."platforms.linux-arm64"] -checksum = "sha256:948ee5f0ed30175f31937d592d63a2712f0761a69f1cbe812f780eb918a08b8e" -url = "https://github.com/gohugoio/hugo/releases/download/v0.164.0/hugo_0.164.0_linux-arm64.tar.gz" -url_api = "https://api.github.com/repos/gohugoio/hugo/releases/assets/468320173" +checksum = "sha256:4ec3acd12ac17dbffb34fa453d3630dc0926a2314c8cd4964a550cfa9a4dbc73" +checksum_source = "mise-versions" +url = "https://github.com/gohugoio/hugo/releases/download/v0.170.0/hugo_0.170.0_linux-arm64.tar.gz" +url_api = "https://api.github.com/repos/gohugoio/hugo/releases/assets/744015900" [tools.hugo."platforms.linux-arm64-musl"] -checksum = "sha256:948ee5f0ed30175f31937d592d63a2712f0761a69f1cbe812f780eb918a08b8e" -url = "https://github.com/gohugoio/hugo/releases/download/v0.164.0/hugo_0.164.0_linux-arm64.tar.gz" -url_api = "https://api.github.com/repos/gohugoio/hugo/releases/assets/468320173" +checksum = "sha256:4ec3acd12ac17dbffb34fa453d3630dc0926a2314c8cd4964a550cfa9a4dbc73" +checksum_source = "mise-versions" +url = "https://github.com/gohugoio/hugo/releases/download/v0.170.0/hugo_0.170.0_linux-arm64.tar.gz" +url_api = "https://api.github.com/repos/gohugoio/hugo/releases/assets/744015900" [tools.hugo."platforms.linux-x64"] -checksum = "sha256:d9c8b17285ea4ec004d9f814273ea910f2051ce02c284993fd1f91ba455ae50d" -url = "https://github.com/gohugoio/hugo/releases/download/v0.164.0/hugo_0.164.0_linux-amd64.tar.gz" -url_api = "https://api.github.com/repos/gohugoio/hugo/releases/assets/468320170" +checksum = "sha256:0930754ec22ad2dd1a252f8c31a5e57faccc9d15f1c3d381ddafcb96eeb8aef0" +checksum_source = "mise-versions" +url = "https://github.com/gohugoio/hugo/releases/download/v0.170.0/hugo_0.170.0_linux-amd64.tar.gz" +url_api = "https://api.github.com/repos/gohugoio/hugo/releases/assets/744015902" [tools.hugo."platforms.linux-x64-musl"] -checksum = "sha256:d9c8b17285ea4ec004d9f814273ea910f2051ce02c284993fd1f91ba455ae50d" -url = "https://github.com/gohugoio/hugo/releases/download/v0.164.0/hugo_0.164.0_linux-amd64.tar.gz" -url_api = "https://api.github.com/repos/gohugoio/hugo/releases/assets/468320170" +checksum = "sha256:0930754ec22ad2dd1a252f8c31a5e57faccc9d15f1c3d381ddafcb96eeb8aef0" +checksum_source = "mise-versions" +url = "https://github.com/gohugoio/hugo/releases/download/v0.170.0/hugo_0.170.0_linux-amd64.tar.gz" +url_api = "https://api.github.com/repos/gohugoio/hugo/releases/assets/744015902" [tools.hugo."platforms.macos-arm64"] -checksum = "sha256:c994e2cc6946838bb76521039509a7ce71282827e7035e344b6c225a83a5d0d3" -url = "https://github.com/gohugoio/hugo/releases/download/v0.164.0/hugo_0.164.0_darwin-universal.pkg" -url_api = "https://api.github.com/repos/gohugoio/hugo/releases/assets/468320272" +checksum = "sha256:b9dfc437df19dfd44720caf2e0ba7f9ca5c2e61164f2f4c53456f74d6fa28d22" +checksum_source = "mise-versions" +url = "https://github.com/gohugoio/hugo/releases/download/v0.170.0/hugo_0.170.0_darwin-universal.pkg" +url_api = "https://api.github.com/repos/gohugoio/hugo/releases/assets/744016098" [tools.hugo."platforms.macos-x64"] -checksum = "sha256:c994e2cc6946838bb76521039509a7ce71282827e7035e344b6c225a83a5d0d3" -url = "https://github.com/gohugoio/hugo/releases/download/v0.164.0/hugo_0.164.0_darwin-universal.pkg" -url_api = "https://api.github.com/repos/gohugoio/hugo/releases/assets/468320272" +checksum = "sha256:b9dfc437df19dfd44720caf2e0ba7f9ca5c2e61164f2f4c53456f74d6fa28d22" +checksum_source = "mise-versions" +url = "https://github.com/gohugoio/hugo/releases/download/v0.170.0/hugo_0.170.0_darwin-universal.pkg" +url_api = "https://api.github.com/repos/gohugoio/hugo/releases/assets/744016098" [tools.hugo."platforms.windows-x64"] -checksum = "sha256:dadf3499d4c6a27f6bc9d56d5a992ba62d82a74a3771fcc165c364ec1eeaac1c" -url = "https://github.com/gohugoio/hugo/releases/download/v0.164.0/hugo_0.164.0_windows-amd64.zip" -url_api = "https://api.github.com/repos/gohugoio/hugo/releases/assets/468320283" +checksum = "sha256:56c2bc95f3fc0b6be060f0a4a23a0287fb3954c6595f6f170b49330366083df5" +checksum_source = "mise-versions" +url = "https://github.com/gohugoio/hugo/releases/download/v0.170.0/hugo_0.170.0_windows-amd64.zip" +url_api = "https://api.github.com/repos/gohugoio/hugo/releases/assets/744016110" [[tools.lychee]] version = "0.24.2" @@ -201,17 +215,3 @@ url_api = "https://api.github.com/repos/lycheeverse/lychee/releases/assets/40995 checksum = "sha256:32975d1493ee1a975d6bb41e4fb56fe419cb442ded628bb772ba2e614acfacad" url = "https://github.com/lycheeverse/lychee/releases/download/lychee-v0.24.2/lychee-x86_64-pc-windows-msvc.zip" url_api = "https://api.github.com/repos/lycheeverse/lychee/releases/assets/409959491" - -[[tools."ubi:box-project/box"]] -version = "4.7.0" -backend = "ubi:box-project/box" - -[tools."ubi:box-project/box".options] -exe = "box.phar" - -[[tools."ubi:phpDocumentor/phpDocumentor"]] -version = "3.10.0" -backend = "ubi:phpDocumentor/phpDocumentor" - -[tools."ubi:phpDocumentor/phpDocumentor".options] -exe = "phpDocumentor.phar" diff --git a/src/MinFraud.php b/src/MinFraud.php index 3352412a..2af8bfcb 100644 --- a/src/MinFraud.php +++ b/src/MinFraud.php @@ -38,6 +38,8 @@ * ``` * * If the request fails, an exception is thrown. + * + * @final */ class MinFraud extends MinFraud\ServiceClient implements \JsonSerializable { diff --git a/src/MinFraud/Model/BillingAddress.php b/src/MinFraud/Model/BillingAddress.php index 5f9efc65..01335f54 100644 --- a/src/MinFraud/Model/BillingAddress.php +++ b/src/MinFraud/Model/BillingAddress.php @@ -6,6 +6,8 @@ /** * Model containing information about the billing address. + * + * @final */ // phpcs:disable class BillingAddress extends Address {} diff --git a/src/MinFraud/Model/CreditCard.php b/src/MinFraud/Model/CreditCard.php index f984fe62..625a4da6 100644 --- a/src/MinFraud/Model/CreditCard.php +++ b/src/MinFraud/Model/CreditCard.php @@ -6,6 +6,8 @@ /** * Model with details about the credit card used. + * + * @final */ class CreditCard implements \JsonSerializable { diff --git a/src/MinFraud/Model/Device.php b/src/MinFraud/Model/Device.php index 33dfff1c..e0b7796d 100644 --- a/src/MinFraud/Model/Device.php +++ b/src/MinFraud/Model/Device.php @@ -12,6 +12,8 @@ * * @link https://dev.maxmind.com/minfraud/track-devices/?lang=en Device Tracking * Add-on + * + * @final */ class Device implements \JsonSerializable { diff --git a/src/MinFraud/Model/Disposition.php b/src/MinFraud/Model/Disposition.php index c999a249..d84c954a 100644 --- a/src/MinFraud/Model/Disposition.php +++ b/src/MinFraud/Model/Disposition.php @@ -8,6 +8,8 @@ * Model with the disposition set by custom rules. * * In order to receive a disposition, you must be using minFraud custom rules. + * + * @final */ class Disposition implements \JsonSerializable { diff --git a/src/MinFraud/Model/Email.php b/src/MinFraud/Model/Email.php index b9c73fa9..4c885e53 100644 --- a/src/MinFraud/Model/Email.php +++ b/src/MinFraud/Model/Email.php @@ -6,6 +6,8 @@ /** * Model containing information about the email address. + * + * @final */ class Email implements \JsonSerializable { diff --git a/src/MinFraud/Model/EmailDomain.php b/src/MinFraud/Model/EmailDomain.php index 687bf098..3b90b68a 100644 --- a/src/MinFraud/Model/EmailDomain.php +++ b/src/MinFraud/Model/EmailDomain.php @@ -6,6 +6,8 @@ /** * Model containing information about the email domain. + * + * @final */ class EmailDomain implements \JsonSerializable { diff --git a/src/MinFraud/Model/EmailDomainVisit.php b/src/MinFraud/Model/EmailDomainVisit.php index 9f4d27c4..fa8a69a6 100644 --- a/src/MinFraud/Model/EmailDomainVisit.php +++ b/src/MinFraud/Model/EmailDomainVisit.php @@ -10,6 +10,8 @@ * This object provides data from MaxMind's automated checks of domain * accessibility, including whether the domain is live, has errors, or * redirects to another location. + * + * @final */ class EmailDomainVisit implements \JsonSerializable { diff --git a/src/MinFraud/Model/Factors.php b/src/MinFraud/Model/Factors.php index 6268d06a..2a306474 100644 --- a/src/MinFraud/Model/Factors.php +++ b/src/MinFraud/Model/Factors.php @@ -6,6 +6,8 @@ /** * Model representing the Factors response. + * + * @final */ class Factors extends Insights { diff --git a/src/MinFraud/Model/GeoIp2Location.php b/src/MinFraud/Model/GeoIp2Location.php index 1ade4ac4..c79a3825 100644 --- a/src/MinFraud/Model/GeoIp2Location.php +++ b/src/MinFraud/Model/GeoIp2Location.php @@ -8,6 +8,8 @@ /** * Model of the GeoIP Location information, including the local time. + * + * @final */ class GeoIp2Location extends Location { diff --git a/src/MinFraud/Model/IpRiskReason.php b/src/MinFraud/Model/IpRiskReason.php index 606a396f..d5a8c1e3 100644 --- a/src/MinFraud/Model/IpRiskReason.php +++ b/src/MinFraud/Model/IpRiskReason.php @@ -25,6 +25,8 @@ * seen on this IP address. * * `MINFRAUD_NETWORK_ACTIVITY` - Suspicious activity has been seen on this * IP address across minFraud customers. + * + * @final */ class IpRiskReason implements \JsonSerializable { diff --git a/src/MinFraud/Model/Issuer.php b/src/MinFraud/Model/Issuer.php index 03d22d1a..87a6a12a 100644 --- a/src/MinFraud/Model/Issuer.php +++ b/src/MinFraud/Model/Issuer.php @@ -6,6 +6,8 @@ /** * Model containing information about the card issuer. + * + * @final */ class Issuer implements \JsonSerializable { diff --git a/src/MinFraud/Model/Phone.php b/src/MinFraud/Model/Phone.php index 692c8f51..8253e5d1 100644 --- a/src/MinFraud/Model/Phone.php +++ b/src/MinFraud/Model/Phone.php @@ -6,6 +6,8 @@ /** * Model containing information about the billing or shipping phone number. + * + * @final */ class Phone implements \JsonSerializable { diff --git a/src/MinFraud/Model/Reason.php b/src/MinFraud/Model/Reason.php index ab1a3eb5..0917a3e7 100644 --- a/src/MinFraud/Model/Reason.php +++ b/src/MinFraud/Model/Reason.php @@ -52,6 +52,8 @@ * * `EMAIL_ACTIVITY` - Riskiness of the email address based on minFraud network activity. * * `PHONE_ACTIVITY` - Riskiness of the phone number based on minFraud network activity. * * `SHIP_ACTIVITY` - Riskiness of ship address based on minFraud network activity. + * + * @final */ class Reason implements \JsonSerializable { diff --git a/src/MinFraud/Model/Score.php b/src/MinFraud/Model/Score.php index 6ff83523..3d22706f 100644 --- a/src/MinFraud/Model/Score.php +++ b/src/MinFraud/Model/Score.php @@ -6,6 +6,8 @@ /** * Model of the Score response. + * + * @final */ class Score implements \JsonSerializable { diff --git a/src/MinFraud/Model/ScoreIpAddress.php b/src/MinFraud/Model/ScoreIpAddress.php index 293fed5b..ea8dcc54 100644 --- a/src/MinFraud/Model/ScoreIpAddress.php +++ b/src/MinFraud/Model/ScoreIpAddress.php @@ -6,6 +6,8 @@ /** * Model containing the IP address's risk for the Score response. + * + * @final */ class ScoreIpAddress implements \JsonSerializable { diff --git a/src/MinFraud/Model/ShippingAddress.php b/src/MinFraud/Model/ShippingAddress.php index fc512b52..cd977a60 100644 --- a/src/MinFraud/Model/ShippingAddress.php +++ b/src/MinFraud/Model/ShippingAddress.php @@ -6,6 +6,8 @@ /** * Model containing properties of the shipping address. + * + * @final */ class ShippingAddress extends Address { diff --git a/src/MinFraud/Model/Subscores.php b/src/MinFraud/Model/Subscores.php index 04eb072e..d016adec 100644 --- a/src/MinFraud/Model/Subscores.php +++ b/src/MinFraud/Model/Subscores.php @@ -8,6 +8,8 @@ * The scores for risk factors that are used in calculating the riskScore. * * @deprecated use RiskScoreReason instead + * + * @final */ class Subscores implements \JsonSerializable { diff --git a/src/MinFraud/Model/Warning.php b/src/MinFraud/Model/Warning.php index 47d7e74d..4a0fccdd 100644 --- a/src/MinFraud/Model/Warning.php +++ b/src/MinFraud/Model/Warning.php @@ -31,6 +31,8 @@ * our database. * * `SHIPPING_POSTAL_NOT_FOUND` - the shipping postal could not be found in * our database. + * + * @final */ class Warning implements \JsonSerializable { diff --git a/src/MinFraud/ReportTransaction.php b/src/MinFraud/ReportTransaction.php index bc4f4006..32d9538b 100644 --- a/src/MinFraud/ReportTransaction.php +++ b/src/MinFraud/ReportTransaction.php @@ -10,6 +10,9 @@ use MaxMind\Exception\InvalidRequestException; use MaxMind\Exception\WebServiceException; +/** + * @final + */ class ReportTransaction extends ServiceClient { /** diff --git a/src/MinFraud/ServiceClient.php b/src/MinFraud/ServiceClient.php index a394ae5a..6dd4952f 100644 --- a/src/MinFraud/ServiceClient.php +++ b/src/MinFraud/ServiceClient.php @@ -10,7 +10,7 @@ abstract class ServiceClient { - public const VERSION = 'v3.7.0'; + public const VERSION = 'v3.8.0'; /** * @var Client diff --git a/src/MinFraud/Util.php b/src/MinFraud/Util.php index 77514613..8b6c80a0 100644 --- a/src/MinFraud/Util.php +++ b/src/MinFraud/Util.php @@ -9,6 +9,8 @@ * policy. * * @ignore + * + * @final */ class Util {