Skip to content

Commit b5520af

Browse files
authored
Merge pull request #276 from pimcore/update-php
Remove php version from composer
2 parents 597f479 + 89c2dd0 commit b5520af

33 files changed

+51
-48
lines changed

.github/workflows/elastic-search-codeception.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
strategy:
3131
matrix:
3232
include:
33-
- { php-version: "8.3", dependencies: "highest", pimcore_version: "11.x-dev as 11.99.9", experimental: true, search_engine: "elasticsearch"}
33+
- { php-version: "8.4", dependencies: "highest", pimcore_version: "12.x-dev as 12.99.9", experimental: true, search_engine: "elasticsearch"}
3434

3535
services:
3636
mariadb:

.github/workflows/open-search-codeception.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ jobs:
3030
strategy:
3131
matrix:
3232
include:
33-
- { php-version: "8.2", dependencies: "lowest", pimcore_version: "", experimental: false, search_engine: "openSearch" }
34-
- { php-version: "8.3", dependencies: "highest", pimcore_version: "", experimental: false, search_engine: "openSearch"}
35-
- { php-version: "8.3", dependencies: "highest", pimcore_version: "11.x-dev as 11.99.9", experimental: true, search_engine: "openSearch"}
33+
- { php-version: "8.3", dependencies: "lowest", pimcore_version: "", experimental: false, search_engine: "openSearch" }
34+
- { php-version: "8.4", dependencies: "highest", pimcore_version: "", experimental: false, search_engine: "openSearch"}
35+
- { php-version: "8.4", dependencies: "highest", pimcore_version: "12.x-dev as 12.99.9", experimental: true, search_engine: "openSearch"}
3636

3737
services:
3838
mariadb:

.github/workflows/static-analysis.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ jobs:
2424
strategy:
2525
matrix:
2626
include:
27-
- { php-version: "8.2", dependencies: "lowest", experimental: false }
28-
- { php-version: "8.3", dependencies: "highest", experimental: false }
29-
- { php-version: "8.3", dependencies: "highest", pimcore_version: "11.x-dev as 11.99.9", experimental: true }
27+
- { php-version: "8.3", dependencies: "lowest", experimental: false }
28+
- { php-version: "8.4", dependencies: "highest", experimental: false }
29+
- { php-version: "8.4", dependencies: "highest", pimcore_version: "12.x-dev as 12.99.9", experimental: true }
3030
steps:
3131
- name: "Checkout code"
3232
uses: "actions/checkout@v2"

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
"prefer-stable": true,
1818
"minimum-stability": "dev",
1919
"require": {
20-
"php": "~8.2.0 || ~8.3.0 ",
21-
"pimcore/pimcore": "^v11.5",
20+
"php": "~8.3.0 || ~8.4.0 ",
21+
"pimcore/pimcore": "^12.x-dev",
2222
"pimcore/static-resolver-bundle": "^1.4.0 || ^2.0",
2323
"pimcore/opensearch-client": "^1.1",
2424
"pimcore/elasticsearch-client": "^1.1",

src/Command/DeploymentReindexCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ final class DeploymentReindexCommand extends AbstractCommand
3636
public function __construct(
3737
private readonly EnqueueServiceInterface $enqueueService,
3838
private readonly ClassDefinitionReindexServiceInterface $classDefinitionReindexService,
39-
string $name = null
39+
?string $name = null
4040
) {
4141
parent::__construct($name);
4242
}

src/Command/ReindexItemsCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ final class ReindexItemsCommand extends AbstractCommand
3333

3434
public function __construct(
3535
private readonly ReindexServiceInterface $reindexService,
36-
string $name = null
36+
?string $name = null
3737
) {
3838
parent::__construct($name);
3939
}

src/DependencyInjection/Configuration.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,11 @@ public function getConfigTreeBuilder(): TreeBuilder
131131
return $treeBuilder;
132132
}
133133

134-
private function buildVariableNode(string $name, array $defaultValue = [], string $documentation = null): NodeDefinition
135-
{
134+
private function buildVariableNode(
135+
string $name,
136+
array $defaultValue = [],
137+
?string $documentation = null
138+
): NodeDefinition {
136139
$node = new VariableNodeDefinition($name);
137140
if ($documentation) {
138141
$node->info($documentation);

src/Enum/SearchIndex/FieldCategory/SystemField/SystemFieldTrait.php

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

2121
trait SystemFieldTrait
2222
{
23-
public function getPath(string $subField = null): string
23+
public function getPath(?string $subField = null): string
2424
{
2525
$path = FieldCategory::SYSTEM_FIELDS->value . '.' . $this->value;
2626

src/Exception/DefaultSearch/ResultWindowTooLargeException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function __construct(
3030
private readonly SearchInformation $searchInformation,
3131
mixed $message = '',
3232
mixed $code = 0,
33-
Throwable $previous = null
33+
?Throwable $previous = null
3434
) {
3535
parent::__construct($message, $code, $previous);
3636
}

src/Exception/DefaultSearch/SearchFailedException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public function __construct(
2727
private readonly SearchInformation $searchInformation,
2828
mixed $message = '',
2929
mixed $code = 0,
30-
Throwable $previous = null
30+
?Throwable $previous = null
3131
) {
3232
parent::__construct($message, $code, $previous);
3333
}

0 commit comments

Comments
 (0)