Skip to content

Store metadata in objects instead of arrays #11

Store metadata in objects instead of arrays

Store metadata in objects instead of arrays #11

Triggered via pull request March 12, 2025 21:25
Status Failure
Total duration 40s
Artifacts

sast.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

7 errors
PHPStan
Process completed with exit code 1.
PHPStan: src/MultiFileMetadataSourceImpl.php#L84
Property libphonenumber\MultiFileMetadataSourceImpl::$regionToMetadataMap (array<libphonenumber\PhoneMetadata>) does not accept array<object>.
PHPStan: src/MultiFileMetadataSourceImpl.php#L82
Property libphonenumber\MultiFileMetadataSourceImpl::$countryCodeToNonGeographicalMetadataMap (array<libphonenumber\PhoneMetadata>) does not accept array<object>.
PHPStan: build/Builders/PhoneMetadataBuilder.php#L363
Variable $value might not be defined.
PHPStan: build/Builders/PhoneMetadataBuilder.php#L21
Cannot import type alias PhoneNumberDescArray: type alias does not exist in libphonenumber\PhoneNumberDesc.
PHPStan: build/BuildMetadataPHPFromXml.php#L75
Only numeric types are allowed in +, int|false given on the left side.
PHPStan: build/BuildMetadataPHPFromXml.php#L74
Parameter #3 $length of function substr expects int|null, int|false given.