Skip to content

Commit 4c75b1f

Browse files
committed
fix: fix phpstan errors
1 parent 61c6dee commit 4c75b1f

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/Mcp/Server/Handler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public function handle(Request $request, SessionInterface $session): Response|Er
7474
} else {
7575
\assert($request instanceof CallToolRequest);
7676
$operationNameOrUri = $request->name;
77-
$arguments = $request->arguments ?? [];
77+
$arguments = $request->arguments;
7878
$this->logger->debug('Executing tool', ['name' => $operationNameOrUri, 'arguments' => $arguments]);
7979
}
8080

src/Symfony/Doctrine/EventListener/PurgeHttpCacheListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ private function gatherRelationTags(EntityManagerInterface $em, object $entity):
145145

146146
/** @var array|AssociationMapping $associationMapping according to the version of doctrine orm */
147147
foreach ($associationMappings as $property => $associationMapping) {
148-
if ($associationMapping instanceof AssociationMapping && ($associationMapping->targetEntity ?? null) && !$this->resourceClassResolver->isResourceClass($associationMapping->targetEntity)) {
148+
if ($associationMapping instanceof AssociationMapping && $associationMapping->targetEntity && !$this->resourceClassResolver->isResourceClass($associationMapping->targetEntity)) {
149149
return;
150150
}
151151
if (!$this->propertyAccessor->isReadable($entity, $property)) {

0 commit comments

Comments
 (0)