Skip to content

Commit 0ead306

Browse files
committed
Merge remote-tracking branch 'origin/2.x' into Add-Contracts
2 parents 500e5a8 + 03a2a2b commit 0ead306

34 files changed

+723
-35
lines changed

.github/workflows/codeception.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ jobs:
1414
strategy:
1515
matrix:
1616
include:
17-
- { php-version: 8.1, dependencies: lowest, pimcore_version: "", experimental: false }
18-
- { php-version: 8.3, dependencies: highest, pimcore_version: "", experimental: false }
19-
- { php-version: 8.3, dependencies: highest, pimcore_version: "11.x-dev as 11.99.9", experimental: true }
17+
- { php-version: 8.3, dependencies: lowest, pimcore_version: "", experimental: false }
18+
- { php-version: 8.4, dependencies: highest, pimcore_version: "", experimental: false }
19+
- { php-version: 8.4, dependencies: highest, pimcore_version: "12.x-dev as 12.99.9", experimental: true }
2020
steps:
2121
- name: Checkout
2222
uses: actions/checkout@v3

composer.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,11 @@
2020
"Pimcore\\Bundle\\StaticResolverBundle\\Tests\\": "tests"
2121
}
2222
},
23+
"prefer-stable": true,
24+
"minimum-stability": "dev",
2325
"require": {
24-
"php": "~8.1.0 || ~8.2.0 || ~8.3.0",
25-
"pimcore/pimcore": "^11.0",
26+
"php": "~8.3.0 || ~8.4.0",
27+
"pimcore/pimcore": "^12.0",
2628
"friendsofphp/proxy-manager-lts": "^1"
2729
},
2830
"require-dev": {

src/Lib/CacheResolver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public function save(
2828
mixed $data,
2929
string $key,
3030
array $tags = [],
31-
DateInterval|int $lifetime = null,
31+
DateInterval|int|null $lifetime = null,
3232
int $priority = 0,
3333
bool $force = false
3434
): void {

src/Lib/CacheResolverInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public function save(
2727
mixed $data,
2828
string $key,
2929
array $tags = [],
30-
DateInterval|int $lifetime = null,
30+
DateInterval|int|null $lifetime = null,
3131
int $priority = 0,
3232
bool $force = false
3333
): void;

src/Lib/ConfigResolver.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,25 +29,25 @@ public function locateConfigFile(string $name): string
2929
return Config::locateConfigFile($name);
3030
}
3131

32-
public function getSystemConfiguration(string $offset = null): ?array
32+
public function getSystemConfiguration(?string $offset = null): ?array
3333
{
3434
return Config::getSystemConfiguration($offset);
3535
}
3636

37-
public function getWebsiteConfigRuntimeCacheKey(string $language = null): string
37+
public function getWebsiteConfigRuntimeCacheKey(?string $language = null): string
3838
{
3939
return Config::getWebsiteConfigRuntimeCacheKey($language);
4040
}
4141

42-
public function getWebsiteConfig(string $language = null): array
42+
public function getWebsiteConfig(?string $language = null): array
4343
{
4444
return Config::getWebsiteConfig($language);
4545
}
4646

4747
public function getWebsiteConfigValue(
48-
string $key = null,
48+
?string $key = null,
4949
mixed $default = null,
50-
string $language = null
50+
?string $language = null
5151
): mixed {
5252
return Config::getWebsiteConfigValue($key, $default, $language);
5353
}

src/Lib/ConfigResolverInterface.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,16 @@ interface ConfigResolverInterface
2525
{
2626
public function locateConfigFile(string $name): string;
2727

28-
public function getSystemConfiguration(string $offset = null): ?array;
28+
public function getSystemConfiguration(?string $offset = null): ?array;
2929

30-
public function getWebsiteConfigRuntimeCacheKey(string $language = null): string;
30+
public function getWebsiteConfigRuntimeCacheKey(?string $language = null): string;
3131

32-
public function getWebsiteConfig(string $language = null): array;
32+
public function getWebsiteConfig(?string $language = null): array;
3333

3434
public function getWebsiteConfigValue(
35-
string $key = null,
35+
?string $key = null,
3636
mixed $default = null,
37-
string $language = null
37+
?string $language = null
3838
): mixed;
3939

4040
/**

src/Lib/DocumentResolver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ final class DocumentResolver implements DocumentResolverInterface
2828
/**
2929
* @throws Exception
3030
*/
31-
public function getInstance(string $adapter = null): ?Adapter
31+
public function getInstance(?string $adapter = null): ?Adapter
3232
{
3333
Document::getInstance($adapter);
3434
}

src/Lib/DocumentResolverInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ interface DocumentResolverInterface
2727
/**
2828
* @throws Exception
2929
*/
30-
public function getInstance(string $adapter = null): ?Adapter;
30+
public function getInstance(?string $adapter = null): ?Adapter;
3131

3232
public function isAvailable(): bool;
3333

src/Lib/Helper/MailResolver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function formatDebugReceivers(array $receivers): string
4747
/**
4848
* @throws Exception
4949
*/
50-
public function setAbsolutePaths(string $string, ?Document $document = null, string $hostUrl = null): string
50+
public function setAbsolutePaths(string $string, ?Document $document = null, ?string $hostUrl = null): string
5151
{
5252
return MailHelper::setAbsolutePaths($string, $document, $hostUrl);
5353
}

src/Lib/Helper/MailResolverInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function formatDebugReceivers(array $receivers): string;
3737
/**
3838
* @throws Exception
3939
*/
40-
public function setAbsolutePaths(string $string, ?Document $document = null, string $hostUrl = null): string;
40+
public function setAbsolutePaths(string $string, ?Document $document = null, ?string $hostUrl = null): string;
4141

4242
/**
4343
* @throws Exception

0 commit comments

Comments
 (0)