Skip to content

Commit

Permalink
dep: bump psalm (#108)
Browse files Browse the repository at this point in the history
* dep: bump psalm

* add psalm exceptions

* fix entitymanager method implementation
  • Loading branch information
priyadi authored Jul 3, 2024
1 parent 049e75d commit e9d021c
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* build: include github-actions in dependabot
* fix: remove deprecated service definition
* fix: deprecation warning
* dep: bump psalm

## 2.3.4

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"symfony/yaml": "^6.4 || ^7.0",
"symplify/monorepo-builder": "^11.2.20 || ^11.3",
"twig/twig": "^3.0",
"vimeo/psalm": "^5.15"
"vimeo/psalm": "^5.24"
},
"autoload": {
"psr-4": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,11 @@ public function __construct(

public function isUninitializedObject(mixed $value): bool
{
return $this->wrapped->isUninitializedObject($value);
if (method_exists($this->wrapped, 'isUninitializedObject')) {
return $this->wrapped->isUninitializedObject($value);
}

return false;
}

public function isLazyObjectInitialized(bool $partial = false): bool
Expand Down
15 changes: 15 additions & 0 deletions psalm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,21 @@
<file name="packages/domain-event/src/DependencyInjection/Constants.php" />
</errorLevel>
</MissingClassConstType>
<MixedInferredReturnType>
<errorLevel type="suppress">
<file name="packages/domain-event/src/Doctrine/DomainEventAwareEntityManager.php" />
</errorLevel>
</MixedInferredReturnType>
<MixedReturnStatement>
<errorLevel type="suppress">
<file name="packages/domain-event/src/Doctrine/DomainEventAwareEntityManager.php" />
</errorLevel>
</MixedReturnStatement>
<UndefinedInterfaceMethod>
<errorLevel type="suppress">
<file name="packages/domain-event/src/Doctrine/DomainEventAwareEntityManager.php" />
</errorLevel>
</UndefinedInterfaceMethod>
</issueHandlers>

</psalm>

0 comments on commit e9d021c

Please sign in to comment.