Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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)
------------------
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
160 changes: 80 additions & 80 deletions mise.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions src/MinFraud.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@
* ```
*
* If the request fails, an exception is thrown.
*
* @final
*/
class MinFraud extends MinFraud\ServiceClient implements \JsonSerializable
{
Expand Down
2 changes: 2 additions & 0 deletions src/MinFraud/Model/BillingAddress.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

/**
* Model containing information about the billing address.
*
* @final
*/
// phpcs:disable
class BillingAddress extends Address {}
2 changes: 2 additions & 0 deletions src/MinFraud/Model/CreditCard.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

/**
* Model with details about the credit card used.
*
* @final
*/
class CreditCard implements \JsonSerializable
{
Expand Down
2 changes: 2 additions & 0 deletions src/MinFraud/Model/Device.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
*
* @link https://dev.maxmind.com/minfraud/track-devices/?lang=en Device Tracking
* Add-on
*
* @final
*/
class Device implements \JsonSerializable
{
Expand Down
2 changes: 2 additions & 0 deletions src/MinFraud/Model/Disposition.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
2 changes: 2 additions & 0 deletions src/MinFraud/Model/Email.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

/**
* Model containing information about the email address.
*
* @final
*/
class Email implements \JsonSerializable
{
Expand Down
2 changes: 2 additions & 0 deletions src/MinFraud/Model/EmailDomain.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

/**
* Model containing information about the email domain.
*
* @final
*/
class EmailDomain implements \JsonSerializable
{
Expand Down
2 changes: 2 additions & 0 deletions src/MinFraud/Model/EmailDomainVisit.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
2 changes: 2 additions & 0 deletions src/MinFraud/Model/Factors.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

/**
* Model representing the Factors response.
*
* @final
*/
class Factors extends Insights
{
Expand Down
2 changes: 2 additions & 0 deletions src/MinFraud/Model/GeoIp2Location.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

/**
* Model of the GeoIP Location information, including the local time.
*
* @final
*/
class GeoIp2Location extends Location
{
Expand Down
2 changes: 2 additions & 0 deletions src/MinFraud/Model/IpRiskReason.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
2 changes: 2 additions & 0 deletions src/MinFraud/Model/Issuer.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

/**
* Model containing information about the card issuer.
*
* @final
*/
class Issuer implements \JsonSerializable
{
Expand Down
2 changes: 2 additions & 0 deletions src/MinFraud/Model/Phone.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

/**
* Model containing information about the billing or shipping phone number.
*
* @final
*/
class Phone implements \JsonSerializable
{
Expand Down
Loading
Loading