Skip to content

Commit 9fd4f40

Browse files
Fix php-cs
1 parent 94eba94 commit 9fd4f40

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

.github/workflows/test-application.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@ jobs:
3737
env:
3838
SYMFONY_DEPRECATIONS_HELPER: weak
3939

40+
- php-version: '8.4'
41+
dependency-versions: 'highest'
42+
env:
43+
SYMFONY_DEPRECATIONS_HELPER: weak
44+
4045
services:
4146
mysql:
4247
image: mysql:8.0

PhpcrMigration/Application/Parser/NodeParser.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ private function isUnLocalizedProperty(string $name): bool
6868
private function resolvePropertyValue(PropertyInterface $property): mixed
6969
{
7070
$value = $property instanceof Property ? $property->getValueForStorage() : $property->getValue();
71-
if (\is_string($value) && json_validate($value) && ('' !== $value && '0' !== $value)) {
71+
if (\is_string($value) && \json_validate($value) && ('' !== $value && '0' !== $value)) {
7272
return \json_decode($value, true);
7373
}
7474

PhpcrMigration/Infrastructure/Repository/EntityRepository.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function commit(): void
3737
*/
3838
public function insertOrUpdate(array $data, string $tableName, array $types, array $where = []): void
3939
{
40-
$exists = !([] === $where) && $this->exists($tableName, $where);
40+
$exists = [] !== $where && $this->exists($tableName, $where);
4141

4242
match ($exists) {
4343
true => $this->connection->update(

0 commit comments

Comments
 (0)