Skip to content

Commit

Permalink
[framework] UploadedFileConfig get by class comparison fix (#3533)
Browse files Browse the repository at this point in the history
  • Loading branch information
KennyDaren authored Oct 23, 2024
1 parent a6339a2 commit 9e7c9d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Component/UploadedFile/Config/UploadedFileConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public function getAllUploadedFileEntityConfigs(): array
public function getUploadedFileEntityConfigByClass(string $entityClass): UploadedFileEntityConfig
{
foreach ($this->uploadedFileEntityConfigsByClass as $className => $entityConfig) {
if ($entityClass === $className) {
if (is_a($entityClass, $className, true)) {
return $entityConfig;
}
}
Expand Down

0 comments on commit 9e7c9d5

Please sign in to comment.