Skip to content

Commit df84d61

Browse files
authored
Symfony 6 & 7 compatibility #9911 (#3)
* chore: symfony 6&7 comaptibility #9911 * refactor: type annotations and property declarations #0000 * fix: switch from getenv calls to $_ENV variables #0000 * chore: switch to empty checks for env values #0000 * feat: warn on conflicting input parameters for configuration #0000 * refactor: remove referneces to the custom collection types #0000 The TypedArray collection functionality doesn't seem to used at all, but it causes the collection package to be pulled in which triggers multiple deprecations during runtime on newer PHP versions. * fix: use array access to update columns attribute #0000 * fix: switch to ArrayObject #0000
1 parent 4dd90dc commit df84d61

10 files changed

Lines changed: 675 additions & 239 deletions

File tree

bin/anonymizer

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ $filename = getcwd() . '/.env';
2626

2727
if (file_exists($filename)) {
2828
$dotenv = new Dotenv();
29-
$dotenv->load($filename);
29+
$dotenv->loadEnv($filename);
3030
}
3131

3232
$application = new Application('Anonymizer', '0.0.1');

composer.json

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,14 @@
1212
}
1313
],
1414
"require": {
15-
16-
"symfony/yaml": "^4.0|^3.0|^2.7",
17-
"fzaninotto/faker": "~1.0",
15+
"php": ">=8.2",
16+
"ext-pdo": "*",
17+
"fakerphp/faker": "~1.0",
1818
"linkorb/boost": "~1.0",
1919
"linkorb/connector": "~1.0",
20-
"linkorb/collection": "~1.0"
21-
},
22-
"require-dev": {
23-
"symfony/dotenv": "~3.0",
24-
"symfony/console": "~2.4"
20+
"symfony/console": "^6.4.0 || ^7.2.0",
21+
"symfony/dotenv": "*",
22+
"symfony/yaml": "*"
2523
},
2624
"autoload": {
2725
"psr-4": {

0 commit comments

Comments
 (0)