Skip to content

Commit d6f6c4b

Browse files
committed
chore: bump php 8.2
I wish we could use 8.3 already. Signed-off-by: Jefersson Nathan <malukenho.dev@gmail.com>
1 parent 4777cc8 commit d6f6c4b

9 files changed

Lines changed: 17 additions & 17 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99

1010
strategy:
1111
matrix:
12-
php: ['8.1', '8.2']
12+
php: ['8.2']
1313
dependencies: ['normal', 'authoritative']
1414

1515
steps:

composer.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,22 +14,22 @@
1414
}
1515
],
1616
"require": {
17-
"php": "^8.1 || ^8.2",
17+
"php": "^8.2",
1818
"ext-json": "*",
1919
"ext-pdo": "*",
2020
"azjezz/psl": "^2.7.0",
21-
"doctrine/dbal": "^3.6.6",
21+
"doctrine/dbal": "^3.6.7",
2222
"doctrine/orm": "^2.16.2",
2323
"guzzlehttp/guzzle": "^7.8.0",
2424
"guzzlehttp/psr7": "^2.6.1",
2525
"psr/http-message": "2.0"
2626
},
2727
"require-dev": {
2828
"doctrine/coding-standard": "^12.0.0",
29-
"infection/infection": "^0.27.0",
30-
"maglnet/composer-require-checker": "^4.6.0",
29+
"infection/infection": "^0.27.2",
30+
"maglnet/composer-require-checker": "^4.7.0",
3131
"malukenho/mcbumpface": "^1.2.0",
32-
"phpunit/phpunit": "^10.3.3",
32+
"phpunit/phpunit": "^10.3.5",
3333
"roave/security-advisories": "dev-master",
3434
"staabm/annotate-pull-request-from-checkstyle": "^1.8.5"
3535
},

src/Soql/BoundValuesSeparator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
use function method_exists;
1212
use function sprintf;
1313

14-
final class BoundValuesSeparator
14+
final readonly class BoundValuesSeparator
1515
{
1616
private function __construct()
1717
{

src/Soql/DBAL/Result.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
use function Psl\invariant;
1313

14-
class Result extends DBALResult
14+
final class Result extends DBALResult
1515
{
1616
private DriverResult $storedResult;
1717

src/Soql/Driver/Result.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
use PDO;
1010
use PDOException;
1111

12-
final class Result implements DriverResultInterface
12+
final readonly class Result implements DriverResultInterface
1313
{
1414
public function __construct(private SoqlStatement $statement)
1515
{

src/Soql/Factory/Http/RequestThrottler.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99
use function explode;
1010
use function trim;
1111

12-
final class RequestThrottler
12+
final readonly class RequestThrottler
1313
{
1414
public const HEADER = 'Sforce-Limit-Info';
1515

16-
public function __construct(public readonly int $used, public readonly int $total)
16+
public function __construct(public int $used, public int $total)
1717
{
1818
if ($this->used >= $this->total) {
1919
throw RequestThrottlingException::create($this->used, $this->total);

src/Soql/Factory/HttpAuthorizedClientFactory.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
99

1010
use function sprintf;
1111

12-
final class HttpAuthorizedClientFactory implements AuthorizedClientFactory
12+
final readonly class HttpAuthorizedClientFactory implements AuthorizedClientFactory
1313
{
1414
public function __construct(
15-
private readonly AccessTokenFactory $accessTokenFactory,
16-
private readonly string $salesforceInstance,
17-
private readonly string $apiVersion,
15+
private AccessTokenFactory $accessTokenFactory,
16+
private string $salesforceInstance,
17+
private string $apiVersion,
1818
) {
1919
}
2020

src/Soql/Payload.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
use const JSON_THROW_ON_ERROR;
1414

15-
final class Payload
15+
final readonly class Payload
1616
{
1717
/** @param mixed[] $values */
1818
public function __construct(

src/Soql/SoqlDriver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
use function array_merge_recursive;
2121
use function Psl\invariant;
2222

23-
class SoqlDriver implements Driver, ExceptionConverter
23+
readonly class SoqlDriver implements Driver, ExceptionConverter
2424
{
2525
/** {@inheritDoc} */
2626
public function connect(array $params): Connection

0 commit comments

Comments
 (0)