From 99939ed5727afce71b36495ccf37251d667ebacd Mon Sep 17 00:00:00 2001 From: Wayne Theisinger Date: Tue, 18 Apr 2023 07:26:34 +0100 Subject: [PATCH 1/3] allow doctrine/dbal ^3.5 fix for doctrine/dbal:3.5 --- src/Anonymizer.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Anonymizer.php b/src/Anonymizer.php index 66739c9..407e1a6 100644 --- a/src/Anonymizer.php +++ b/src/Anonymizer.php @@ -41,10 +41,10 @@ public function anonymize(Connection $connection, array $targets) ->getSQL() ; $fetchRowsStmt = $connection->prepare($fetchRowsSQL); - $result = $fetchRowsStmt->execute(); + $result = $fetchRowsStmt->executeQuery(); // Anonymize all rows in current target table. - while ($row = $result->fetch()) { + while (($row = $result->fetchAssociative()) !== false) { $values = []; // Anonymize all target fields in current row. foreach ($targetTable->getTargetFields() as $targetField) { From 6fce4aae31f8e3cf809e4aada4a12705c7800c7b Mon Sep 17 00:00:00 2001 From: waynetheisinger Date: Tue, 18 Apr 2023 07:48:34 +0100 Subject: [PATCH 2/3] build: bump dependencies --- composer.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 9b19ffa..9af21be 100644 --- a/composer.json +++ b/composer.json @@ -17,8 +17,8 @@ "symfony/dependency-injection": "^4.2|^5.0|^6.0" }, "require-dev": { - "matthiasnoback/symfony-dependency-injection-test": "^3.1", - "phpunit/phpunit": "^7.4", + "matthiasnoback/symfony-dependency-injection-test": "^4.0", + "phpunit/phpunit": "^10.0", "symfony/config": "^4.2|^5.0|^6.0", "symfony/yaml": "^4.2|^5.0|^6.0" }, From e58b075bfc20f3265d4ff3a04d33511438b59a0f Mon Sep 17 00:00:00 2001 From: waynetheisinger Date: Tue, 18 Apr 2023 08:01:51 +0100 Subject: [PATCH 3/3] build: set php version for tests --- .scrutinizer.yml | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 .scrutinizer.yml diff --git a/.scrutinizer.yml b/.scrutinizer.yml new file mode 100644 index 0000000..0056138 --- /dev/null +++ b/.scrutinizer.yml @@ -0,0 +1,6 @@ +build: + nodes: + my-tests: + environment: + php: + version: 8.1 \ No newline at end of file