Skip to content

Commit b71a2ce

Browse files
authored
Merge branch 'master' into sa/fix-some-issues
2 parents 6624302 + 0281a21 commit b71a2ce

File tree

20 files changed

+331
-293
lines changed

20 files changed

+331
-293
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
},
6969
"require-dev": {
7070
"bamarni/composer-bin-plugin": "1.8.2",
71-
"doctrine/doctrine-fixtures-bundle": "3.5.0",
71+
"doctrine/doctrine-fixtures-bundle": "3.5.1",
7272
"roave/security-advisories": "dev-latest",
7373
"symfony/browser-kit": "6.3.8",
7474
"symfony/debug-bundle": "6.3.2",

composer.lock

Lines changed: 85 additions & 82 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Service/Localization.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,13 @@ public function getTimezones(): array
7373
/**
7474
* @throws Throwable
7575
*
76-
* @return array<int, array{timezone: string, identifier: string, offset: string, value: string}>
76+
* @return array<int, array{timezone: string, identifier: non-empty-string, offset: string, value: string}>
7777
*/
7878
public function getFormattedTimezones(): array
7979
{
8080
$output = [];
8181

82+
/** @var array<int, non-empty-string> $identifiers */
8283
$identifiers = DateTimeZone::listIdentifiers();
8384

8485
foreach ($identifiers as $identifier) {

tests/bootstrap.php

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,27 +34,35 @@
3434
* @throws Throwable
3535
*/
3636
$InitializeFastestEnvironmentVariables = static function (string $readableChannel): void {
37+
/**
38+
* @var array<string, string> $cache
39+
*/
3740
static $cache = [];
3841

3942
if (!array_key_exists($readableChannel, $cache)) {
40-
// Parse current environment file
43+
/**
44+
* Parse current environment file
45+
*
46+
* @var array<string, string> $variables
47+
*/
4148
$variables = (new Dotenv())->parse((string)file_get_contents(dirname(__DIR__) . '/.env.test'));
4249

50+
/** @var array<string, string> $configuration */
4351
$configuration = JSON::decode((string)file_get_contents($variables['APPLICATION_CONFIG']), true);
4452

45-
if (!is_array($configuration) || !array_key_exists('DATABASE_URL', $configuration)) {
53+
if (!array_key_exists('DATABASE_URL', $configuration)) {
4654
throw new RuntimeException('Cannot get `DATABASE_URL from specified env file.');
4755
}
4856

4957
$originalDatabaseUrl = $configuration['DATABASE_URL'];
5058

51-
$databaseName = trim(((array)parse_url((string)$originalDatabaseUrl))['path'] ?? '', '/');
59+
$databaseName = trim(((array)parse_url($originalDatabaseUrl))['path'] ?? '', '/');
5260

5361
// Replace DATABASE_URL variable with proper database name
5462
$databaseUrl = str_replace(
5563
'/' . $databaseName . '?',
5664
'/' . $databaseName . '_' . $readableChannel . '?',
57-
(string)$originalDatabaseUrl
65+
$originalDatabaseUrl
5866
);
5967

6068
$cache[$readableChannel] = $databaseUrl;
@@ -70,7 +78,10 @@
7078
$InitializeEnvironment = static function (): void {
7179
$localPhpEnvFile = dirname(__DIR__) . '/.env.local.php';
7280

73-
/** @psalm-suppress MissingFile */
81+
/**
82+
* @psalm-suppress MissingFile
83+
* @var array<string, string>|null $env
84+
*/
7485
$env = is_readable($localPhpEnvFile) ? include $localPhpEnvFile : null;
7586

7687
// Load cached env vars if the .env.local.php file exists

tools/01_phpunit/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
},
77
"require-dev": {
88
"liuggio/fastest": "1.11.0",
9-
"phpunit/php-code-coverage": "10.1.8",
9+
"phpunit/php-code-coverage": "10.1.9",
1010
"phpunit/phpcov": "9.0.2",
1111
"phpunit/phpunit": "10.0.19",
1212
"roave/security-advisories": "dev-latest",

tools/01_phpunit/composer.lock

Lines changed: 22 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tools/02_phpstan/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"php": "^8.2.0"
66
},
77
"require-dev": {
8-
"phpstan/phpstan": "1.10.42",
8+
"phpstan/phpstan": "1.10.44",
99
"phpstan/phpstan-phpunit": "1.3.15",
1010
"phpstan/phpstan-symfony": "1.3.5",
1111
"roave/security-advisories": "dev-latest"

tools/02_phpstan/composer.lock

Lines changed: 15 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tools/03_psalm/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"roave/security-advisories": "dev-latest",
99
"psalm/plugin-phpunit": "0.18.4",
1010
"psalm/plugin-symfony": "5.1.0",
11-
"vimeo/psalm": "5.15.0",
11+
"vimeo/psalm": "5.16.0",
1212
"weirdan/doctrine-psalm-plugin": "2.9.0"
1313
},
1414
"config": {

0 commit comments

Comments
 (0)