Skip to content

Commit

Permalink
Merge pull request #33 from laminas/renovate/lock-file-maintenance
Browse files Browse the repository at this point in the history
Lock file maintenance
  • Loading branch information
gsteel authored Jan 22, 2024
2 parents ea39c22 + ef264f2 commit 7d3e3fb
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 37 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@
"laminas/laminas-config-aggregator": "^1.14",
"laminas/laminas-servicemanager": "^3.22.1",
"maglnet/composer-require-checker": "^4.7.1",
"phpunit/phpunit": "^10.5.7",
"phpunit/phpunit": "^10.5.9",
"psalm/plugin-phpunit": "^0.18.4",
"vimeo/psalm": "^5.19"
"vimeo/psalm": "^5.20"
},
"autoload": {
"psr-4": {
Expand Down
60 changes: 30 additions & 30 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/PhoneNumberValue.php
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ public function type(): int
private static function regionCodeForNumber(LibPhoneNumber $number, ?string $givenCode): ?string
{
$dialingCode = $number->getCountryCode();
if (! $dialingCode) {
if ($dialingCode === null) {
return $givenCode;
}

Expand Down
2 changes: 1 addition & 1 deletion src/Validator/PhoneNumber.php
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ public function setAllowedTypes(int $types): void
/** @param array<string, mixed> $validationContext */
private function resolveCountry(?array $validationContext): ?CountryCode
{
if (! is_array($validationContext) || ! $this->countryContext) {
if (! is_array($validationContext) || $this->countryContext === null) {
return $this->country;
}

Expand Down
2 changes: 1 addition & 1 deletion src/View/Helper/PhoneNumberFormat.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public function __invoke(): self
*/
private function coalesceCountryCode(?string $countryCodeOrLocale): CountryCode
{
$code = $countryCodeOrLocale ? CountryCode::tryFromString($countryCodeOrLocale) : null;
$code = $countryCodeOrLocale !== null ? CountryCode::tryFromString($countryCodeOrLocale) : null;

return $code ?? $this->defaultCountryCode;
}
Expand Down
4 changes: 2 additions & 2 deletions test/ProjectIntegrationTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ protected static function getContainer(array $userConfig = []): ContainerInterfa
$config = $aggregator->getMergedConfig();
$dependencies = $config['dependencies'] ?? [];
self::assertIsArray($dependencies);
/** @psalm-var ServiceManagerConfigurationType $dependencies */
unset($dependencies['services']['config']);
/** @psalm-suppress MixedArrayAssignment */
$dependencies['services']['config'] = $config;
/** @psalm-var ServiceManagerConfigurationType $dependencies */

return new Laminas\ServiceManager\ServiceManager($dependencies);
}
Expand Down

0 comments on commit 7d3e3fb

Please sign in to comment.