Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: satisfy latest phpstan #82

Merged
merged 3 commits into from
Jul 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

* fix: exclude `symfony/property-info` version 7.1.2 and 6.4.9,
https://github.com/symfony/symfony/issues/57634
* build: satisfy latest phpstan

## 1.5.2

Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"symfony/console": "^6.4 || ^7.0",
"symfony/dependency-injection": "^6.4 || ^7.0",
"symfony/property-access": "^6.4 || ^7.0",
"symfony/property-info": "^6.4 || ^7.0, !=7.1.2, !=6.4.9",
"symfony/property-info": "6.4.0 - 6.4.8 || 7.0.0 - 7.0.8 || 7.1.0 - 7.1.1 || ^7.2",
"symfony/serializer": "^6.4 || ^7.0",
"symfony/service-contracts": "^3.0",
"symfony/var-exporter": "^6.4.1 || ^6.5 || ^7.0.1 || ^7.1"
Expand All @@ -48,7 +48,7 @@
"doctrine/orm": "^2.14 || ^3.0",
"doctrine/persistence": "^3.1",
"ekino/phpstan-banned-code": "^1.0",
"phpstan/phpstan": "^1.10.50",
"phpstan/phpstan": "^1.11.6",
"phpstan/phpstan-deprecation-rules": "^1.1",
"phpstan/phpstan-phpunit": "^1.3",
"phpunit/phpunit": "^10.5",
Expand Down
4 changes: 2 additions & 2 deletions src/ObjectCache/ObjectCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public function preCache(mixed $source, Type $targetType): void
$this->preCache[$source] = $arrayObject;
}

$this->preCache->offsetGet($source)?->offsetSet($targetTypeString, true);
$this->preCache->offsetGet($source)->offsetSet($targetTypeString, true);
}

public function undoPreCache(mixed $source, Type $targetType): void
Expand Down Expand Up @@ -165,7 +165,7 @@ public function saveTarget(
$this->cache[$source] = $arrayObject;
}

$this->cache->offsetGet($source)?->offsetSet($targetTypeString, $target);
$this->cache->offsetGet($source)->offsetSet($targetTypeString, $target);

// remove precache

Expand Down
2 changes: 1 addition & 1 deletion src/Transformer/Context/PresetMapping.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public function mergeFrom(self $presetMapping): void
}

foreach ($classToTargetMapping as $class => $target) {
$this->mappings->offsetGet($source)?->offsetSet($class, $target);
$this->mappings->offsetGet($source)->offsetSet($class, $target);
}
}
}
Expand Down