fix some psalm issues

This commit is contained in:
Julien Fastré 2022-03-02 16:39:24 +01:00
parent a7a933c7a7
commit 3756631595
3 changed files with 3 additions and 3 deletions

View File

@ -22,7 +22,7 @@ use libphonenumber\PhoneNumber;
*/ */
interface PhoneNumberHelperInterface interface PhoneNumberHelperInterface
{ {
public function format(PhoneNumber $phonenumber): string; public function format(PhoneNumber $phoneNumber): string;
/** /**
* Get type (mobile, landline, ...) for phone number. * Get type (mobile, landline, ...) for phone number.

View File

@ -34,7 +34,7 @@ class PhonenumberNormalizer implements NormalizerInterface, DenormalizerInterfac
/** /**
* @throws UnexpectedValueException * @throws UnexpectedValueException
*/ */
public function denormalize($data, $class, $format = null, array $context = []) public function denormalize($data, $type, $format = null, array $context = [])
{ {
try { try {
return $this->phoneNumberUtil->parse($data, $this->defaultCarrierCode); return $this->phoneNumberUtil->parse($data, $this->defaultCarrierCode);

View File

@ -158,7 +158,7 @@ final class AccompanyingPeriodTest extends \PHPUnit\Framework\TestCase
$participationL = $period->closeParticipationFor($person); $participationL = $period->closeParticipationFor($person);
$this->assertSame($participationL, $participation); $this->assertSame($participationL, $participation);
$this->assertTrue($participation->getEndDate() instanceof DateTimeInterface); $this->assertTrue($participationL->getEndDate() instanceof DateTimeInterface);
$participation = $period->getOpenParticipationContainsPerson($person); $participation = $period->getOpenParticipationContainsPerson($person);
$this->assertNull($participation); $this->assertNull($participation);