Skip to content

Commit a353b80

Browse files
authored
Merge pull request #184 from maxmind/greg/release
Release 3.2.0-beta.2
2 parents 3e144bd + 88f7dfc commit a353b80

35 files changed

Lines changed: 589 additions & 262 deletions

CHANGELOG.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
CHANGELOG
22
=========
33

4-
3.2.0
5-
----------------
4+
3.2.0-beta.2 (2024-11-15)
5+
-------------------------
66

77
* The minFraud Factors subscores have been deprecated. They will be removed
88
in March 2025. Please see [our release notes](https://dev.maxmind.com/minfraud/release-notes/2024/#deprecation-of-risk-factor-scoressubscores)
99
for more information.
10+
* The type hints in the PHPDocs have been improved.
1011

1112
3.2.0-beta.1 (2024-09-06)
1213
-------------------------

composer.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@
1919
"require": {
2020
"php": ">=8.1",
2121
"ext-json": "*",
22-
"geoip2/geoip2": "^v3.0.0",
23-
"maxmind/web-service-common": "^0.9.0"
22+
"geoip2/geoip2": "^v3.1.0"
2423
},
2524
"require-dev": {
2625
"friendsofphp/php-cs-fixer": "3.*",

dev-bin/release.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@ php composer.phar update --no-dev
4646

4747
perl -pi -e "s/(?<=const VERSION = ').+?(?=';)/$tag/g" src/MinFraud/ServiceClient.php
4848

49-
box_phar_hash='c24c400c424a68041d7af146c71943bf1acc0c5abafa45297c503b832b9c6b16 box.phar'
49+
box_phar_hash='8d12a7d69a5003a80bd603ea95a8f3dcea30b9a2ad84cd7cb15b8193929def9e box.phar'
5050

5151
if ! echo "$box_phar_hash" | sha256sum -c; then
52-
wget -O box.phar "https://github.com/box-project/box/releases/download/4.5.1/box.phar"
52+
wget -O box.phar "https://github.com/box-project/box/releases/download/4.6.1/box.phar"
5353
fi
5454

5555
echo "$box_phar_hash" | sha256sum -c
@@ -94,10 +94,10 @@ if [ -n "$(git status --porcelain)" ]; then
9494
fi
9595

9696
# Using Composer is possible, but they don't recommend it.
97-
phpdocumentor_phar_hash='bad7e4b8c99e73391bb3183a127593ecd1cd66ae42b4a33efe495d193e257f04 phpDocumentor.phar'
97+
phpdocumentor_phar_hash='9760ac280a10041928a8743354f68692c22f14cd5d05135dfc15e11d3b3c25ea phpDocumentor.phar'
9898

9999
if ! echo "$phpdocumentor_phar_hash" | sha256sum -c; then
100-
wget -O phpDocumentor.phar https://github.com/phpDocumentor/phpDocumentor/releases/download/v3.4.3/phpDocumentor.phar
100+
wget -O phpDocumentor.phar https://github.com/phpDocumentor/phpDocumentor/releases/download/v3.5.3/phpDocumentor.phar
101101
fi
102102

103103
echo "$phpdocumentor_phar_hash" | sha256sum -c

phpstan.neon

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,3 @@ parameters:
33
paths:
44
- src
55
- tests
6-
checkMissingIterableValueType: false

src/MinFraud.php

Lines changed: 190 additions & 183 deletions
Large diffs are not rendered by default.

src/MinFraud/Model/Address.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ abstract class Address implements \JsonSerializable
4141
*/
4242
public readonly ?float $longitude;
4343

44+
/**
45+
* @param array<string, mixed>|null $response
46+
*/
4447
public function __construct(?array $response)
4548
{
4649
$this->distanceToIpLocation = $response['distance_to_ip_location'] ?? null;
@@ -50,6 +53,9 @@ public function __construct(?array $response)
5053
$this->longitude = $response['longitude'] ?? null;
5154
}
5255

56+
/**
57+
* @return array<string, mixed>
58+
*/
5359
public function jsonSerialize(): array
5460
{
5561
$js = [];

src/MinFraud/Model/CreditCard.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ class CreditCard implements \JsonSerializable
6363
*/
6464
public readonly ?string $type;
6565

66+
/**
67+
* @param array<string, mixed>|null $response
68+
*/
6669
public function __construct(?array $response)
6770
{
6871
$this->issuer = new Issuer($response['issuer'] ?? []);
@@ -77,6 +80,9 @@ public function __construct(?array $response)
7780
$this->type = $response['type'] ?? null;
7881
}
7982

83+
/**
84+
* @return array<string, mixed>
85+
*/
8086
public function jsonSerialize(): array
8187
{
8288
$js = [];

src/MinFraud/Model/Device.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ class Device implements \JsonSerializable
4242
*/
4343
public readonly ?string $localTime;
4444

45+
/**
46+
* @param array<string, mixed>|null $response
47+
*/
4548
public function __construct(?array $response)
4649
{
4750
$this->confidence = $response['confidence'] ?? null;
@@ -50,6 +53,9 @@ public function __construct(?array $response)
5053
$this->localTime = $response['local_time'] ?? null;
5154
}
5255

56+
/**
57+
* @return array<string, mixed>
58+
*/
5359
public function jsonSerialize(): array
5460
{
5561
$js = [];

src/MinFraud/Model/Disposition.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,19 @@ class Disposition implements \JsonSerializable
3434
*/
3535
public readonly ?string $ruleLabel;
3636

37+
/**
38+
* @param array<string, mixed>|null $response
39+
*/
3740
public function __construct(?array $response)
3841
{
3942
$this->action = $response['action'] ?? null;
4043
$this->reason = $response['reason'] ?? null;
4144
$this->ruleLabel = $response['rule_label'] ?? null;
4245
}
4346

47+
/**
48+
* @return array<string, mixed>
49+
*/
4450
public function jsonSerialize(): array
4551
{
4652
$js = [];

src/MinFraud/Model/Email.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ class Email implements \JsonSerializable
4242
*/
4343
public readonly ?bool $isHighRisk;
4444

45+
/**
46+
* @param array<string, mixed>|null $response
47+
*/
4548
public function __construct(?array $response)
4649
{
4750
$this->domain = new EmailDomain($response['domain'] ?? null);
@@ -51,6 +54,9 @@ public function __construct(?array $response)
5154
$this->isHighRisk = $response['is_high_risk'] ?? null;
5255
}
5356

57+
/**
58+
* @return array<string, mixed>
59+
*/
5460
public function jsonSerialize(): array
5561
{
5662
$js = [];

0 commit comments

Comments
 (0)