Refactor PeerInformationManager to enhance UUID validation by throwing an exception for invalid UUID V4 inputs

https://github.com/nosial/Socialbox-PHP/issues/61
This commit is contained in:
netkas 2025-03-12 17:47:13 -04:00
parent 340f2a3c75
commit 20df727b83
Signed by: netkas
GPG key ID: 4D8629441B76E4CC

View file

@ -248,6 +248,10 @@
{
$peerUuid = $peerUuid->getUuid();
}
elseif(!Validator::validateUuid($peerUuid))
{
throw new InvalidArgumentException('The given internal peer UUID is not a valid UUID V4');
}
try
{