Skip to content

Commit 5725df0

Browse files
committed
minor symfony#52458 [Cache] Fix property types in PdoAdapter (HypeMC)
This PR was merged into the 6.4 branch. Discussion ---------- [Cache] Fix property types in PdoAdapter | Q | A | ------------- | --- | Branch? | 6.3 | Bug fix? | no | New feature? | no | Deprecations? | no | Issues | - | License | MIT I've noticed this while working on symfony#52457, there's no reason these properties should be mixed as far as I can tell. Commits ------- f306b74 [Cache] Fix property types in PdoAdapter
2 parents 68e6af4 + f306b74 commit 5725df0

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/Symfony/Component/Cache/Adapter/PdoAdapter.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,14 @@ class PdoAdapter extends AbstractAdapter implements PruneableInterface
2525
private string $dsn;
2626
private string $driver;
2727
private string $serverVersion;
28-
private mixed $table = 'cache_items';
29-
private mixed $idCol = 'item_id';
30-
private mixed $dataCol = 'item_data';
31-
private mixed $lifetimeCol = 'item_lifetime';
32-
private mixed $timeCol = 'item_time';
33-
private mixed $username = '';
34-
private mixed $password = '';
35-
private mixed $connectionOptions = [];
28+
private string $table = 'cache_items';
29+
private string $idCol = 'item_id';
30+
private string $dataCol = 'item_data';
31+
private string $lifetimeCol = 'item_lifetime';
32+
private string $timeCol = 'item_time';
33+
private ?string $username = '';
34+
private ?string $password = '';
35+
private array $connectionOptions = [];
3636
private string $namespace;
3737

3838
/**

0 commit comments

Comments
 (0)