Skip to content

Commit 5b61327

Browse files
ISSUE #1499: Fix BC bug for FtpHistory
1 parent 717aec6 commit 5b61327

File tree

8 files changed

+133
-144
lines changed

8 files changed

+133
-144
lines changed

composer.lock

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

config/reference.php

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@
467467
* max_host_connections?: int, // The maximum number of connections to a single host.
468468
* default_options?: array{
469469
* headers?: array<string, mixed>,
470-
* vars?: list<mixed>,
470+
* vars?: array<string, mixed>,
471471
* max_redirects?: int, // The maximum number of redirects to follow.
472472
* http_version?: scalar|null, // The default HTTP version, typically 1.1 or 2.0, leave to null for the best version.
473473
* resolve?: array<string, scalar|null>,
@@ -490,7 +490,7 @@
490490
* md5?: mixed,
491491
* },
492492
* crypto_method?: scalar|null, // The minimum version of TLS to accept; must be one of STREAM_CRYPTO_METHOD_TLSv*_CLIENT constants.
493-
* extra?: list<mixed>,
493+
* extra?: array<string, mixed>,
494494
* rate_limiter?: scalar|null, // Rate limiter name to use for throttling requests. // Default: null
495495
* caching?: bool|array{ // Caching configuration.
496496
* enabled?: bool, // Default: false
@@ -543,7 +543,7 @@
543543
* md5?: mixed,
544544
* },
545545
* crypto_method?: scalar|null, // The minimum version of TLS to accept; must be one of STREAM_CRYPTO_METHOD_TLSv*_CLIENT constants.
546-
* extra?: list<mixed>,
546+
* extra?: array<string, mixed>,
547547
* rate_limiter?: scalar|null, // Rate limiter name to use for throttling requests. // Default: null
548548
* caching?: bool|array{ // Caching configuration.
549549
* enabled?: bool, // Default: false
@@ -1095,17 +1095,6 @@
10951095
* doctrine?: DoctrineConfig,
10961096
* doctrine_migrations?: DoctrineMigrationsConfig,
10971097
* twig?: TwigConfig,
1098-
* "when@dev"?: array{
1099-
* imports?: ImportsConfig,
1100-
* parameters?: ParametersConfig,
1101-
* services?: ServicesConfig,
1102-
* framework?: FrameworkConfig,
1103-
* flysystem?: FlysystemConfig,
1104-
* monolog?: MonologConfig,
1105-
* doctrine?: DoctrineConfig,
1106-
* doctrine_migrations?: DoctrineMigrationsConfig,
1107-
* twig?: TwigConfig,
1108-
* },
11091098
* "when@prod"?: array{
11101099
* imports?: ImportsConfig,
11111100
* parameters?: ParametersConfig,
@@ -1208,7 +1197,6 @@ public static function config(array $config): array
12081197
* deprecated?: array{package:string, version:string, message?:string},
12091198
* }
12101199
* @psalm-type RoutesConfig = array{
1211-
* "when@dev"?: array<string, RouteConfig|ImportConfig|AliasConfig>,
12121200
* "when@prod"?: array<string, RouteConfig|ImportConfig|AliasConfig>,
12131201
* "when@test"?: array<string, RouteConfig|ImportConfig|AliasConfig>,
12141202
* ...<string, RouteConfig|ImportConfig|AliasConfig>

src/Domain/Ftp/FtpHistory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ public function exportForAITooling(): array
107107
*/
108108
public static function fromArray(array $values): self
109109
{
110-
if (empty($values[self::CYCLING_KEY]) && empty($values[self::RUNNING_KEY])) {
110+
if (!array_key_exists(self::CYCLING_KEY, $values) && !array_key_exists(self::RUNNING_KEY, $values)) {
111111
// This is still an old FTP history when we didn't
112112
// differentiate between cycling and running yet. Make sure it's BC.
113113
$values[self::CYCLING_KEY] = $values;

tests/Application/__snapshots__/importDataAndBuildAppCronActionTest__testRun__2.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<fg=black;bg=green>StatisticsforStravav4.2.1</>
22

3-
Runtime:PHP8.5.0(cli)Symfony8.0.0Linux
3+
Runtime:PHP8.5.0(cli)Symfony8.0.1Linux
44
Configurationfiles:
55
config.yaml
66
configathlete.yaml

tests/Console/Daemon/__snapshots__/ProcessWebhooksConsoleCommandTest__testExecute__1.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ StatisticsforStravav4.2.1
33

44

55

6-
Runtime:PHP8.5.0(cli)Symfony8.0.0Linux
6+
Runtime:PHP8.5.0(cli)Symfony8.0.1Linux
77

88
Configurationfiles:
99
config.yaml

tests/Console/Daemon/__snapshots__/RunDaemonConsoleCommandTest__testExecute__1.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Startedon0811202514:47:03
55

66

77

8-
Runtime:PHP8.5.0(cli)Symfony8.0.0Linux
8+
Runtime:PHP8.5.0(cli)Symfony8.0.1Linux
99

1010
Configurationfiles:
1111
config.yaml

tests/Console/__snapshots__/BuildAppConsoleCommandTest__testExecute__1.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ StatisticsforStravav4.2.1
33

44

55

6-
Runtime:PHP8.5.0(cli)Symfony8.0.0Linux
6+
Runtime:PHP8.5.0(cli)Symfony8.0.1Linux
77

88
Configurationfiles:
99
config.yaml

tests/Console/__snapshots__/ImportStravaDataConsoleCommandTest__testExecute__1.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ StatisticsforStravav4.2.1
33

44

55

6-
Runtime:PHP8.5.0(cli)Symfony8.0.0Linux
6+
Runtime:PHP8.5.0(cli)Symfony8.0.1Linux
77

88
Configurationfiles:
99
config.yaml

0 commit comments

Comments
 (0)