Skip to content

Commit

Permalink
build: satisfy latest phpstan (#82)
Browse files Browse the repository at this point in the history
* build: satisfy latest phpstan

* fix

* fix
  • Loading branch information
priyadi committed Jul 6, 2024
1 parent 07f7e7a commit 031742a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
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

0 comments on commit 031742a

Please sign in to comment.