Skip to content

Commit bdc88ee

Browse files
authored
PHP 8.4 compatibility (#41)
1 parent 8b19c12 commit bdc88ee

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

.circleci/config.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -176,5 +176,5 @@ workflows:
176176
- matrix-conditions:
177177
matrix:
178178
parameters:
179-
version: ["7.4", "8.0", "8.1", "8.2", "8.3"]
179+
version: ["7.4", "8.0", "8.1", "8.2", "8.3", "8.4"]
180180
install-flags: ["", "--prefer-lowest"]

composer.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,16 @@
99
}
1010
],
1111
"require": {
12-
"php": ">=7.4 <8.4",
12+
"php": ">=7.4 <8.5",
1313
"ext-curl": "*",
1414
"getdkan/procrastinator": "^5.0.3",
15-
"guzzlehttp/guzzle": "^6.5.8 || ^7.4.5"
15+
"guzzlehttp/guzzle": "^7.4.5"
1616
},
1717
"require-dev": {
1818
"getdkan/contracts": "^1.2",
1919
"getdkan/mock-chain": "^1.3.6",
2020
"mikey179/vfsstream": "^1.6.11",
21-
"phpunit/phpunit": "^9.6",
21+
"phpunit/phpunit": "^9.6.22",
2222
"rector/rector": "^1@stable",
2323
"squizlabs/php_codesniffer": "^3.7",
2424
"symfony/phpunit-bridge": "^7.0"

src/FileFetcher.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class FileFetcher extends AbstractPersistentJob
3939
* We override ::get() because it can set values for both newly constructed
4040
* objects and re-hydrated ones.
4141
*/
42-
public static function get(string $identifier, $storage, array $config = null)
42+
public static function get(string $identifier, $storage, ?array $config = null)
4343
{
4444
$ff = parent::get($identifier, $storage, $config);
4545
// If we see that a processor is configured, we need to handle some
@@ -67,7 +67,7 @@ public static function get(string $identifier, $storage, array $config = null)
6767
*
6868
* @see static::get()
6969
*/
70-
protected function __construct(string $identifier, $storage, array $config = null)
70+
protected function __construct(string $identifier, $storage, ?array $config = null)
7171
{
7272
parent::__construct($identifier, $storage);
7373

0 commit comments

Comments
 (0)