Skip to content

Commit

Permalink
fix: check class existence in SymfonyUidTransformerFactory
Browse files Browse the repository at this point in the history
  • Loading branch information
nikophil committed Oct 31, 2023
1 parent e1dba93 commit c374fdd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Fixed
- [GH#9](https://github.com/jolicode/automapper/pull/9) fix: `mapPrivatePropertiesAndMethod` should not be mandatory
- [GH#15](https://github.com/jolicode/automapper/pull/15) fix: check class existence in SymfonyUidTransformerFactory

## [8.0.1] - 2023-10-04
### Changed
Expand Down
2 changes: 1 addition & 1 deletion src/Transformer/SymfonyUidTransformerFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ private function isUid(Type $type): bool
/** @var class-string|null $typeClassName */
$typeClassName = $type->getClassName();

if (null === $typeClassName) {
if (null === $typeClassName || !class_exists($typeClassName)) {
return false;
}

Expand Down

0 comments on commit c374fdd

Please sign in to comment.