diff --git a/ci/qa/phpstan-baseline.neon b/ci/qa/phpstan-baseline.neon index d8a93d387..63bf18fc4 100644 --- a/ci/qa/phpstan-baseline.neon +++ b/ci/qa/phpstan-baseline.neon @@ -2478,12 +2478,6 @@ parameters: count: 1 path: ../../src/Surfnet/StepupMiddleware/ApiBundle/Doctrine/Type/DateTimeType.php - - - message: '#^Parameter \#2 \$datetime of static method DateTime\:\:createFromFormat\(\) expects string, mixed given\.$#' - identifier: argument.type - count: 1 - path: ../../src/Surfnet/StepupMiddleware/ApiBundle/Doctrine/Type/DateTimeType.php - - message: '#^Parameter \#1 \$documentNumber of class Surfnet\\Stepup\\Identity\\Value\\DocumentNumber constructor expects string, mixed given\.$#' identifier: argument.type @@ -2556,12 +2550,6 @@ parameters: count: 1 path: ../../src/Surfnet/StepupMiddleware/ApiBundle/Doctrine/Type/NameIdType.php - - - message: '#^Cannot cast T of mixed to int\.$#' - identifier: cast.int - count: 1 - path: ../../src/Surfnet/StepupMiddleware/ApiBundle/Doctrine/Type/NumberOfTokensPerIdentityType.php - - message: '#^Parameter \#1 \$raLocationName of class Surfnet\\Stepup\\Configuration\\Value\\RaLocationName constructor expects string, mixed given\.$#' identifier: argument.type diff --git a/composer.json b/composer.json index 3e76e5ce9..bd04fea78 100644 --- a/composer.json +++ b/composer.json @@ -16,7 +16,14 @@ "src/Surfnet/StepupMiddleware/ApiBundle/Tests/Request/commands.php" ] }, - "minimum-stability": "stable", + "repositories": [ + { + "type": "vcs", + "url": "https://github.com/SURFnet/broadway-event-store-dbal" + } + ], + "minimum-stability": "dev", + "prefer-stable": true, "require": { "php": "^8.5", "ext-gmp": "*", @@ -24,8 +31,9 @@ "ext-openssl": "*", "ext-pdo": "*", "broadway/broadway": "^2.5", - "broadway/event-store-dbal": "^0.6", + "broadway/event-store-dbal": "dev-feature/dbal4", "doctrine/annotations": "^2.0", + "doctrine/dbal": "^4.3,<4.4", "doctrine/doctrine-bundle": "^2.13.2", "doctrine/doctrine-migrations-bundle": "^3.4.1", "doctrine/orm": "^3.3.2", diff --git a/composer.lock b/composer.lock index 647c9d92f..ff6bbaa9f 100644 --- a/composer.lock +++ b/composer.lock @@ -4,20 +4,20 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "ec2b15084bf3b654744c7f3b3eecbe7f", + "content-hash": "0e05f9ab18b3aa7df0671139abe61bd2", "packages": [ { "name": "beberlei/assert", - "version": "v3.3.3", + "version": "v3.3.4", "source": { "type": "git", "url": "https://github.com/beberlei/assert.git", - "reference": "b5fd8eacd8915a1b627b8bfc027803f1939734dd" + "reference": "f193f4613c7d7fbcee2c05e4daff4061d49c040e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/beberlei/assert/zipball/b5fd8eacd8915a1b627b8bfc027803f1939734dd", - "reference": "b5fd8eacd8915a1b627b8bfc027803f1939734dd", + "url": "https://api.github.com/repos/beberlei/assert/zipball/f193f4613c7d7fbcee2c05e4daff4061d49c040e", + "reference": "f193f4613c7d7fbcee2c05e4daff4061d49c040e", "shasum": "" }, "require": { @@ -69,9 +69,9 @@ ], "support": { "issues": "https://github.com/beberlei/assert/issues", - "source": "https://github.com/beberlei/assert/tree/v3.3.3" + "source": "https://github.com/beberlei/assert/tree/v3.3.4" }, - "time": "2024-07-15T13:18:35+00:00" + "time": "2026-06-10T19:47:05+00:00" }, { "name": "brick/math", @@ -224,28 +224,30 @@ }, { "name": "broadway/event-store-dbal", - "version": "0.6.0", + "version": "dev-feature/dbal4", "source": { "type": "git", - "url": "https://github.com/broadway/event-store-dbal.git", - "reference": "7cc0b51cdd8312c4f8919d3b2f6688d85b65cc58" + "url": "https://github.com/SURFnet/broadway-event-store-dbal.git", + "reference": "35c9fa7d938cccb874f53042b5a1aca9f67dba96" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/broadway/event-store-dbal/zipball/7cc0b51cdd8312c4f8919d3b2f6688d85b65cc58", - "reference": "7cc0b51cdd8312c4f8919d3b2f6688d85b65cc58", + "url": "https://api.github.com/repos/SURFnet/broadway-event-store-dbal/zipball/35c9fa7d938cccb874f53042b5a1aca9f67dba96", + "reference": "35c9fa7d938cccb874f53042b5a1aca9f67dba96", "shasum": "" }, "require": { - "broadway/broadway": "^2.3.1", - "doctrine/dbal": "^3.1", - "php": ">=7.2" + "broadway/broadway": "^2.5", + "doctrine/dbal": "^4.3", + "php": "^8.1" }, "require-dev": { "broadway/coding-standard": "^1.2", "ext-pdo_sqlite": "*", + "phpspec/prophecy": "^1.15", + "phpspec/prophecy-phpunit": "^2.2", "phpstan/phpstan": "@stable", - "phpunit/phpunit": "^9.5", + "phpunit/phpunit": "^10.5", "ramsey/uuid": "^4.0" }, "type": "library", @@ -259,7 +261,11 @@ "Broadway\\EventStore\\Dbal\\": "src/" } }, - "notification-url": "https://packagist.org/downloads/", + "autoload-dev": { + "psr-4": { + "Broadway\\EventStore\\Dbal\\": "test/" + } + }, "license": [ "MIT" ], @@ -291,10 +297,9 @@ ], "description": "Event store implementation using doctrine/dbal", "support": { - "issues": "https://github.com/broadway/event-store-dbal/issues", - "source": "https://github.com/broadway/event-store-dbal/tree/0.6.0" + "source": "https://github.com/SURFnet/broadway-event-store-dbal/tree/feature/dbal4" }, - "time": "2021-06-24T09:42:53+00:00" + "time": "2025-11-27T13:46:13+00:00" }, { "name": "broadway/uuid-generator", @@ -495,16 +500,16 @@ }, { "name": "doctrine/collections", - "version": "2.4.0", + "version": "2.6.0", "source": { "type": "git", "url": "https://github.com/doctrine/collections.git", - "reference": "9acfeea2e8666536edff3d77c531261c63680160" + "reference": "7713da39d8e237f28411d6a616a3dce5e20d5de2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/collections/zipball/9acfeea2e8666536edff3d77c531261c63680160", - "reference": "9acfeea2e8666536edff3d77c531261c63680160", + "url": "https://api.github.com/repos/doctrine/collections/zipball/7713da39d8e237f28411d6a616a3dce5e20d5de2", + "reference": "7713da39d8e237f28411d6a616a3dce5e20d5de2", "shasum": "" }, "require": { @@ -561,7 +566,7 @@ ], "support": { "issues": "https://github.com/doctrine/collections/issues", - "source": "https://github.com/doctrine/collections/tree/2.4.0" + "source": "https://github.com/doctrine/collections/tree/2.6.0" }, "funding": [ { @@ -577,52 +582,44 @@ "type": "tidelift" } ], - "time": "2025-10-25T09:18:13+00:00" + "time": "2026-01-15T10:01:58+00:00" }, { "name": "doctrine/dbal", - "version": "3.10.4", + "version": "4.3.5", "source": { "type": "git", "url": "https://github.com/doctrine/dbal.git", - "reference": "63a46cb5aa6f60991186cc98c1d1b50c09311868" + "reference": "1b31b54601346254c9e33e6ea1bd1ceae76f419f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/dbal/zipball/63a46cb5aa6f60991186cc98c1d1b50c09311868", - "reference": "63a46cb5aa6f60991186cc98c1d1b50c09311868", + "url": "https://api.github.com/repos/doctrine/dbal/zipball/1b31b54601346254c9e33e6ea1bd1ceae76f419f", + "reference": "1b31b54601346254c9e33e6ea1bd1ceae76f419f", "shasum": "" }, "require": { - "composer-runtime-api": "^2", - "doctrine/deprecations": "^0.5.3|^1", - "doctrine/event-manager": "^1|^2", - "php": "^7.4 || ^8.0", + "doctrine/deprecations": "^1.1.5", + "php": "^8.2", "psr/cache": "^1|^2|^3", "psr/log": "^1|^2|^3" }, - "conflict": { - "doctrine/cache": "< 1.11" - }, "require-dev": { - "doctrine/cache": "^1.11|^2.0", "doctrine/coding-standard": "14.0.0", "fig/log-test": "^1", - "jetbrains/phpstorm-stubs": "2023.1", + "jetbrains/phpstorm-stubs": "2023.2", "phpstan/phpstan": "2.1.30", + "phpstan/phpstan-phpunit": "2.0.7", "phpstan/phpstan-strict-rules": "^2", - "phpunit/phpunit": "9.6.29", + "phpunit/phpunit": "11.5.23", "slevomat/coding-standard": "8.24.0", "squizlabs/php_codesniffer": "4.0.0", - "symfony/cache": "^5.4|^6.0|^7.0|^8.0", - "symfony/console": "^4.4|^5.4|^6.0|^7.0|^8.0" + "symfony/cache": "^6.3.8|^7.0|^8.0", + "symfony/console": "^5.4|^6.3|^7.0|^8.0" }, "suggest": { "symfony/console": "For helpful console commands such as SQL execution and import of files." }, - "bin": [ - "bin/doctrine-dbal" - ], "type": "library", "autoload": { "psr-4": { @@ -675,7 +672,7 @@ ], "support": { "issues": "https://github.com/doctrine/dbal/issues", - "source": "https://github.com/doctrine/dbal/tree/3.10.4" + "source": "https://github.com/doctrine/dbal/tree/4.3.5" }, "funding": [ { @@ -691,7 +688,7 @@ "type": "tidelift" } ], - "time": "2025-11-29T10:46:08+00:00" + "time": "2025-11-29T10:47:43+00:00" }, { "name": "doctrine/deprecations", @@ -743,16 +740,16 @@ }, { "name": "doctrine/doctrine-bundle", - "version": "2.18.1", + "version": "2.19.0", "source": { "type": "git", "url": "https://github.com/doctrine/DoctrineBundle.git", - "reference": "b769877014de053da0e5cbbb63d0ea2f3b2fea76" + "reference": "07b90f707b82981097731c419f546e7ba97fba3c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/DoctrineBundle/zipball/b769877014de053da0e5cbbb63d0ea2f3b2fea76", - "reference": "b769877014de053da0e5cbbb63d0ea2f3b2fea76", + "url": "https://api.github.com/repos/doctrine/DoctrineBundle/zipball/07b90f707b82981097731c419f546e7ba97fba3c", + "reference": "07b90f707b82981097731c419f546e7ba97fba3c", "shasum": "" }, "require": { @@ -774,7 +771,7 @@ "doctrine/cache": "< 1.11", "doctrine/orm": "<2.17 || >=4.0", "symfony/var-exporter": "< 6.4.1 || 7.0.0", - "twig/twig": "<2.13 || >=3.0 <3.0.4" + "twig/twig": "<2.13 || >=3.0 <3.0.4 || >=5" }, "require-dev": { "doctrine/annotations": "^1 || ^2", @@ -788,9 +785,12 @@ "phpunit/phpunit": "^10.5.53 || ^12.3.10", "psr/log": "^1.1.4 || ^2.0 || ^3.0", "symfony/doctrine-messenger": "^6.4 || ^7.0", + "symfony/event-dispatcher": "^6.4 || ^7.0", "symfony/expression-language": "^6.4 || ^7.0", + "symfony/http-kernel": "^6.4 || ^7.0", "symfony/messenger": "^6.4 || ^7.0", "symfony/property-info": "^6.4 || ^7.0", + "symfony/runtime": "^6.4 || ^7.0", "symfony/security-bundle": "^6.4 || ^7.0", "symfony/stopwatch": "^6.4 || ^7.0", "symfony/string": "^6.4 || ^7.0", @@ -799,7 +799,7 @@ "symfony/var-exporter": "^6.4.1 || ^7.0.1", "symfony/web-profiler-bundle": "^6.4 || ^7.0", "symfony/yaml": "^6.4 || ^7.0", - "twig/twig": "^2.14.7 || ^3.0.4" + "twig/twig": "^2.14.7 || ^3.0.4 || ^4" }, "suggest": { "doctrine/orm": "The Doctrine ORM integration is optional in the bundle.", @@ -844,7 +844,7 @@ ], "support": { "issues": "https://github.com/doctrine/DoctrineBundle/issues", - "source": "https://github.com/doctrine/DoctrineBundle/tree/2.18.1" + "source": "https://github.com/doctrine/DoctrineBundle/tree/2.19.0" }, "funding": [ { @@ -860,7 +860,7 @@ "type": "tidelift" } ], - "time": "2025-11-05T14:42:10+00:00" + "time": "2026-07-23T14:52:05+00:00" }, { "name": "doctrine/doctrine-migrations-bundle", @@ -949,16 +949,16 @@ }, { "name": "doctrine/event-manager", - "version": "2.0.1", + "version": "2.1.1", "source": { "type": "git", "url": "https://github.com/doctrine/event-manager.git", - "reference": "b680156fa328f1dfd874fd48c7026c41570b9c6e" + "reference": "dda33921b198841ca8dbad2eaa5d4d34769d18cf" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/event-manager/zipball/b680156fa328f1dfd874fd48c7026c41570b9c6e", - "reference": "b680156fa328f1dfd874fd48c7026c41570b9c6e", + "url": "https://api.github.com/repos/doctrine/event-manager/zipball/dda33921b198841ca8dbad2eaa5d4d34769d18cf", + "reference": "dda33921b198841ca8dbad2eaa5d4d34769d18cf", "shasum": "" }, "require": { @@ -968,10 +968,10 @@ "doctrine/common": "<2.9" }, "require-dev": { - "doctrine/coding-standard": "^12", - "phpstan/phpstan": "^1.8.8", - "phpunit/phpunit": "^10.5", - "vimeo/psalm": "^5.24" + "doctrine/coding-standard": "^14", + "phpdocumentor/guides-cli": "^1.4", + "phpstan/phpstan": "^2.1.32", + "phpunit/phpunit": "^10.5.58" }, "type": "library", "autoload": { @@ -1020,7 +1020,7 @@ ], "support": { "issues": "https://github.com/doctrine/event-manager/issues", - "source": "https://github.com/doctrine/event-manager/tree/2.0.1" + "source": "https://github.com/doctrine/event-manager/tree/2.1.1" }, "funding": [ { @@ -1036,7 +1036,7 @@ "type": "tidelift" } ], - "time": "2024-05-22T20:47:39+00:00" + "time": "2026-01-29T07:11:08+00:00" }, { "name": "doctrine/inflector", @@ -1130,30 +1130,29 @@ }, { "name": "doctrine/instantiator", - "version": "2.0.0", + "version": "2.1.0", "source": { "type": "git", "url": "https://github.com/doctrine/instantiator.git", - "reference": "c6222283fa3f4ac679f8b9ced9a4e23f163e80d0" + "reference": "23da848e1a2308728fe5fdddabf4be17ff9720c7" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/instantiator/zipball/c6222283fa3f4ac679f8b9ced9a4e23f163e80d0", - "reference": "c6222283fa3f4ac679f8b9ced9a4e23f163e80d0", + "url": "https://api.github.com/repos/doctrine/instantiator/zipball/23da848e1a2308728fe5fdddabf4be17ff9720c7", + "reference": "23da848e1a2308728fe5fdddabf4be17ff9720c7", "shasum": "" }, "require": { - "php": "^8.1" + "php": "^8.4" }, "require-dev": { - "doctrine/coding-standard": "^11", + "doctrine/coding-standard": "^14", "ext-pdo": "*", "ext-phar": "*", "phpbench/phpbench": "^1.2", - "phpstan/phpstan": "^1.9.4", - "phpstan/phpstan-phpunit": "^1.3", - "phpunit/phpunit": "^9.5.27", - "vimeo/psalm": "^5.4" + "phpstan/phpstan": "^2.1", + "phpstan/phpstan-phpunit": "^2.0", + "phpunit/phpunit": "^10.5.58" }, "type": "library", "autoload": { @@ -1180,7 +1179,7 @@ ], "support": { "issues": "https://github.com/doctrine/instantiator/issues", - "source": "https://github.com/doctrine/instantiator/tree/2.0.0" + "source": "https://github.com/doctrine/instantiator/tree/2.1.0" }, "funding": [ { @@ -1196,7 +1195,7 @@ "type": "tidelift" } ], - "time": "2022-12-30T00:23:10+00:00" + "time": "2026-01-05T06:47:08+00:00" }, { "name": "doctrine/lexer", @@ -1277,16 +1276,16 @@ }, { "name": "doctrine/migrations", - "version": "3.9.5", + "version": "3.9.7", "source": { "type": "git", "url": "https://github.com/doctrine/migrations.git", - "reference": "1b823afbc40f932dae8272574faee53f2755eac5" + "reference": "96cb2a89b56c9efb0bac38e606dc0b0f13e650ec" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/migrations/zipball/1b823afbc40f932dae8272574faee53f2755eac5", - "reference": "1b823afbc40f932dae8272574faee53f2755eac5", + "url": "https://api.github.com/repos/doctrine/migrations/zipball/96cb2a89b56c9efb0bac38e606dc0b0f13e650ec", + "reference": "96cb2a89b56c9efb0bac38e606dc0b0f13e650ec", "shasum": "" }, "require": { @@ -1360,7 +1359,7 @@ ], "support": { "issues": "https://github.com/doctrine/migrations/issues", - "source": "https://github.com/doctrine/migrations/tree/3.9.5" + "source": "https://github.com/doctrine/migrations/tree/3.9.7" }, "funding": [ { @@ -1376,20 +1375,20 @@ "type": "tidelift" } ], - "time": "2025-11-20T11:15:36+00:00" + "time": "2026-04-23T19:33:20+00:00" }, { "name": "doctrine/orm", - "version": "3.5.8", + "version": "3.6.7", "source": { "type": "git", "url": "https://github.com/doctrine/orm.git", - "reference": "78dd074266e8b47a83bcf60ab5fe06c91a639168" + "reference": "bc217c0e19c3a9eadfa67697143b87c9ba01272c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/orm/zipball/78dd074266e8b47a83bcf60ab5fe06c91a639168", - "reference": "78dd074266e8b47a83bcf60ab5fe06c91a639168", + "url": "https://api.github.com/repos/doctrine/orm/zipball/bc217c0e19c3a9eadfa67697143b87c9ba01272c", + "reference": "bc217c0e19c3a9eadfa67697143b87c9ba01272c", "shasum": "" }, "require": { @@ -1462,25 +1461,26 @@ ], "support": { "issues": "https://github.com/doctrine/orm/issues", - "source": "https://github.com/doctrine/orm/tree/3.5.8" + "source": "https://github.com/doctrine/orm/tree/3.6.7" }, - "time": "2025-11-29T23:11:02+00:00" + "time": "2026-05-25T16:45:47+00:00" }, { "name": "doctrine/persistence", - "version": "4.1.1", + "version": "4.2.0", "source": { "type": "git", "url": "https://github.com/doctrine/persistence.git", - "reference": "b9c49ad3558bb77ef973f4e173f2e9c2eca9be09" + "reference": "49ab73e0d3e2ac8d1f5ecda3dd8acd5503781e8b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/persistence/zipball/b9c49ad3558bb77ef973f4e173f2e9c2eca9be09", - "reference": "b9c49ad3558bb77ef973f4e173f2e9c2eca9be09", + "url": "https://api.github.com/repos/doctrine/persistence/zipball/49ab73e0d3e2ac8d1f5ecda3dd8acd5503781e8b", + "reference": "49ab73e0d3e2ac8d1f5ecda3dd8acd5503781e8b", "shasum": "" }, "require": { + "doctrine/deprecations": "^1", "doctrine/event-manager": "^1 || ^2", "php": "^8.1", "psr/cache": "^1.0 || ^2.0 || ^3.0" @@ -1491,13 +1491,13 @@ "phpstan/phpstan-phpunit": "^2", "phpstan/phpstan-strict-rules": "^2", "phpunit/phpunit": "^10.5.58 || ^12", - "symfony/cache": "^4.4 || ^5.4 || ^6.0 || ^7.0", - "symfony/finder": "^4.4 || ^5.4 || ^6.0 || ^7.0" + "symfony/cache": "^4.4 || ^5.4 || ^6.0 || ^7.0 || ^8.0", + "symfony/finder": "^4.4 || ^5.4 || ^6.0 || ^7.0 || ^8.0" }, "type": "library", "autoload": { "psr-4": { - "Doctrine\\Persistence\\": "src/Persistence" + "Doctrine\\Persistence\\": "src" } }, "notification-url": "https://packagist.org/downloads/", @@ -1541,7 +1541,7 @@ ], "support": { "issues": "https://github.com/doctrine/persistence/issues", - "source": "https://github.com/doctrine/persistence/tree/4.1.1" + "source": "https://github.com/doctrine/persistence/tree/4.2.0" }, "funding": [ { @@ -1557,20 +1557,20 @@ "type": "tidelift" } ], - "time": "2025-10-16T20:13:18+00:00" + "time": "2026-04-26T12:12:52+00:00" }, { "name": "doctrine/sql-formatter", - "version": "1.5.3", + "version": "1.5.4", "source": { "type": "git", "url": "https://github.com/doctrine/sql-formatter.git", - "reference": "a8af23a8e9d622505baa2997465782cbe8bb7fc7" + "reference": "9563949f5cd3bd12a17d12fb980528bc141c5806" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/sql-formatter/zipball/a8af23a8e9d622505baa2997465782cbe8bb7fc7", - "reference": "a8af23a8e9d622505baa2997465782cbe8bb7fc7", + "url": "https://api.github.com/repos/doctrine/sql-formatter/zipball/9563949f5cd3bd12a17d12fb980528bc141c5806", + "reference": "9563949f5cd3bd12a17d12fb980528bc141c5806", "shasum": "" }, "require": { @@ -1610,9 +1610,9 @@ ], "support": { "issues": "https://github.com/doctrine/sql-formatter/issues", - "source": "https://github.com/doctrine/sql-formatter/tree/1.5.3" + "source": "https://github.com/doctrine/sql-formatter/tree/1.5.4" }, - "time": "2025-10-26T09:35:14+00:00" + "time": "2026-02-08T16:21:46+00:00" }, { "name": "egulias/email-validator", @@ -3549,16 +3549,16 @@ }, { "name": "symfony/cache", - "version": "v7.4.14", + "version": "v7.4.15", "source": { "type": "git", "url": "https://github.com/symfony/cache.git", - "reference": "9adfcb2a7fc3924473b09f5a0b058dcc2cc7be9a" + "reference": "c1e7abe8e8c9b315d6d8b86446ffd9cf73679303" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/cache/zipball/9adfcb2a7fc3924473b09f5a0b058dcc2cc7be9a", - "reference": "9adfcb2a7fc3924473b09f5a0b058dcc2cc7be9a", + "url": "https://api.github.com/repos/symfony/cache/zipball/c1e7abe8e8c9b315d6d8b86446ffd9cf73679303", + "reference": "c1e7abe8e8c9b315d6d8b86446ffd9cf73679303", "shasum": "" }, "require": { @@ -3629,7 +3629,7 @@ "psr6" ], "support": { - "source": "https://github.com/symfony/cache/tree/v7.4.14" + "source": "https://github.com/symfony/cache/tree/v7.4.15" }, "funding": [ { @@ -3649,7 +3649,7 @@ "type": "tidelift" } ], - "time": "2026-06-17T14:44:48+00:00" + "time": "2026-07-29T04:03:42+00:00" }, { "name": "symfony/cache-contracts", @@ -3811,16 +3811,16 @@ }, { "name": "symfony/config", - "version": "v7.4.14", + "version": "v7.4.15", "source": { "type": "git", "url": "https://github.com/symfony/config.git", - "reference": "7b665e443381ea7c4db03eb03b4bf79ea2b020eb" + "reference": "b18e33881ef402ad940f36e85935420624009bf4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/config/zipball/7b665e443381ea7c4db03eb03b4bf79ea2b020eb", - "reference": "7b665e443381ea7c4db03eb03b4bf79ea2b020eb", + "url": "https://api.github.com/repos/symfony/config/zipball/b18e33881ef402ad940f36e85935420624009bf4", + "reference": "b18e33881ef402ad940f36e85935420624009bf4", "shasum": "" }, "require": { @@ -3866,7 +3866,7 @@ "description": "Helps you find, load, combine, autofill and validate configuration values of any kind", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/config/tree/v7.4.14" + "source": "https://github.com/symfony/config/tree/v7.4.15" }, "funding": [ { @@ -3886,20 +3886,20 @@ "type": "tidelift" } ], - "time": "2026-06-09T07:51:57+00:00" + "time": "2026-07-22T12:54:40+00:00" }, { "name": "symfony/console", - "version": "v7.4.1", + "version": "v7.4.15", "source": { "type": "git", "url": "https://github.com/symfony/console.git", - "reference": "6d9f0fbf2ec2e9785880096e3abd0ca0c88b506e" + "reference": "088ec6fe0ef6819cbc301174093b6bfa4ad26930" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/console/zipball/6d9f0fbf2ec2e9785880096e3abd0ca0c88b506e", - "reference": "6d9f0fbf2ec2e9785880096e3abd0ca0c88b506e", + "url": "https://api.github.com/repos/symfony/console/zipball/088ec6fe0ef6819cbc301174093b6bfa4ad26930", + "reference": "088ec6fe0ef6819cbc301174093b6bfa4ad26930", "shasum": "" }, "require": { @@ -3964,7 +3964,7 @@ "terminal" ], "support": { - "source": "https://github.com/symfony/console/tree/v7.4.1" + "source": "https://github.com/symfony/console/tree/v7.4.15" }, "funding": [ { @@ -3984,20 +3984,20 @@ "type": "tidelift" } ], - "time": "2025-12-05T15:23:39+00:00" + "time": "2026-07-27T13:51:00+00:00" }, { "name": "symfony/dependency-injection", - "version": "v7.4.14", + "version": "v7.4.15", "source": { "type": "git", "url": "https://github.com/symfony/dependency-injection.git", - "reference": "2c8c64a33e2e6911579e1ff79a8e06c27d48d402" + "reference": "b7825671c553af46a98c744e23f37f972aee6427" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/dependency-injection/zipball/2c8c64a33e2e6911579e1ff79a8e06c27d48d402", - "reference": "2c8c64a33e2e6911579e1ff79a8e06c27d48d402", + "url": "https://api.github.com/repos/symfony/dependency-injection/zipball/b7825671c553af46a98c744e23f37f972aee6427", + "reference": "b7825671c553af46a98c744e23f37f972aee6427", "shasum": "" }, "require": { @@ -4048,7 +4048,7 @@ "description": "Allows you to standardize and centralize the way objects are constructed in your application", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/dependency-injection/tree/v7.4.14" + "source": "https://github.com/symfony/dependency-injection/tree/v7.4.15" }, "funding": [ { @@ -4068,7 +4068,7 @@ "type": "tidelift" } ], - "time": "2026-06-24T07:41:05+00:00" + "time": "2026-07-22T08:40:50+00:00" }, { "name": "symfony/deprecation-contracts", @@ -4143,16 +4143,16 @@ }, { "name": "symfony/doctrine-bridge", - "version": "v7.4.1", + "version": "v7.4.15", "source": { "type": "git", "url": "https://github.com/symfony/doctrine-bridge.git", - "reference": "7acd7ce1b71601b25d698bc2da6b52e43f3c72b3" + "reference": "76ebc0ca1680f766c57cf23d334784ef8e83a5e7" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/doctrine-bridge/zipball/7acd7ce1b71601b25d698bc2da6b52e43f3c72b3", - "reference": "7acd7ce1b71601b25d698bc2da6b52e43f3c72b3", + "url": "https://api.github.com/repos/symfony/doctrine-bridge/zipball/76ebc0ca1680f766c57cf23d334784ef8e83a5e7", + "reference": "76ebc0ca1680f766c57cf23d334784ef8e83a5e7", "shasum": "" }, "require": { @@ -4232,7 +4232,7 @@ "description": "Provides integration for Doctrine with various Symfony components", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/doctrine-bridge/tree/v7.4.1" + "source": "https://github.com/symfony/doctrine-bridge/tree/v7.4.15" }, "funding": [ { @@ -4252,36 +4252,37 @@ "type": "tidelift" } ], - "time": "2025-12-04T17:15:58+00:00" + "time": "2026-07-21T15:13:06+00:00" }, { "name": "symfony/error-handler", - "version": "v8.1.0", + "version": "v7.4.15", "source": { "type": "git", "url": "https://github.com/symfony/error-handler.git", - "reference": "d8aeb1abd3fef84795567850d3a567bdb5945ee5" + "reference": "d49f6a19f326db41ae7103bdc38e3eb35a791261" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/error-handler/zipball/d8aeb1abd3fef84795567850d3a567bdb5945ee5", - "reference": "d8aeb1abd3fef84795567850d3a567bdb5945ee5", + "url": "https://api.github.com/repos/symfony/error-handler/zipball/d49f6a19f326db41ae7103bdc38e3eb35a791261", + "reference": "d49f6a19f326db41ae7103bdc38e3eb35a791261", "shasum": "" }, "require": { - "php": ">=8.4.1", + "php": ">=8.2", "psr/log": "^1|^2|^3", "symfony/polyfill-php85": "^1.32", - "symfony/var-dumper": "^7.4|^8.0" + "symfony/var-dumper": "^6.4|^7.0|^8.0" }, "conflict": { - "symfony/deprecation-contracts": "<2.5" + "symfony/deprecation-contracts": "<2.5", + "symfony/http-kernel": "<6.4" }, "require-dev": { - "symfony/console": "^7.4|^8.0", + "symfony/console": "^6.4|^7.0|^8.0", "symfony/deprecation-contracts": "^2.5|^3", - "symfony/http-kernel": "^7.4|^8.0", - "symfony/serializer": "^7.4|^8.0", + "symfony/http-kernel": "^6.4|^7.0|^8.0", + "symfony/serializer": "^6.4|^7.0|^8.0", "symfony/webpack-encore-bundle": "^1.0|^2.0" }, "bin": [ @@ -4313,7 +4314,7 @@ "description": "Provides tools to manage errors and ease debugging PHP code", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/error-handler/tree/v8.1.0" + "source": "https://github.com/symfony/error-handler/tree/v7.4.15" }, "funding": [ { @@ -4333,20 +4334,20 @@ "type": "tidelift" } ], - "time": "2026-05-29T05:06:50+00:00" + "time": "2026-07-21T15:13:06+00:00" }, { "name": "symfony/event-dispatcher", - "version": "v7.4.14", + "version": "v7.4.15", "source": { "type": "git", "url": "https://github.com/symfony/event-dispatcher.git", - "reference": "51fe3d170227be8d1772214b82ae506e15ed78ff" + "reference": "336e7f3b9e95aba04f93ea9143920c2186abfbb9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/51fe3d170227be8d1772214b82ae506e15ed78ff", - "reference": "51fe3d170227be8d1772214b82ae506e15ed78ff", + "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/336e7f3b9e95aba04f93ea9143920c2186abfbb9", + "reference": "336e7f3b9e95aba04f93ea9143920c2186abfbb9", "shasum": "" }, "require": { @@ -4398,7 +4399,7 @@ "description": "Provides tools that allow your application components to communicate with each other by dispatching events and listening to them", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/event-dispatcher/tree/v7.4.14" + "source": "https://github.com/symfony/event-dispatcher/tree/v7.4.15" }, "funding": [ { @@ -4418,7 +4419,7 @@ "type": "tidelift" } ], - "time": "2026-06-06T11:10:32+00:00" + "time": "2026-07-21T15:13:06+00:00" }, { "name": "symfony/event-dispatcher-contracts", @@ -4570,16 +4571,16 @@ }, { "name": "symfony/filesystem", - "version": "v7.4.11", + "version": "v7.4.15", "source": { "type": "git", "url": "https://github.com/symfony/filesystem.git", - "reference": "d721ea61b4a5fba8c5b6e7c1feda19efea144b50" + "reference": "ff16a16bf87fdf264638b8f6995b3515975e3c79" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/filesystem/zipball/d721ea61b4a5fba8c5b6e7c1feda19efea144b50", - "reference": "d721ea61b4a5fba8c5b6e7c1feda19efea144b50", + "url": "https://api.github.com/repos/symfony/filesystem/zipball/ff16a16bf87fdf264638b8f6995b3515975e3c79", + "reference": "ff16a16bf87fdf264638b8f6995b3515975e3c79", "shasum": "" }, "require": { @@ -4616,7 +4617,7 @@ "description": "Provides basic utilities for the filesystem", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/filesystem/tree/v7.4.11" + "source": "https://github.com/symfony/filesystem/tree/v7.4.15" }, "funding": [ { @@ -4636,7 +4637,7 @@ "type": "tidelift" } ], - "time": "2026-05-11T16:38:44+00:00" + "time": "2026-07-22T07:36:05+00:00" }, { "name": "symfony/finder", @@ -4884,16 +4885,16 @@ }, { "name": "symfony/framework-bundle", - "version": "v7.4.14", + "version": "v7.4.15", "source": { "type": "git", "url": "https://github.com/symfony/framework-bundle.git", - "reference": "4d11fd50d0a3d2c43b400154ad7ec35b84ea3e5b" + "reference": "a430728797dda13ec60add8afd18e3fea50f5e93" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/framework-bundle/zipball/4d11fd50d0a3d2c43b400154ad7ec35b84ea3e5b", - "reference": "4d11fd50d0a3d2c43b400154ad7ec35b84ea3e5b", + "url": "https://api.github.com/repos/symfony/framework-bundle/zipball/a430728797dda13ec60add8afd18e3fea50f5e93", + "reference": "a430728797dda13ec60add8afd18e3fea50f5e93", "shasum": "" }, "require": { @@ -4902,7 +4903,7 @@ "php": ">=8.2", "symfony/cache": "^6.4.12|^7.0|^8.0", "symfony/config": "^7.4.4|^8.0.4", - "symfony/dependency-injection": "^7.4.4|^8.0.4", + "symfony/dependency-injection": "^7.4.15|~8.0.15|^8.1.2", "symfony/deprecation-contracts": "^2.5|^3", "symfony/error-handler": "^7.3|^8.0", "symfony/event-dispatcher": "^6.4|^7.0|^8.0", @@ -4921,7 +4922,7 @@ "symfony/asset": "<6.4", "symfony/asset-mapper": "<6.4", "symfony/clock": "<6.4", - "symfony/console": "<6.4", + "symfony/console": "<6.4.43|>=7.0,<7.4.15|>=8.0,<8.0.15", "symfony/dom-crawler": "<6.4", "symfony/dotenv": "<6.4", "symfony/form": "<7.4", @@ -4955,7 +4956,7 @@ "symfony/asset-mapper": "^6.4|^7.0|^8.0", "symfony/browser-kit": "^6.4|^7.0|^8.0", "symfony/clock": "^6.4|^7.0|^8.0", - "symfony/console": "^6.4|^7.0|^8.0", + "symfony/console": "^6.4.43|^7.4.15|^8.0.15", "symfony/css-selector": "^6.4|^7.0|^8.0", "symfony/dom-crawler": "^6.4|^7.0|^8.0", "symfony/dotenv": "^6.4|^7.0|^8.0", @@ -4990,7 +4991,7 @@ "symfony/webhook": "^7.4|^8.0", "symfony/workflow": "^7.4|^8.0", "symfony/yaml": "^7.3|^8.0", - "twig/twig": "^3.12" + "twig/twig": "^3.12|^4.0" }, "type": "symfony-bundle", "autoload": { @@ -5018,7 +5019,7 @@ "description": "Provides a tight integration between Symfony components and the Symfony full-stack framework", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/framework-bundle/tree/v7.4.14" + "source": "https://github.com/symfony/framework-bundle/tree/v7.4.15" }, "funding": [ { @@ -5038,20 +5039,20 @@ "type": "tidelift" } ], - "time": "2026-06-27T08:31:38+00:00" + "time": "2026-07-26T12:33:49+00:00" }, { "name": "symfony/http-foundation", - "version": "v7.4.14", + "version": "v7.4.15", "source": { "type": "git", "url": "https://github.com/symfony/http-foundation.git", - "reference": "06db5ae1552177bf8572f8908839f12e3c06aed3" + "reference": "1f898ee8188adda9417fb52cf8425a8342c254e7" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/http-foundation/zipball/06db5ae1552177bf8572f8908839f12e3c06aed3", - "reference": "06db5ae1552177bf8572f8908839f12e3c06aed3", + "url": "https://api.github.com/repos/symfony/http-foundation/zipball/1f898ee8188adda9417fb52cf8425a8342c254e7", + "reference": "1f898ee8188adda9417fb52cf8425a8342c254e7", "shasum": "" }, "require": { @@ -5100,7 +5101,7 @@ "description": "Defines an object-oriented layer for the HTTP specification", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/http-foundation/tree/v7.4.14" + "source": "https://github.com/symfony/http-foundation/tree/v7.4.15" }, "funding": [ { @@ -5120,20 +5121,20 @@ "type": "tidelift" } ], - "time": "2026-06-11T07:31:44+00:00" + "time": "2026-07-29T07:12:33+00:00" }, { "name": "symfony/http-kernel", - "version": "v7.4.14", + "version": "v7.4.15", "source": { "type": "git", "url": "https://github.com/symfony/http-kernel.git", - "reference": "e99af79b1e776646eda0e1c23b7b45c184ff99be" + "reference": "403275d94f94d5626c3288c599b3b48093ba24f7" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/http-kernel/zipball/e99af79b1e776646eda0e1c23b7b45c184ff99be", - "reference": "e99af79b1e776646eda0e1c23b7b45c184ff99be", + "url": "https://api.github.com/repos/symfony/http-kernel/zipball/403275d94f94d5626c3288c599b3b48093ba24f7", + "reference": "403275d94f94d5626c3288c599b3b48093ba24f7", "shasum": "" }, "require": { @@ -5191,7 +5192,7 @@ "symfony/validator": "^6.4|^7.0|^8.0", "symfony/var-dumper": "^6.4|^7.0|^8.0", "symfony/var-exporter": "^6.4|^7.0|^8.0", - "twig/twig": "^3.12" + "twig/twig": "^3.12|^4.0" }, "type": "library", "autoload": { @@ -5219,7 +5220,7 @@ "description": "Provides a structured process for converting a Request into a Response", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/http-kernel/tree/v7.4.14" + "source": "https://github.com/symfony/http-kernel/tree/v7.4.15" }, "funding": [ { @@ -5239,7 +5240,7 @@ "type": "tidelift" } ], - "time": "2026-06-27T09:14:35+00:00" + "time": "2026-07-29T11:40:42+00:00" }, { "name": "symfony/intl", @@ -5896,16 +5897,16 @@ }, { "name": "symfony/polyfill-intl-grapheme", - "version": "v1.38.1", + "version": "v1.41.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-intl-grapheme.git", - "reference": "e9247d281d694a5120554d9afaf54e070e88a603" + "reference": "bb899c1db0aa8127dc3afe8cda4a67eb24915f8d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-intl-grapheme/zipball/e9247d281d694a5120554d9afaf54e070e88a603", - "reference": "e9247d281d694a5120554d9afaf54e070e88a603", + "url": "https://api.github.com/repos/symfony/polyfill-intl-grapheme/zipball/bb899c1db0aa8127dc3afe8cda4a67eb24915f8d", + "reference": "bb899c1db0aa8127dc3afe8cda4a67eb24915f8d", "shasum": "" }, "require": { @@ -5954,7 +5955,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-intl-grapheme/tree/v1.38.1" + "source": "https://github.com/symfony/polyfill-intl-grapheme/tree/v1.41.0" }, "funding": [ { @@ -5974,7 +5975,7 @@ "type": "tidelift" } ], - "time": "2026-05-26T05:58:03+00:00" + "time": "2026-07-28T08:25:59+00:00" }, { "name": "symfony/polyfill-intl-icu", @@ -6407,16 +6408,16 @@ }, { "name": "symfony/polyfill-php83", - "version": "v1.38.2", + "version": "v1.41.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-php83.git", - "reference": "796a26abb75ce49f3a84433cd81bf1009d73d5f8" + "reference": "5ea99087fb99c273a9b9236ed4c31e78b16103c6" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php83/zipball/796a26abb75ce49f3a84433cd81bf1009d73d5f8", - "reference": "796a26abb75ce49f3a84433cd81bf1009d73d5f8", + "url": "https://api.github.com/repos/symfony/polyfill-php83/zipball/5ea99087fb99c273a9b9236ed4c31e78b16103c6", + "reference": "5ea99087fb99c273a9b9236ed4c31e78b16103c6", "shasum": "" }, "require": { @@ -6463,7 +6464,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-php83/tree/v1.38.2" + "source": "https://github.com/symfony/polyfill-php83/tree/v1.41.0" }, "funding": [ { @@ -6483,20 +6484,20 @@ "type": "tidelift" } ], - "time": "2026-05-27T06:51:48+00:00" + "time": "2026-07-01T12:47:55+00:00" }, { "name": "symfony/polyfill-php84", - "version": "v1.33.0", + "version": "v1.38.1", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-php84.git", - "reference": "d8ced4d875142b6a7426000426b8abc631d6b191" + "reference": "f4e1dfaee5b74aba5964fe1fd4dfc7ba5e3085fa" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php84/zipball/d8ced4d875142b6a7426000426b8abc631d6b191", - "reference": "d8ced4d875142b6a7426000426b8abc631d6b191", + "url": "https://api.github.com/repos/symfony/polyfill-php84/zipball/f4e1dfaee5b74aba5964fe1fd4dfc7ba5e3085fa", + "reference": "f4e1dfaee5b74aba5964fe1fd4dfc7ba5e3085fa", "shasum": "" }, "require": { @@ -6543,7 +6544,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-php84/tree/v1.33.0" + "source": "https://github.com/symfony/polyfill-php84/tree/v1.38.1" }, "funding": [ { @@ -6563,20 +6564,20 @@ "type": "tidelift" } ], - "time": "2025-06-24T13:30:11+00:00" + "time": "2026-05-26T12:51:13+00:00" }, { "name": "symfony/polyfill-php85", - "version": "v1.38.1", + "version": "v1.41.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-php85.git", - "reference": "ba2ba04f3352cfa2dcbbcb90aee13ed967f505b1" + "reference": "255fab485aaa1006ed411040c42aecd7b5302d7a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php85/zipball/ba2ba04f3352cfa2dcbbcb90aee13ed967f505b1", - "reference": "ba2ba04f3352cfa2dcbbcb90aee13ed967f505b1", + "url": "https://api.github.com/repos/symfony/polyfill-php85/zipball/255fab485aaa1006ed411040c42aecd7b5302d7a", + "reference": "255fab485aaa1006ed411040c42aecd7b5302d7a", "shasum": "" }, "require": { @@ -6623,7 +6624,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-php85/tree/v1.38.1" + "source": "https://github.com/symfony/polyfill-php85/tree/v1.41.0" }, "funding": [ { @@ -6643,7 +6644,7 @@ "type": "tidelift" } ], - "time": "2026-05-26T02:25:22+00:00" + "time": "2026-07-01T12:47:55+00:00" }, { "name": "symfony/property-access", @@ -6814,29 +6815,34 @@ }, { "name": "symfony/routing", - "version": "v8.1.0", + "version": "v7.4.15", "source": { "type": "git", "url": "https://github.com/symfony/routing.git", - "reference": "fe0bfec72c8a806109fb9c3a5f2b898fe0c76eb3" + "reference": "80c0a93d3f8e7499f716204a1fb38ead942a7a2b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/routing/zipball/fe0bfec72c8a806109fb9c3a5f2b898fe0c76eb3", - "reference": "fe0bfec72c8a806109fb9c3a5f2b898fe0c76eb3", + "url": "https://api.github.com/repos/symfony/routing/zipball/80c0a93d3f8e7499f716204a1fb38ead942a7a2b", + "reference": "80c0a93d3f8e7499f716204a1fb38ead942a7a2b", "shasum": "" }, "require": { - "php": ">=8.4.1", + "php": ">=8.2", "symfony/deprecation-contracts": "^2.5|^3" }, + "conflict": { + "symfony/config": "<6.4", + "symfony/dependency-injection": "<6.4", + "symfony/yaml": "<6.4" + }, "require-dev": { "psr/log": "^1|^2|^3", - "symfony/config": "^7.4|^8.0", - "symfony/dependency-injection": "^7.4|^8.0", - "symfony/expression-language": "^7.4|^8.0", - "symfony/http-foundation": "^7.4|^8.0", - "symfony/yaml": "^7.4|^8.0" + "symfony/config": "^6.4|^7.0|^8.0", + "symfony/dependency-injection": "^6.4|^7.0|^8.0", + "symfony/expression-language": "^6.4|^7.0|^8.0", + "symfony/http-foundation": "^6.4|^7.0|^8.0", + "symfony/yaml": "^6.4|^7.0|^8.0" }, "type": "library", "autoload": { @@ -6870,7 +6876,7 @@ "url" ], "support": { - "source": "https://github.com/symfony/routing/tree/v8.1.0" + "source": "https://github.com/symfony/routing/tree/v7.4.15" }, "funding": [ { @@ -6890,7 +6896,7 @@ "type": "tidelift" } ], - "time": "2026-05-29T05:06:50+00:00" + "time": "2026-07-21T15:13:06+00:00" }, { "name": "symfony/runtime", @@ -7434,16 +7440,16 @@ }, { "name": "symfony/stopwatch", - "version": "v7.4.0", + "version": "v7.4.8", "source": { "type": "git", "url": "https://github.com/symfony/stopwatch.git", - "reference": "8a24af0a2e8a872fb745047180649b8418303084" + "reference": "70a852d72fec4d51efb1f48dcd968efcaf5ccb89" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/stopwatch/zipball/8a24af0a2e8a872fb745047180649b8418303084", - "reference": "8a24af0a2e8a872fb745047180649b8418303084", + "url": "https://api.github.com/repos/symfony/stopwatch/zipball/70a852d72fec4d51efb1f48dcd968efcaf5ccb89", + "reference": "70a852d72fec4d51efb1f48dcd968efcaf5ccb89", "shasum": "" }, "require": { @@ -7476,7 +7482,7 @@ "description": "Provides a way to profile code", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/stopwatch/tree/v7.4.0" + "source": "https://github.com/symfony/stopwatch/tree/v7.4.8" }, "funding": [ { @@ -7496,38 +7502,39 @@ "type": "tidelift" } ], - "time": "2025-08-04T07:05:15+00:00" + "time": "2026-03-24T13:12:05+00:00" }, { "name": "symfony/string", - "version": "v8.1.0", + "version": "v7.4.15", "source": { "type": "git", "url": "https://github.com/symfony/string.git", - "reference": "afd5944f4005862d961efb85c8bbd5c523c4e3c9" + "reference": "e394af32256bf9e7bf80849d95e589167c10097b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/string/zipball/afd5944f4005862d961efb85c8bbd5c523c4e3c9", - "reference": "afd5944f4005862d961efb85c8bbd5c523c4e3c9", + "url": "https://api.github.com/repos/symfony/string/zipball/e394af32256bf9e7bf80849d95e589167c10097b", + "reference": "e394af32256bf9e7bf80849d95e589167c10097b", "shasum": "" }, "require": { - "php": ">=8.4.1", - "symfony/polyfill-ctype": "^1.8", - "symfony/polyfill-intl-grapheme": "^1.33", - "symfony/polyfill-intl-normalizer": "^1.0", - "symfony/polyfill-mbstring": "^1.0" + "php": ">=8.2", + "symfony/deprecation-contracts": "^2.5|^3.0", + "symfony/polyfill-ctype": "~1.8", + "symfony/polyfill-intl-grapheme": "~1.33", + "symfony/polyfill-intl-normalizer": "~1.0", + "symfony/polyfill-mbstring": "~1.0" }, "conflict": { "symfony/translation-contracts": "<2.5" }, "require-dev": { - "symfony/emoji": "^7.4|^8.0", - "symfony/http-client": "^7.4|^8.0", - "symfony/intl": "^7.4|^8.0", + "symfony/emoji": "^7.1|^8.0", + "symfony/http-client": "^6.4|^7.0|^8.0", + "symfony/intl": "^6.4|^7.0|^8.0", "symfony/translation-contracts": "^2.5|^3.0", - "symfony/var-exporter": "^7.4|^8.0" + "symfony/var-exporter": "^6.4|^7.0|^8.0" }, "type": "library", "autoload": { @@ -7566,7 +7573,7 @@ "utf8" ], "support": { - "source": "https://github.com/symfony/string/tree/v8.1.0" + "source": "https://github.com/symfony/string/tree/v7.4.15" }, "funding": [ { @@ -7586,7 +7593,7 @@ "type": "tidelift" } ], - "time": "2026-05-29T05:06:50+00:00" + "time": "2026-07-28T07:33:02+00:00" }, { "name": "symfony/templating", @@ -8233,32 +8240,32 @@ }, { "name": "symfony/var-dumper", - "version": "v8.1.1", + "version": "v7.4.15", "source": { "type": "git", "url": "https://github.com/symfony/var-dumper.git", - "reference": "40096a2515a979f3125c5c928603995b8664c62a" + "reference": "04ba4add636a95ff437af3a5a9499bb1d6c6d4bd" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/var-dumper/zipball/40096a2515a979f3125c5c928603995b8664c62a", - "reference": "40096a2515a979f3125c5c928603995b8664c62a", + "url": "https://api.github.com/repos/symfony/var-dumper/zipball/04ba4add636a95ff437af3a5a9499bb1d6c6d4bd", + "reference": "04ba4add636a95ff437af3a5a9499bb1d6c6d4bd", "shasum": "" }, "require": { - "php": ">=8.4.1", - "symfony/polyfill-mbstring": "^1.0" + "php": ">=8.2", + "symfony/deprecation-contracts": "^2.5|^3", + "symfony/polyfill-mbstring": "~1.0" }, "conflict": { - "symfony/console": "<7.4", - "symfony/error-handler": "<7.4" + "symfony/console": "<6.4" }, "require-dev": { - "symfony/console": "^7.4|^8.0", - "symfony/http-kernel": "^7.4|^8.0", - "symfony/process": "^7.4|^8.0", - "symfony/uid": "^7.4|^8.0", - "twig/twig": "^3.12" + "symfony/console": "^6.4|^7.0|^8.0", + "symfony/http-kernel": "^6.4|^7.0|^8.0", + "symfony/process": "^6.4|^7.0|^8.0", + "symfony/uid": "^6.4|^7.0|^8.0", + "twig/twig": "^3.12|^4.0" }, "bin": [ "Resources/bin/var-dump-server" @@ -8296,7 +8303,7 @@ "dump" ], "support": { - "source": "https://github.com/symfony/var-dumper/tree/v8.1.1" + "source": "https://github.com/symfony/var-dumper/tree/v7.4.15" }, "funding": [ { @@ -8316,7 +8323,7 @@ "type": "tidelift" } ], - "time": "2026-06-09T10:54:51+00:00" + "time": "2026-07-21T15:13:06+00:00" }, { "name": "symfony/var-exporter", @@ -12094,20 +12101,20 @@ }, { "name": "symfony/process", - "version": "v8.1.0", + "version": "v7.4.13", "source": { "type": "git", "url": "https://github.com/symfony/process.git", - "reference": "c4a9e58f235a6bf7f97ffbfedae2687353ac79e5" + "reference": "f5804be144caceb570f6747519999636b664f24c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/process/zipball/c4a9e58f235a6bf7f97ffbfedae2687353ac79e5", - "reference": "c4a9e58f235a6bf7f97ffbfedae2687353ac79e5", + "url": "https://api.github.com/repos/symfony/process/zipball/f5804be144caceb570f6747519999636b664f24c", + "reference": "f5804be144caceb570f6747519999636b664f24c", "shasum": "" }, "require": { - "php": ">=8.4.1" + "php": ">=8.2" }, "type": "library", "autoload": { @@ -12135,7 +12142,7 @@ "description": "Executes commands in sub-processes", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/process/tree/v8.1.0" + "source": "https://github.com/symfony/process/tree/v7.4.13" }, "funding": [ { @@ -12155,7 +12162,7 @@ "type": "tidelift" } ], - "time": "2026-05-29T05:06:50+00:00" + "time": "2026-05-23T16:05:06+00:00" }, { "name": "symfony/web-profiler-bundle", @@ -12299,9 +12306,11 @@ } ], "aliases": [], - "minimum-stability": "stable", - "stability-flags": {}, - "prefer-stable": false, + "minimum-stability": "dev", + "stability-flags": { + "broadway/event-store-dbal": 20 + }, + "prefer-stable": true, "prefer-lowest": false, "platform": { "php": "^8.5", diff --git a/src/Surfnet/Migrations/Version20141031133057.php b/src/Surfnet/Migrations/Version20141031133057.php index fcd621039..3aa341ff1 100644 --- a/src/Surfnet/Migrations/Version20141031133057.php +++ b/src/Surfnet/Migrations/Version20141031133057.php @@ -29,7 +29,7 @@ class Version20141031133057 extends AbstractMigration public function up(Schema $schema): void { $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); @@ -52,7 +52,7 @@ public function up(Schema $schema): void public function down(Schema $schema): void { $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); diff --git a/src/Surfnet/Migrations/Version20141031144721.php b/src/Surfnet/Migrations/Version20141031144721.php index 3e3dd53d9..c27461aee 100644 --- a/src/Surfnet/Migrations/Version20141031144721.php +++ b/src/Surfnet/Migrations/Version20141031144721.php @@ -30,7 +30,7 @@ public function up(Schema $schema): void { // this up() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); @@ -43,7 +43,7 @@ public function down(Schema $schema): void { // this down() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); diff --git a/src/Surfnet/Migrations/Version20141031163549.php b/src/Surfnet/Migrations/Version20141031163549.php index e0abedaa1..f967e838f 100644 --- a/src/Surfnet/Migrations/Version20141031163549.php +++ b/src/Surfnet/Migrations/Version20141031163549.php @@ -30,7 +30,7 @@ public function up(Schema $schema): void { // this up() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); @@ -43,7 +43,7 @@ public function down(Schema $schema): void { // this down() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); diff --git a/src/Surfnet/Migrations/Version20141031164140.php b/src/Surfnet/Migrations/Version20141031164140.php index cf2861bdc..927bdad1f 100644 --- a/src/Surfnet/Migrations/Version20141031164140.php +++ b/src/Surfnet/Migrations/Version20141031164140.php @@ -30,7 +30,7 @@ public function up(Schema $schema): void { // this up() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); @@ -44,7 +44,7 @@ public function down(Schema $schema): void { // this down() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); diff --git a/src/Surfnet/Migrations/Version20141112093720.php b/src/Surfnet/Migrations/Version20141112093720.php index 2388dcd9c..bdbd4e8c0 100644 --- a/src/Surfnet/Migrations/Version20141112093720.php +++ b/src/Surfnet/Migrations/Version20141112093720.php @@ -30,7 +30,7 @@ public function up(Schema $schema): void { // this up() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); @@ -46,7 +46,7 @@ public function down(Schema $schema): void { // this down() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); diff --git a/src/Surfnet/Migrations/Version20141112094457.php b/src/Surfnet/Migrations/Version20141112094457.php index 0d183dca7..d659c5a28 100644 --- a/src/Surfnet/Migrations/Version20141112094457.php +++ b/src/Surfnet/Migrations/Version20141112094457.php @@ -31,7 +31,7 @@ public function up(Schema $schema): void { // this up() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); @@ -46,7 +46,7 @@ public function down(Schema $schema): void { // this down() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); diff --git a/src/Surfnet/Migrations/Version20141114095245.php b/src/Surfnet/Migrations/Version20141114095245.php index db0fca27c..27aa7a5f2 100644 --- a/src/Surfnet/Migrations/Version20141114095245.php +++ b/src/Surfnet/Migrations/Version20141114095245.php @@ -30,7 +30,7 @@ public function up(Schema $schema): void { // this up() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); @@ -46,7 +46,7 @@ public function down(Schema $schema): void { // this down() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); diff --git a/src/Surfnet/Migrations/Version20141117230116.php b/src/Surfnet/Migrations/Version20141117230116.php index 2c97e5947..61e083adf 100644 --- a/src/Surfnet/Migrations/Version20141117230116.php +++ b/src/Surfnet/Migrations/Version20141117230116.php @@ -30,7 +30,7 @@ public function up(Schema $schema): void { // this up() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); @@ -43,7 +43,7 @@ public function down(Schema $schema): void { // this down() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); diff --git a/src/Surfnet/Migrations/Version20141118114026.php b/src/Surfnet/Migrations/Version20141118114026.php index ae90e61eb..cc2ec785c 100644 --- a/src/Surfnet/Migrations/Version20141118114026.php +++ b/src/Surfnet/Migrations/Version20141118114026.php @@ -30,7 +30,7 @@ public function up(Schema $schema): void { // this up() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); @@ -42,7 +42,7 @@ public function down(Schema $schema): void { // this down() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); diff --git a/src/Surfnet/Migrations/Version20141119093423.php b/src/Surfnet/Migrations/Version20141119093423.php index b7d6b81ea..ecfc27891 100644 --- a/src/Surfnet/Migrations/Version20141119093423.php +++ b/src/Surfnet/Migrations/Version20141119093423.php @@ -30,7 +30,7 @@ public function up(Schema $schema): void { // this up() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); @@ -43,7 +43,7 @@ public function down(Schema $schema): void { // this down() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); diff --git a/src/Surfnet/Migrations/Version20141119113444.php b/src/Surfnet/Migrations/Version20141119113444.php index 9227046b0..c7b85658a 100644 --- a/src/Surfnet/Migrations/Version20141119113444.php +++ b/src/Surfnet/Migrations/Version20141119113444.php @@ -30,7 +30,7 @@ public function up(Schema $schema): void { // this up() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); @@ -43,7 +43,7 @@ public function down(Schema $schema): void { // this down() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); diff --git a/src/Surfnet/Migrations/Version20141119113553.php b/src/Surfnet/Migrations/Version20141119113553.php index 9219c2c06..abd6b81c2 100644 --- a/src/Surfnet/Migrations/Version20141119113553.php +++ b/src/Surfnet/Migrations/Version20141119113553.php @@ -30,7 +30,7 @@ public function up(Schema $schema): void { // this up() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); @@ -43,7 +43,7 @@ public function down(Schema $schema): void { // this down() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); diff --git a/src/Surfnet/Migrations/Version20141120150430.php b/src/Surfnet/Migrations/Version20141120150430.php index 8052f5031..6bf13cc64 100644 --- a/src/Surfnet/Migrations/Version20141120150430.php +++ b/src/Surfnet/Migrations/Version20141120150430.php @@ -30,7 +30,7 @@ public function up(Schema $schema): void { // this up() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); @@ -43,7 +43,7 @@ public function down(Schema $schema): void { // this down() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); diff --git a/src/Surfnet/Migrations/Version20141120152310.php b/src/Surfnet/Migrations/Version20141120152310.php index 4801976d6..d98284b6f 100644 --- a/src/Surfnet/Migrations/Version20141120152310.php +++ b/src/Surfnet/Migrations/Version20141120152310.php @@ -30,7 +30,7 @@ public function up(Schema $schema): void { // this up() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); @@ -41,7 +41,7 @@ public function down(Schema $schema): void { // this down() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); diff --git a/src/Surfnet/Migrations/Version20141125154133.php b/src/Surfnet/Migrations/Version20141125154133.php index f26870c78..302280213 100644 --- a/src/Surfnet/Migrations/Version20141125154133.php +++ b/src/Surfnet/Migrations/Version20141125154133.php @@ -30,7 +30,7 @@ public function up(Schema $schema): void { // this up() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); @@ -41,7 +41,7 @@ public function down(Schema $schema): void { // this down() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); diff --git a/src/Surfnet/Migrations/Version20141125154214.php b/src/Surfnet/Migrations/Version20141125154214.php index be52f6174..765b453fb 100644 --- a/src/Surfnet/Migrations/Version20141125154214.php +++ b/src/Surfnet/Migrations/Version20141125154214.php @@ -29,7 +29,7 @@ public function up(Schema $schema): void { // this up() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); @@ -40,7 +40,7 @@ public function down(Schema $schema): void { // this down() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); diff --git a/src/Surfnet/Migrations/Version20141125155001.php b/src/Surfnet/Migrations/Version20141125155001.php index 731e9e24e..b4c94c9f1 100644 --- a/src/Surfnet/Migrations/Version20141125155001.php +++ b/src/Surfnet/Migrations/Version20141125155001.php @@ -30,7 +30,7 @@ public function up(Schema $schema): void { // this up() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); @@ -41,7 +41,7 @@ public function down(Schema $schema): void { // this down() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); diff --git a/src/Surfnet/Migrations/Version20141125173004.php b/src/Surfnet/Migrations/Version20141125173004.php index f8df2b3a6..0048d891c 100644 --- a/src/Surfnet/Migrations/Version20141125173004.php +++ b/src/Surfnet/Migrations/Version20141125173004.php @@ -37,7 +37,7 @@ public function up(Schema $schema): void // this up() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); @@ -59,7 +59,7 @@ public function down(Schema $schema): void // this down() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); diff --git a/src/Surfnet/Migrations/Version20141128143908.php b/src/Surfnet/Migrations/Version20141128143908.php index 3473c4d01..6d5347f84 100644 --- a/src/Surfnet/Migrations/Version20141128143908.php +++ b/src/Surfnet/Migrations/Version20141128143908.php @@ -30,7 +30,7 @@ public function up(Schema $schema): void { // this up() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); @@ -47,7 +47,7 @@ public function down(Schema $schema): void { // this down() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); diff --git a/src/Surfnet/Migrations/Version20141128143946.php b/src/Surfnet/Migrations/Version20141128143946.php index 3a4763528..8709beddf 100644 --- a/src/Surfnet/Migrations/Version20141128143946.php +++ b/src/Surfnet/Migrations/Version20141128143946.php @@ -29,7 +29,7 @@ public function up(Schema $schema): void { // this up() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); @@ -40,7 +40,7 @@ public function down(Schema $schema): void { // this down() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); diff --git a/src/Surfnet/Migrations/Version20141202121811.php b/src/Surfnet/Migrations/Version20141202121811.php index 0fa7aeac4..c91e5c8ef 100644 --- a/src/Surfnet/Migrations/Version20141202121811.php +++ b/src/Surfnet/Migrations/Version20141202121811.php @@ -30,7 +30,7 @@ public function up(Schema $schema): void { // this up() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); @@ -41,7 +41,7 @@ public function down(Schema $schema): void { // this down() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); diff --git a/src/Surfnet/Migrations/Version20141204140639.php b/src/Surfnet/Migrations/Version20141204140639.php index 1952502ff..e3f7b2d20 100644 --- a/src/Surfnet/Migrations/Version20141204140639.php +++ b/src/Surfnet/Migrations/Version20141204140639.php @@ -30,7 +30,7 @@ public function up(Schema $schema): void { // this up() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); @@ -41,7 +41,7 @@ public function down(Schema $schema): void { // this down() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); diff --git a/src/Surfnet/Migrations/Version20141205112641.php b/src/Surfnet/Migrations/Version20141205112641.php index 6567d3889..09329e2de 100644 --- a/src/Surfnet/Migrations/Version20141205112641.php +++ b/src/Surfnet/Migrations/Version20141205112641.php @@ -30,7 +30,7 @@ public function up(Schema $schema): void { // this up() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); @@ -43,7 +43,7 @@ public function down(Schema $schema): void { // this down() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); diff --git a/src/Surfnet/Migrations/Version20141208121040.php b/src/Surfnet/Migrations/Version20141208121040.php index 170013440..49017defa 100644 --- a/src/Surfnet/Migrations/Version20141208121040.php +++ b/src/Surfnet/Migrations/Version20141208121040.php @@ -30,7 +30,7 @@ public function up(Schema $schema): void { // this up() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); @@ -43,7 +43,7 @@ public function down(Schema $schema): void { // this down() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); diff --git a/src/Surfnet/Migrations/Version20141208162045.php b/src/Surfnet/Migrations/Version20141208162045.php index 3f56ce5ba..b21b66961 100644 --- a/src/Surfnet/Migrations/Version20141208162045.php +++ b/src/Surfnet/Migrations/Version20141208162045.php @@ -30,7 +30,7 @@ public function up(Schema $schema): void { // this up() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); @@ -46,7 +46,7 @@ public function down(Schema $schema): void { // this down() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); diff --git a/src/Surfnet/Migrations/Version20141208172438.php b/src/Surfnet/Migrations/Version20141208172438.php index dc8afb8ea..a526783eb 100644 --- a/src/Surfnet/Migrations/Version20141208172438.php +++ b/src/Surfnet/Migrations/Version20141208172438.php @@ -30,7 +30,7 @@ public function up(Schema $schema): void { // this up() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); @@ -43,7 +43,7 @@ public function down(Schema $schema): void { // this down() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); diff --git a/src/Surfnet/Migrations/Version20141209150426.php b/src/Surfnet/Migrations/Version20141209150426.php index 3bb0ee217..e1a8b466e 100644 --- a/src/Surfnet/Migrations/Version20141209150426.php +++ b/src/Surfnet/Migrations/Version20141209150426.php @@ -38,7 +38,7 @@ public function up(Schema $schema): void $middlewareUser = $this->getMiddlewareUser(); $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); @@ -63,7 +63,7 @@ public function down(Schema $schema): void $middlewareUser = $this->getMiddlewareUser(); $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); diff --git a/src/Surfnet/Migrations/Version20141210174213.php b/src/Surfnet/Migrations/Version20141210174213.php index d0a4ff6ab..e1ab15db1 100644 --- a/src/Surfnet/Migrations/Version20141210174213.php +++ b/src/Surfnet/Migrations/Version20141210174213.php @@ -36,7 +36,7 @@ public function up(Schema $schema): void // this up() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); @@ -54,7 +54,7 @@ public function down(Schema $schema): void // this down() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); diff --git a/src/Surfnet/Migrations/Version20141215150518.php b/src/Surfnet/Migrations/Version20141215150518.php index 97f046187..f5093c151 100644 --- a/src/Surfnet/Migrations/Version20141215150518.php +++ b/src/Surfnet/Migrations/Version20141215150518.php @@ -30,7 +30,7 @@ public function up(Schema $schema): void { // this up() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); @@ -41,7 +41,7 @@ public function down(Schema $schema): void { // this down() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); diff --git a/src/Surfnet/Migrations/Version20150217122017.php b/src/Surfnet/Migrations/Version20150217122017.php index 5b8bfea1b..fe274306d 100644 --- a/src/Surfnet/Migrations/Version20150217122017.php +++ b/src/Surfnet/Migrations/Version20150217122017.php @@ -30,7 +30,7 @@ public function up(Schema $schema): void { // this up() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); @@ -41,7 +41,7 @@ public function down(Schema $schema): void { // this down() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); diff --git a/src/Surfnet/Migrations/Version20150225155343.php b/src/Surfnet/Migrations/Version20150225155343.php index 07f7c92c6..f7981d094 100644 --- a/src/Surfnet/Migrations/Version20150225155343.php +++ b/src/Surfnet/Migrations/Version20150225155343.php @@ -30,7 +30,7 @@ public function up(Schema $schema): void { // this up() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); @@ -43,7 +43,7 @@ public function down(Schema $schema): void { // this down() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); diff --git a/src/Surfnet/Migrations/Version20150305114932.php b/src/Surfnet/Migrations/Version20150305114932.php index 25d09c2f6..a402b5673 100644 --- a/src/Surfnet/Migrations/Version20150305114932.php +++ b/src/Surfnet/Migrations/Version20150305114932.php @@ -30,7 +30,7 @@ public function up(Schema $schema): void { // this up() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); @@ -44,7 +44,7 @@ public function down(Schema $schema): void { // this down() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); diff --git a/src/Surfnet/Migrations/Version20150305115030.php b/src/Surfnet/Migrations/Version20150305115030.php index f2c58e05e..369c96831 100644 --- a/src/Surfnet/Migrations/Version20150305115030.php +++ b/src/Surfnet/Migrations/Version20150305115030.php @@ -30,7 +30,7 @@ public function up(Schema $schema): void { // this up() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); @@ -42,7 +42,7 @@ public function down(Schema $schema): void { // this down() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); diff --git a/src/Surfnet/Migrations/Version20150305134846.php b/src/Surfnet/Migrations/Version20150305134846.php index 9ecfc3b85..eb684f57d 100644 --- a/src/Surfnet/Migrations/Version20150305134846.php +++ b/src/Surfnet/Migrations/Version20150305134846.php @@ -30,7 +30,7 @@ public function up(Schema $schema): void { // this up() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); @@ -47,7 +47,7 @@ public function down(Schema $schema): void { // this down() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); diff --git a/src/Surfnet/Migrations/Version20150312134629.php b/src/Surfnet/Migrations/Version20150312134629.php index f1b78a853..ce11c9524 100644 --- a/src/Surfnet/Migrations/Version20150312134629.php +++ b/src/Surfnet/Migrations/Version20150312134629.php @@ -30,7 +30,7 @@ public function up(Schema $schema): void { // this up() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); @@ -50,7 +50,7 @@ public function down(Schema $schema): void { // this down() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); diff --git a/src/Surfnet/Migrations/Version20150312162849.php b/src/Surfnet/Migrations/Version20150312162849.php index 170300ecf..09e6631cd 100644 --- a/src/Surfnet/Migrations/Version20150312162849.php +++ b/src/Surfnet/Migrations/Version20150312162849.php @@ -34,7 +34,7 @@ public function up(Schema $schema): void { // this up() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); @@ -51,7 +51,7 @@ public function down(Schema $schema): void { // this down() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); diff --git a/src/Surfnet/Migrations/Version20150330160809.php b/src/Surfnet/Migrations/Version20150330160809.php index 4bb54cecc..921c37f13 100644 --- a/src/Surfnet/Migrations/Version20150330160809.php +++ b/src/Surfnet/Migrations/Version20150330160809.php @@ -30,7 +30,7 @@ public function up(Schema $schema): void { // this up() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); @@ -43,7 +43,7 @@ public function down(Schema $schema): void { // this down() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); diff --git a/src/Surfnet/Migrations/Version20150407103950.php b/src/Surfnet/Migrations/Version20150407103950.php index c8e92a004..f4fd967fc 100644 --- a/src/Surfnet/Migrations/Version20150407103950.php +++ b/src/Surfnet/Migrations/Version20150407103950.php @@ -30,7 +30,7 @@ public function up(Schema $schema): void { // this up() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); @@ -41,7 +41,7 @@ public function down(Schema $schema): void { // this down() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); diff --git a/src/Surfnet/Migrations/Version20150408122247.php b/src/Surfnet/Migrations/Version20150408122247.php index 8cfb9fef3..9c1105a35 100644 --- a/src/Surfnet/Migrations/Version20150408122247.php +++ b/src/Surfnet/Migrations/Version20150408122247.php @@ -30,7 +30,7 @@ public function up(Schema $schema): void { // this up() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); @@ -43,7 +43,7 @@ public function down(Schema $schema): void { // this down() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); diff --git a/src/Surfnet/Migrations/Version20150409142404.php b/src/Surfnet/Migrations/Version20150409142404.php index c64f5fc02..6f85534fe 100644 --- a/src/Surfnet/Migrations/Version20150409142404.php +++ b/src/Surfnet/Migrations/Version20150409142404.php @@ -30,7 +30,7 @@ public function up(Schema $schema): void { // this up() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); @@ -43,7 +43,7 @@ public function down(Schema $schema): void { // this down() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); diff --git a/src/Surfnet/Migrations/Version20150422162952.php b/src/Surfnet/Migrations/Version20150422162952.php index 4919e38ec..d6893a816 100644 --- a/src/Surfnet/Migrations/Version20150422162952.php +++ b/src/Surfnet/Migrations/Version20150422162952.php @@ -33,7 +33,7 @@ public function up(Schema $schema): void { // this up() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); @@ -49,7 +49,7 @@ public function down(Schema $schema): void { // this down() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); diff --git a/src/Surfnet/Migrations/Version20150428153351.php b/src/Surfnet/Migrations/Version20150428153351.php index a3864a6e2..23e0df627 100644 --- a/src/Surfnet/Migrations/Version20150428153351.php +++ b/src/Surfnet/Migrations/Version20150428153351.php @@ -33,7 +33,7 @@ public function up(Schema $schema): void { // this up() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); @@ -49,7 +49,7 @@ public function down(Schema $schema): void { // this down() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); diff --git a/src/Surfnet/Migrations/Version20150428174400.php b/src/Surfnet/Migrations/Version20150428174400.php index e1bbbb113..eb68de23b 100644 --- a/src/Surfnet/Migrations/Version20150428174400.php +++ b/src/Surfnet/Migrations/Version20150428174400.php @@ -33,7 +33,7 @@ public function up(Schema $schema): void { // this up() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); @@ -49,7 +49,7 @@ public function down(Schema $schema): void { // this down() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); diff --git a/src/Surfnet/Migrations/Version20150501123735.php b/src/Surfnet/Migrations/Version20150501123735.php index fc2221cd7..d928397f6 100644 --- a/src/Surfnet/Migrations/Version20150501123735.php +++ b/src/Surfnet/Migrations/Version20150501123735.php @@ -33,7 +33,7 @@ public function up(Schema $schema): void { // this up() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); @@ -53,7 +53,7 @@ public function down(Schema $schema): void { // this down() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); diff --git a/src/Surfnet/Migrations/Version20150504102420.php b/src/Surfnet/Migrations/Version20150504102420.php index 968e9b8ad..c00a230c4 100644 --- a/src/Surfnet/Migrations/Version20150504102420.php +++ b/src/Surfnet/Migrations/Version20150504102420.php @@ -33,7 +33,7 @@ public function up(Schema $schema): void { // this up() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); @@ -48,7 +48,7 @@ public function down(Schema $schema): void { // this down() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); diff --git a/src/Surfnet/Migrations/Version20150507124421.php b/src/Surfnet/Migrations/Version20150507124421.php index a04bda692..dc2c813bf 100644 --- a/src/Surfnet/Migrations/Version20150507124421.php +++ b/src/Surfnet/Migrations/Version20150507124421.php @@ -33,7 +33,7 @@ public function up(Schema $schema): void { // this up() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); @@ -68,7 +68,7 @@ public function down(Schema $schema): void { // this down() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); diff --git a/src/Surfnet/Migrations/Version20150508085838.php b/src/Surfnet/Migrations/Version20150508085838.php index 43b0c7c65..da00b9fab 100644 --- a/src/Surfnet/Migrations/Version20150508085838.php +++ b/src/Surfnet/Migrations/Version20150508085838.php @@ -37,7 +37,7 @@ public function up(Schema $schema): void { // this up() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); @@ -59,7 +59,7 @@ public function down(Schema $schema): void { // this down() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); diff --git a/src/Surfnet/Migrations/Version20150518152006.php b/src/Surfnet/Migrations/Version20150518152006.php index 9b68543d2..5f45968fc 100644 --- a/src/Surfnet/Migrations/Version20150518152006.php +++ b/src/Surfnet/Migrations/Version20150518152006.php @@ -33,7 +33,7 @@ public function up(Schema $schema): void { // this up() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); @@ -49,7 +49,7 @@ public function down(Schema $schema): void { // this down() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); diff --git a/src/Surfnet/Migrations/Version20150522163053.php b/src/Surfnet/Migrations/Version20150522163053.php index c121b3ab1..555c9daa7 100644 --- a/src/Surfnet/Migrations/Version20150522163053.php +++ b/src/Surfnet/Migrations/Version20150522163053.php @@ -39,7 +39,7 @@ public function up(Schema $schema): void // this up() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); @@ -59,7 +59,7 @@ public function down(Schema $schema): void // this down() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); diff --git a/src/Surfnet/Migrations/Version20150522164907.php b/src/Surfnet/Migrations/Version20150522164907.php index 9b679a350..fa1654320 100644 --- a/src/Surfnet/Migrations/Version20150522164907.php +++ b/src/Surfnet/Migrations/Version20150522164907.php @@ -39,7 +39,7 @@ public function up(Schema $schema): void // this up() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); @@ -60,7 +60,7 @@ public function down(Schema $schema): void // this down() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); diff --git a/src/Surfnet/Migrations/Version20150526152956.php b/src/Surfnet/Migrations/Version20150526152956.php index 501dca23f..4d46bd155 100644 --- a/src/Surfnet/Migrations/Version20150526152956.php +++ b/src/Surfnet/Migrations/Version20150526152956.php @@ -33,7 +33,7 @@ public function up(Schema $schema): void { // this up() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); @@ -47,7 +47,7 @@ public function down(Schema $schema): void { // this down() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); diff --git a/src/Surfnet/Migrations/Version20150528154959.php b/src/Surfnet/Migrations/Version20150528154959.php index abce6140d..7838fb1c3 100644 --- a/src/Surfnet/Migrations/Version20150528154959.php +++ b/src/Surfnet/Migrations/Version20150528154959.php @@ -37,7 +37,7 @@ public function up(Schema $schema): void { // this up() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); @@ -53,7 +53,7 @@ public function down(Schema $schema): void { // this down() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); diff --git a/src/Surfnet/Migrations/Version20150601154557.php b/src/Surfnet/Migrations/Version20150601154557.php index 051ad51d3..7d5264a98 100644 --- a/src/Surfnet/Migrations/Version20150601154557.php +++ b/src/Surfnet/Migrations/Version20150601154557.php @@ -33,7 +33,7 @@ public function up(Schema $schema): void { // this up() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); @@ -47,7 +47,7 @@ public function down(Schema $schema): void { // this down() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); diff --git a/src/Surfnet/Migrations/Version20150601154942.php b/src/Surfnet/Migrations/Version20150601154942.php index cf8ea69e6..eca8799e6 100644 --- a/src/Surfnet/Migrations/Version20150601154942.php +++ b/src/Surfnet/Migrations/Version20150601154942.php @@ -33,7 +33,7 @@ public function up(Schema $schema): void { // this up() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); @@ -47,7 +47,7 @@ public function down(Schema $schema): void { // this down() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); diff --git a/src/Surfnet/Migrations/Version20150604143755.php b/src/Surfnet/Migrations/Version20150604143755.php index 4230552cd..1fcad9a81 100644 --- a/src/Surfnet/Migrations/Version20150604143755.php +++ b/src/Surfnet/Migrations/Version20150604143755.php @@ -33,7 +33,7 @@ public function up(Schema $schema): void { // this up() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); @@ -57,7 +57,7 @@ public function down(Schema $schema): void { // this down() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); diff --git a/src/Surfnet/Migrations/Version20150604143756.php b/src/Surfnet/Migrations/Version20150604143756.php index 21cc0a045..5508d8b33 100644 --- a/src/Surfnet/Migrations/Version20150604143756.php +++ b/src/Surfnet/Migrations/Version20150604143756.php @@ -33,7 +33,7 @@ public function up(Schema $schema): void { // this up() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); @@ -57,7 +57,7 @@ public function down(Schema $schema): void { // this down() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); diff --git a/src/Surfnet/Migrations/Version20150604143757.php b/src/Surfnet/Migrations/Version20150604143757.php index 7d39a0717..4c885dd4f 100644 --- a/src/Surfnet/Migrations/Version20150604143757.php +++ b/src/Surfnet/Migrations/Version20150604143757.php @@ -33,7 +33,7 @@ public function up(Schema $schema): void { // this up() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); @@ -47,7 +47,7 @@ public function down(Schema $schema): void { // this down() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); diff --git a/src/Surfnet/Migrations/Version20150604143758.php b/src/Surfnet/Migrations/Version20150604143758.php index 2a4ea45ea..e23ad6f61 100644 --- a/src/Surfnet/Migrations/Version20150604143758.php +++ b/src/Surfnet/Migrations/Version20150604143758.php @@ -33,7 +33,7 @@ public function up(Schema $schema): void { // this up() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); @@ -47,7 +47,7 @@ public function down(Schema $schema): void { // this down() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); diff --git a/src/Surfnet/Migrations/Version20150611105956.php b/src/Surfnet/Migrations/Version20150611105956.php index 12c126b17..7c0a2a77e 100644 --- a/src/Surfnet/Migrations/Version20150611105956.php +++ b/src/Surfnet/Migrations/Version20150611105956.php @@ -33,7 +33,7 @@ public function up(Schema $schema): void { // this up() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); @@ -58,7 +58,7 @@ public function down(Schema $schema): void { // this down() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); diff --git a/src/Surfnet/Migrations/Version20150611163038.php b/src/Surfnet/Migrations/Version20150611163038.php index 27040d946..aaf6dba5d 100644 --- a/src/Surfnet/Migrations/Version20150611163038.php +++ b/src/Surfnet/Migrations/Version20150611163038.php @@ -33,7 +33,7 @@ public function up(Schema $schema): void { // this up() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); @@ -55,7 +55,7 @@ public function down(Schema $schema): void { // this down() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); diff --git a/src/Surfnet/Migrations/Version20150615114646.php b/src/Surfnet/Migrations/Version20150615114646.php index f784f9c46..0369b6256 100644 --- a/src/Surfnet/Migrations/Version20150615114646.php +++ b/src/Surfnet/Migrations/Version20150615114646.php @@ -38,7 +38,7 @@ public function up(Schema $schema): void // this up() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); @@ -71,7 +71,7 @@ public function down(Schema $schema): void // this down() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); diff --git a/src/Surfnet/Migrations/Version20150617141129.php b/src/Surfnet/Migrations/Version20150617141129.php index 17e9e9bb8..ae7318cdd 100644 --- a/src/Surfnet/Migrations/Version20150617141129.php +++ b/src/Surfnet/Migrations/Version20150617141129.php @@ -33,7 +33,7 @@ public function up(Schema $schema): void { // this up() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); @@ -49,7 +49,7 @@ public function down(Schema $schema): void { // this down() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); diff --git a/src/Surfnet/Migrations/Version20150618121907.php b/src/Surfnet/Migrations/Version20150618121907.php index 96d033b63..15d5eaa97 100644 --- a/src/Surfnet/Migrations/Version20150618121907.php +++ b/src/Surfnet/Migrations/Version20150618121907.php @@ -33,7 +33,7 @@ public function up(Schema $schema): void { // this up() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); @@ -47,7 +47,7 @@ public function down(Schema $schema): void { // this down() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); diff --git a/src/Surfnet/Migrations/Version20160607142244.php b/src/Surfnet/Migrations/Version20160607142244.php index f6d3dad93..3a9620d95 100644 --- a/src/Surfnet/Migrations/Version20160607142244.php +++ b/src/Surfnet/Migrations/Version20160607142244.php @@ -33,7 +33,7 @@ public function up(Schema $schema): void { // this up() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); diff --git a/src/Surfnet/Migrations/Version20160617163830.php b/src/Surfnet/Migrations/Version20160617163830.php index af7f45469..7cd48f803 100644 --- a/src/Surfnet/Migrations/Version20160617163830.php +++ b/src/Surfnet/Migrations/Version20160617163830.php @@ -33,7 +33,7 @@ public function up(Schema $schema): void { // this up() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); @@ -74,7 +74,7 @@ public function down(Schema $schema): void { // this down() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); diff --git a/src/Surfnet/Migrations/Version20160620153812.php b/src/Surfnet/Migrations/Version20160620153812.php index ac08989ce..3c0d351c9 100644 --- a/src/Surfnet/Migrations/Version20160620153812.php +++ b/src/Surfnet/Migrations/Version20160620153812.php @@ -33,7 +33,7 @@ public function up(Schema $schema): void { // this up() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); @@ -72,7 +72,7 @@ public function down(Schema $schema): void { // this down() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); diff --git a/src/Surfnet/Migrations/Version20160621112027.php b/src/Surfnet/Migrations/Version20160621112027.php index 5177f42b5..1110431ed 100644 --- a/src/Surfnet/Migrations/Version20160621112027.php +++ b/src/Surfnet/Migrations/Version20160621112027.php @@ -33,7 +33,7 @@ public function up(Schema $schema): void { // this up() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); @@ -49,7 +49,7 @@ public function down(Schema $schema): void { // this down() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); diff --git a/src/Surfnet/Migrations/Version20160622100140.php b/src/Surfnet/Migrations/Version20160622100140.php index d89237784..f5ecb5171 100644 --- a/src/Surfnet/Migrations/Version20160622100140.php +++ b/src/Surfnet/Migrations/Version20160622100140.php @@ -33,7 +33,7 @@ public function up(Schema $schema): void { // this up() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); @@ -49,7 +49,7 @@ public function down(Schema $schema): void { // this down() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); diff --git a/src/Surfnet/Migrations/Version20160622160146.php b/src/Surfnet/Migrations/Version20160622160146.php index 5343cbaf5..dcfb27b5e 100644 --- a/src/Surfnet/Migrations/Version20160622160146.php +++ b/src/Surfnet/Migrations/Version20160622160146.php @@ -33,7 +33,7 @@ public function up(Schema $schema): void { // this up() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); @@ -50,7 +50,7 @@ public function down(Schema $schema): void { // this down() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); diff --git a/src/Surfnet/Migrations/Version20160719090050.php b/src/Surfnet/Migrations/Version20160719090050.php index d5ae89866..7c181bc9b 100644 --- a/src/Surfnet/Migrations/Version20160719090050.php +++ b/src/Surfnet/Migrations/Version20160719090050.php @@ -33,7 +33,7 @@ public function up(Schema $schema): void { // this up() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); @@ -49,7 +49,7 @@ public function down(Schema $schema): void { // this down() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); diff --git a/src/Surfnet/Migrations/Version20160719090051.php b/src/Surfnet/Migrations/Version20160719090051.php index c534a9d61..59239a9bb 100644 --- a/src/Surfnet/Migrations/Version20160719090051.php +++ b/src/Surfnet/Migrations/Version20160719090051.php @@ -33,7 +33,7 @@ public function up(Schema $schema): void { // this up() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); @@ -49,7 +49,7 @@ public function down(Schema $schema): void { // this down() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); diff --git a/src/Surfnet/Migrations/Version20170210140051.php b/src/Surfnet/Migrations/Version20170210140051.php index 450cf9e1b..3e9cc37f9 100644 --- a/src/Surfnet/Migrations/Version20170210140051.php +++ b/src/Surfnet/Migrations/Version20170210140051.php @@ -33,7 +33,7 @@ public function up(Schema $schema): void { // this up() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); @@ -49,7 +49,7 @@ public function down(Schema $schema): void { // this down() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); diff --git a/src/Surfnet/Migrations/Version20170216085513.php b/src/Surfnet/Migrations/Version20170216085513.php index ff79dd3d0..70b846059 100644 --- a/src/Surfnet/Migrations/Version20170216085513.php +++ b/src/Surfnet/Migrations/Version20170216085513.php @@ -33,7 +33,7 @@ public function up(Schema $schema): void { // this up() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); @@ -48,7 +48,7 @@ public function down(Schema $schema): void { // this down() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); diff --git a/src/Surfnet/Migrations/Version20171113123232.php b/src/Surfnet/Migrations/Version20171113123232.php index 309e4447c..8bf132a21 100644 --- a/src/Surfnet/Migrations/Version20171113123232.php +++ b/src/Surfnet/Migrations/Version20171113123232.php @@ -33,7 +33,7 @@ public function up(Schema $schema): void { // this up() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); @@ -48,7 +48,7 @@ public function down(Schema $schema): void { // this down() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); diff --git a/src/Surfnet/Migrations/Version20180116091349.php b/src/Surfnet/Migrations/Version20180116091349.php index 13dd0cc0e..0fbb9c1fe 100644 --- a/src/Surfnet/Migrations/Version20180116091349.php +++ b/src/Surfnet/Migrations/Version20180116091349.php @@ -33,7 +33,7 @@ public function up(Schema $schema): void { // this up() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); @@ -49,7 +49,7 @@ public function down(Schema $schema): void { // this down() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); diff --git a/src/Surfnet/Migrations/Version20180131150800.php b/src/Surfnet/Migrations/Version20180131150800.php index 005e978bf..2f5250766 100644 --- a/src/Surfnet/Migrations/Version20180131150800.php +++ b/src/Surfnet/Migrations/Version20180131150800.php @@ -37,7 +37,7 @@ public function up(Schema $schema): void { // this up() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); @@ -54,7 +54,7 @@ public function down(Schema $schema): void { // this down() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); diff --git a/src/Surfnet/Migrations/Version20180330094402.php b/src/Surfnet/Migrations/Version20180330094402.php index 9805c85ff..bff840e08 100644 --- a/src/Surfnet/Migrations/Version20180330094402.php +++ b/src/Surfnet/Migrations/Version20180330094402.php @@ -33,7 +33,7 @@ public function up(Schema $schema): void { // this up() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); @@ -49,7 +49,7 @@ public function down(Schema $schema): void { // this down() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); diff --git a/src/Surfnet/Migrations/Version20180409100948.php b/src/Surfnet/Migrations/Version20180409100948.php index 47cde0ba0..167cd68f3 100644 --- a/src/Surfnet/Migrations/Version20180409100948.php +++ b/src/Surfnet/Migrations/Version20180409100948.php @@ -34,7 +34,7 @@ public function up(Schema $schema): void { // this up() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); @@ -53,7 +53,7 @@ public function down(Schema $schema): void { // this down() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() != 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); $this->addSql('ALTER TABLE institution_configuration_options DROP number_of_tokens_per_identity_option'); diff --git a/src/Surfnet/Migrations/Version20180926144517.php b/src/Surfnet/Migrations/Version20180926144517.php index 180e5d7f8..54c9db6a2 100644 --- a/src/Surfnet/Migrations/Version20180926144517.php +++ b/src/Surfnet/Migrations/Version20180926144517.php @@ -33,7 +33,7 @@ public function up(Schema $schema): void { // this up() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() !== 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); @@ -49,7 +49,7 @@ public function down(Schema $schema): void { // this down() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() !== 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); diff --git a/src/Surfnet/Migrations/Version20181023151546.php b/src/Surfnet/Migrations/Version20181023151546.php index 34107ca4d..bce7171ce 100644 --- a/src/Surfnet/Migrations/Version20181023151546.php +++ b/src/Surfnet/Migrations/Version20181023151546.php @@ -33,7 +33,7 @@ public function up(Schema $schema): void { // this up() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() !== 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); @@ -68,7 +68,7 @@ public function down(Schema $schema): void // this down() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() !== 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); diff --git a/src/Surfnet/Migrations/Version20181101103348.php b/src/Surfnet/Migrations/Version20181101103348.php index 5dcb5067e..aa00bd380 100644 --- a/src/Surfnet/Migrations/Version20181101103348.php +++ b/src/Surfnet/Migrations/Version20181101103348.php @@ -38,7 +38,7 @@ public function up(Schema $schema): void { // this up() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() !== 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); @@ -52,7 +52,7 @@ public function down(Schema $schema): void { // this down() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() !== 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); diff --git a/src/Surfnet/Migrations/Version20190211163604.php b/src/Surfnet/Migrations/Version20190211163604.php index 25db5f005..397c11ce5 100644 --- a/src/Surfnet/Migrations/Version20190211163604.php +++ b/src/Surfnet/Migrations/Version20190211163604.php @@ -33,7 +33,7 @@ public function up(Schema $schema): void { // this up() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() !== 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); @@ -54,7 +54,7 @@ public function down(Schema $schema): void { // this down() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() !== 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); diff --git a/src/Surfnet/Migrations/Version20200416135127.php b/src/Surfnet/Migrations/Version20200416135127.php index 65fb9e749..28bf2dc7f 100644 --- a/src/Surfnet/Migrations/Version20200416135127.php +++ b/src/Surfnet/Migrations/Version20200416135127.php @@ -29,7 +29,7 @@ class Version20200416135127 extends AbstractMigration public function up(Schema $schema): void { $this->abortIf( - $this->connection->getDatabasePlatform()->getName() !== 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); diff --git a/src/Surfnet/Migrations/Version20210308092347.php b/src/Surfnet/Migrations/Version20210308092347.php index 1fe1f1417..40d53b5cb 100644 --- a/src/Surfnet/Migrations/Version20210308092347.php +++ b/src/Surfnet/Migrations/Version20210308092347.php @@ -32,7 +32,7 @@ public function up(Schema $schema): void { // this up() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() !== 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); $this->addSql('ALTER TABLE institution_configuration_options ADD self_vet_option INT DEFAULT \'0\' NOT NULL'); @@ -42,7 +42,7 @@ public function down(Schema $schema): void { // this down() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() !== 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); $this->addSql('ALTER TABLE institution_configuration_options DROP self_vet_option'); diff --git a/src/Surfnet/Migrations/Version20210610131957.php b/src/Surfnet/Migrations/Version20210610131957.php index f463e4586..792fdb3c1 100644 --- a/src/Surfnet/Migrations/Version20210610131957.php +++ b/src/Surfnet/Migrations/Version20210610131957.php @@ -68,7 +68,7 @@ public function up(Schema $schema): void $this->write("Migating: {$uuid}#{$playhead}"); $payload = $this->stripSensitiveData($rawPayload); - $this->connection->executeUpdate( + $this->connection->executeStatement( self::$update, [ 'payload' => $payload, diff --git a/src/Surfnet/Migrations/Version20220519134637.php b/src/Surfnet/Migrations/Version20220519134637.php index 1eba25a72..1727ffb33 100644 --- a/src/Surfnet/Migrations/Version20220519134637.php +++ b/src/Surfnet/Migrations/Version20220519134637.php @@ -36,7 +36,7 @@ public function up(Schema $schema): void { // this up() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() !== 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); $this->addSql( @@ -77,7 +77,7 @@ public function down(Schema $schema): void { // this down() migration is auto-generated, please modify it to your needs $this->abortIf( - $this->connection->getDatabasePlatform()->getName() !== 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); $this->addSql('ALTER TABLE institution_configuration_options DROP self_asserted_tokens_option'); diff --git a/src/Surfnet/Migrations/Version20221102143350.php b/src/Surfnet/Migrations/Version20221102143350.php index 5da598094..9b42f7b1c 100644 --- a/src/Surfnet/Migrations/Version20221102143350.php +++ b/src/Surfnet/Migrations/Version20221102143350.php @@ -32,7 +32,7 @@ final class Version20221102143350 extends AbstractMigration implements Configura public function up(Schema $schema): void { $this->abortIf( - $this->connection->getDatabasePlatform()->getName() !== 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); // Create the new sso_on_2fa option, note the name conversion 'error' made by doctrine. @@ -50,7 +50,7 @@ public function up(Schema $schema): void public function down(Schema $schema): void { $this->abortIf( - $this->connection->getDatabasePlatform()->getName() !== 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); // Down the Middleware schema change diff --git a/src/Surfnet/Migrations/Version20250501121457.php b/src/Surfnet/Migrations/Version20250501121457.php index 084ca5507..297f6c705 100644 --- a/src/Surfnet/Migrations/Version20250501121457.php +++ b/src/Surfnet/Migrations/Version20250501121457.php @@ -32,7 +32,7 @@ final class Version20250501121457 extends AbstractMigration implements Configura public function up(Schema $schema): void { $this->abortIf( - $this->connection->getDatabasePlatform()->getName() !== 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); // Create the new sso_on_2fa option, note the name conversion 'error' made by doctrine. @@ -55,7 +55,7 @@ public function up(Schema $schema): void public function down(Schema $schema): void { $this->abortIf( - $this->connection->getDatabasePlatform()->getName() !== 'mysql', + !($this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQLPlatform || $this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MariaDBPlatform), 'Migration can only be executed safely on \'mysql\'.', ); // Down the Middleware schema change diff --git a/src/Surfnet/StepupMiddleware/ApiBundle/Doctrine/Type/AuthorityRoleType.php b/src/Surfnet/StepupMiddleware/ApiBundle/Doctrine/Type/AuthorityRoleType.php index fddea069c..3c094d63d 100644 --- a/src/Surfnet/StepupMiddleware/ApiBundle/Doctrine/Type/AuthorityRoleType.php +++ b/src/Surfnet/StepupMiddleware/ApiBundle/Doctrine/Type/AuthorityRoleType.php @@ -19,7 +19,7 @@ namespace Surfnet\StepupMiddleware\ApiBundle\Doctrine\Type; use Doctrine\DBAL\Platforms\AbstractPlatform; -use Doctrine\DBAL\Types\ConversionException; +use Doctrine\DBAL\Types\Exception\ValueNotConvertible; use Doctrine\DBAL\Types\Type; use Surfnet\StepupMiddleware\ApiBundle\Exception\InvalidArgumentException; use Surfnet\StepupMiddleware\ApiBundle\Identity\Value\AuthorityRole; @@ -40,7 +40,7 @@ public function getSQLDeclaration(array $column, AbstractPlatform $platform): st return $platform->getStringTypeDeclarationSQL($column); } - public function convertToDatabaseValue($value, AbstractPlatform $platform): ?string + public function convertToDatabaseValue(mixed $value, AbstractPlatform $platform): ?string { if (is_null($value)) { return null; @@ -49,7 +49,7 @@ public function convertToDatabaseValue($value, AbstractPlatform $platform): ?str return (string)$value; } - public function convertToPHPValue($value, AbstractPlatform $platform): ?AuthorityRole + public function convertToPHPValue(mixed $value, AbstractPlatform $platform): ?AuthorityRole { if (is_null($value)) { return null; @@ -58,13 +58,12 @@ public function convertToPHPValue($value, AbstractPlatform $platform): ?Authorit try { $authorityRole = new AuthorityRole($value); } catch (InvalidArgumentException $e) { - // get nice standard message, so we can throw it keeping the exception chain - $doctrineExceptionMessage = ConversionException::conversionFailed( + throw ValueNotConvertible::new( $value, $this->getName(), - )->getMessage(); - - throw new ConversionException($doctrineExceptionMessage, 0, $e); + $e->getMessage(), + $e, + ); } return $authorityRole; diff --git a/src/Surfnet/StepupMiddleware/ApiBundle/Doctrine/Type/CommonNameType.php b/src/Surfnet/StepupMiddleware/ApiBundle/Doctrine/Type/CommonNameType.php index 6bf74734b..8dee1d067 100644 --- a/src/Surfnet/StepupMiddleware/ApiBundle/Doctrine/Type/CommonNameType.php +++ b/src/Surfnet/StepupMiddleware/ApiBundle/Doctrine/Type/CommonNameType.php @@ -19,7 +19,7 @@ namespace Surfnet\StepupMiddleware\ApiBundle\Doctrine\Type; use Doctrine\DBAL\Platforms\AbstractPlatform; -use Doctrine\DBAL\Types\ConversionException; +use Doctrine\DBAL\Types\Exception\ValueNotConvertible; use Doctrine\DBAL\Types\Type; use Surfnet\Stepup\Exception\InvalidArgumentException; use Surfnet\Stepup\Identity\Value\CommonName; @@ -41,7 +41,7 @@ public function getSQLDeclaration(array $column, AbstractPlatform $platform): st return $platform->getStringTypeDeclarationSQL($column); } - public function convertToDatabaseValue($value, AbstractPlatform $platform): ?string + public function convertToDatabaseValue(mixed $value, AbstractPlatform $platform): ?string { if (is_null($value)) { return null; @@ -50,7 +50,7 @@ public function convertToDatabaseValue($value, AbstractPlatform $platform): ?str return (string)$value; } - public function convertToPHPValue($value, AbstractPlatform $platform): ?CommonName + public function convertToPHPValue(mixed $value, AbstractPlatform $platform): ?CommonName { if (is_null($value)) { return null; @@ -59,13 +59,12 @@ public function convertToPHPValue($value, AbstractPlatform $platform): ?CommonNa try { $commonName = new CommonName($value); } catch (InvalidArgumentException|TypeError $e) { - // get nice standard message, so we can throw it keeping the exception chain - $doctrineExceptionMessage = ConversionException::conversionFailed( + throw ValueNotConvertible::new( $value, $this->getName(), - )->getMessage(); - - throw new ConversionException($doctrineExceptionMessage, 0, $e); + $e->getMessage(), + $e, + ); } return $commonName; diff --git a/src/Surfnet/StepupMiddleware/ApiBundle/Doctrine/Type/ConfigurationContactInformationType.php b/src/Surfnet/StepupMiddleware/ApiBundle/Doctrine/Type/ConfigurationContactInformationType.php index a02e1f8e6..a82a56ec9 100644 --- a/src/Surfnet/StepupMiddleware/ApiBundle/Doctrine/Type/ConfigurationContactInformationType.php +++ b/src/Surfnet/StepupMiddleware/ApiBundle/Doctrine/Type/ConfigurationContactInformationType.php @@ -22,6 +22,7 @@ use Doctrine\DBAL\Platforms\AbstractPlatform; use Doctrine\DBAL\Types\ConversionException; +use Doctrine\DBAL\Types\Exception\ValueNotConvertible; use Doctrine\DBAL\Types\Type; use Surfnet\Stepup\Configuration\Value\ContactInformation; use Surfnet\Stepup\Exception\InvalidArgumentException; @@ -39,7 +40,7 @@ public function getSQLDeclaration(array $column, AbstractPlatform $platform): st return $platform->getClobTypeDeclarationSQL($column); } - public function convertToDatabaseValue($value, AbstractPlatform $platform): mixed + public function convertToDatabaseValue(mixed $value, AbstractPlatform $platform): mixed { if (is_null($value)) { return null; @@ -58,7 +59,7 @@ public function convertToDatabaseValue($value, AbstractPlatform $platform): mixe return $value->getContactInformation(); } - public function convertToPHPValue($value, AbstractPlatform $platform): ?ContactInformation + public function convertToPHPValue(mixed $value, AbstractPlatform $platform): ?ContactInformation { if (is_null($value)) { return null; @@ -67,13 +68,12 @@ public function convertToPHPValue($value, AbstractPlatform $platform): ?ContactI try { $contactInformation = new ContactInformation($value); } catch (InvalidArgumentException|TypeError $e) { - // get nice standard message, so we can throw it keeping the exception chain - $doctrineExceptionMessage = ConversionException::conversionFailed( + throw ValueNotConvertible::new( $value, $this->getName(), - )->getMessage(); - - throw new ConversionException($doctrineExceptionMessage, 0, $e); + $e->getMessage(), + $e, + ); } return $contactInformation; diff --git a/src/Surfnet/StepupMiddleware/ApiBundle/Doctrine/Type/ConfigurationInstitutionType.php b/src/Surfnet/StepupMiddleware/ApiBundle/Doctrine/Type/ConfigurationInstitutionType.php index 8b2c1eec1..368c09e04 100644 --- a/src/Surfnet/StepupMiddleware/ApiBundle/Doctrine/Type/ConfigurationInstitutionType.php +++ b/src/Surfnet/StepupMiddleware/ApiBundle/Doctrine/Type/ConfigurationInstitutionType.php @@ -20,6 +20,7 @@ use Doctrine\DBAL\Platforms\AbstractPlatform; use Doctrine\DBAL\Types\ConversionException; +use Doctrine\DBAL\Types\Exception\ValueNotConvertible; use Doctrine\DBAL\Types\Type; use Surfnet\Stepup\Configuration\Value\Institution; use Surfnet\Stepup\Exception\InvalidArgumentException; @@ -40,7 +41,7 @@ public function getSQLDeclaration(array $column, AbstractPlatform $platform): st return $platform->getStringTypeDeclarationSQL($column); } - public function convertToDatabaseValue($value, AbstractPlatform $platform): mixed + public function convertToDatabaseValue(mixed $value, AbstractPlatform $platform): mixed { if (is_null($value)) { return null; @@ -59,7 +60,7 @@ public function convertToDatabaseValue($value, AbstractPlatform $platform): mixe return $value->getInstitution(); } - public function convertToPHPValue($value, AbstractPlatform $platform): ?Institution + public function convertToPHPValue(mixed $value, AbstractPlatform $platform): ?Institution { if (is_null($value)) { return null; @@ -68,13 +69,12 @@ public function convertToPHPValue($value, AbstractPlatform $platform): ?Institut try { $institution = new Institution($value); } catch (InvalidArgumentException $e) { - // get nice standard message, so we can throw it keeping the exception chain - $doctrineExceptionMessage = ConversionException::conversionFailed( + throw ValueNotConvertible::new( $value, $this->getName(), - )->getMessage(); - - throw new ConversionException($doctrineExceptionMessage, 0, $e); + $e->getMessage(), + $e, + ); } return $institution; diff --git a/src/Surfnet/StepupMiddleware/ApiBundle/Doctrine/Type/ConfigurationLocationType.php b/src/Surfnet/StepupMiddleware/ApiBundle/Doctrine/Type/ConfigurationLocationType.php index f3bf9b354..6c51ff0ae 100644 --- a/src/Surfnet/StepupMiddleware/ApiBundle/Doctrine/Type/ConfigurationLocationType.php +++ b/src/Surfnet/StepupMiddleware/ApiBundle/Doctrine/Type/ConfigurationLocationType.php @@ -22,6 +22,7 @@ use Doctrine\DBAL\Platforms\AbstractPlatform; use Doctrine\DBAL\Types\ConversionException; +use Doctrine\DBAL\Types\Exception\ValueNotConvertible; use Doctrine\DBAL\Types\Type; use Surfnet\Stepup\Configuration\Value\Location; use Surfnet\Stepup\Exception\InvalidArgumentException; @@ -39,7 +40,7 @@ public function getSQLDeclaration(array $column, AbstractPlatform $platform): st return $platform->getClobTypeDeclarationSQL($column); } - public function convertToDatabaseValue($value, AbstractPlatform $platform): mixed + public function convertToDatabaseValue(mixed $value, AbstractPlatform $platform): mixed { if (is_null($value)) { return null; @@ -58,7 +59,7 @@ public function convertToDatabaseValue($value, AbstractPlatform $platform): mixe return $value->getLocation(); } - public function convertToPHPValue($value, AbstractPlatform $platform): ?Location + public function convertToPHPValue(mixed $value, AbstractPlatform $platform): ?Location { if (is_null($value)) { return null; @@ -67,13 +68,12 @@ public function convertToPHPValue($value, AbstractPlatform $platform): ?Location try { $location = new Location($value); } catch (InvalidArgumentException|TypeError $e) { - // get nice standard message, so we can throw it keeping the exception chain - $doctrineExceptionMessage = ConversionException::conversionFailed( + throw ValueNotConvertible::new( $value, $this->getName(), - )->getMessage(); - - throw new ConversionException($doctrineExceptionMessage, 0, $e); + $e->getMessage(), + $e, + ); } return $location; diff --git a/src/Surfnet/StepupMiddleware/ApiBundle/Doctrine/Type/ContactInformationType.php b/src/Surfnet/StepupMiddleware/ApiBundle/Doctrine/Type/ContactInformationType.php index f9cd551bf..d3f20c53f 100644 --- a/src/Surfnet/StepupMiddleware/ApiBundle/Doctrine/Type/ContactInformationType.php +++ b/src/Surfnet/StepupMiddleware/ApiBundle/Doctrine/Type/ContactInformationType.php @@ -21,7 +21,7 @@ namespace Surfnet\StepupMiddleware\ApiBundle\Doctrine\Type; use Doctrine\DBAL\Platforms\AbstractPlatform; -use Doctrine\DBAL\Types\ConversionException; +use Doctrine\DBAL\Types\Exception\ValueNotConvertible; use Doctrine\DBAL\Types\Type; use Surfnet\Stepup\Exception\InvalidArgumentException; use Surfnet\Stepup\Identity\Value\ContactInformation; @@ -39,7 +39,7 @@ public function getSQLDeclaration(array $column, AbstractPlatform $platform): st return $platform->getClobTypeDeclarationSQL($column); } - public function convertToDatabaseValue($value, AbstractPlatform $platform): mixed + public function convertToDatabaseValue(mixed $value, AbstractPlatform $platform): mixed { if (is_null($value)) { return null; @@ -48,7 +48,7 @@ public function convertToDatabaseValue($value, AbstractPlatform $platform): mixe return (string)$value; } - public function convertToPHPValue($value, AbstractPlatform $platform): ?ContactInformation + public function convertToPHPValue(mixed $value, AbstractPlatform $platform): ?ContactInformation { if (is_null($value)) { return null; @@ -57,13 +57,12 @@ public function convertToPHPValue($value, AbstractPlatform $platform): ?ContactI try { $contactInformation = new ContactInformation($value); } catch (InvalidArgumentException|TypeError $e) { - // get nice standard message, so we can throw it keeping the exception chain - $doctrineExceptionMessage = ConversionException::conversionFailed( + throw ValueNotConvertible::new( $value, $this->getName(), - )->getMessage(); - - throw new ConversionException($doctrineExceptionMessage, 0, $e); + $e->getMessage(), + $e, + ); } return $contactInformation; diff --git a/src/Surfnet/StepupMiddleware/ApiBundle/Doctrine/Type/DateTimeType.php b/src/Surfnet/StepupMiddleware/ApiBundle/Doctrine/Type/DateTimeType.php index 4d3704ddd..36a0a5b9b 100644 --- a/src/Surfnet/StepupMiddleware/ApiBundle/Doctrine/Type/DateTimeType.php +++ b/src/Surfnet/StepupMiddleware/ApiBundle/Doctrine/Type/DateTimeType.php @@ -22,6 +22,7 @@ use DateTimeZone; use Doctrine\DBAL\Platforms\AbstractPlatform; use Doctrine\DBAL\Types\ConversionException; +use Doctrine\DBAL\Types\Exception\InvalidFormat; use Doctrine\DBAL\Types\Type; use Surfnet\Stepup\DateTime\DateTime; @@ -63,6 +64,14 @@ public function convertToPHPValue(mixed $value, AbstractPlatform $platform): ?Da return null; } + if (!is_string($value)) { + throw InvalidFormat::new( + is_scalar($value) ? (string)$value : get_debug_type($value), + $this->getName(), + $platform->getDateTimeFormatString(), + ); + } + $dateTime = CoreDateTime::createFromFormat( $platform->getDateTimeFormatString(), $value, @@ -70,7 +79,7 @@ public function convertToPHPValue(mixed $value, AbstractPlatform $platform): ?Da ); if (!$dateTime) { - throw ConversionException::conversionFailedFormat( + throw InvalidFormat::new( $value, $this->getName(), $platform->getDateTimeFormatString(), diff --git a/src/Surfnet/StepupMiddleware/ApiBundle/Doctrine/Type/DocumentNumberType.php b/src/Surfnet/StepupMiddleware/ApiBundle/Doctrine/Type/DocumentNumberType.php index 3951ecdc7..41c189529 100644 --- a/src/Surfnet/StepupMiddleware/ApiBundle/Doctrine/Type/DocumentNumberType.php +++ b/src/Surfnet/StepupMiddleware/ApiBundle/Doctrine/Type/DocumentNumberType.php @@ -45,7 +45,7 @@ public function getSQLDeclaration(array $column, AbstractPlatform $platform): st /** * @throws ConversionException */ - public function convertToDatabaseValue($value, AbstractPlatform $platform): ?string + public function convertToDatabaseValue(mixed $value, AbstractPlatform $platform): ?string { if (is_null($value)) { return null; diff --git a/src/Surfnet/StepupMiddleware/ApiBundle/Doctrine/Type/EmailType.php b/src/Surfnet/StepupMiddleware/ApiBundle/Doctrine/Type/EmailType.php index 7e0694271..3c5fbd936 100644 --- a/src/Surfnet/StepupMiddleware/ApiBundle/Doctrine/Type/EmailType.php +++ b/src/Surfnet/StepupMiddleware/ApiBundle/Doctrine/Type/EmailType.php @@ -19,7 +19,7 @@ namespace Surfnet\StepupMiddleware\ApiBundle\Doctrine\Type; use Doctrine\DBAL\Platforms\AbstractPlatform; -use Doctrine\DBAL\Types\ConversionException; +use Doctrine\DBAL\Types\Exception\ValueNotConvertible; use Doctrine\DBAL\Types\Type; use Surfnet\Stepup\Exception\InvalidArgumentException; use Surfnet\Stepup\Identity\Value\Email; @@ -40,7 +40,7 @@ public function getSQLDeclaration(array $column, AbstractPlatform $platform): st return $platform->getStringTypeDeclarationSQL($column); } - public function convertToDatabaseValue($value, AbstractPlatform $platform): ?string + public function convertToDatabaseValue(mixed $value, AbstractPlatform $platform): ?string { if (is_null($value)) { return null; @@ -49,7 +49,7 @@ public function convertToDatabaseValue($value, AbstractPlatform $platform): ?str return (string)$value; } - public function convertToPHPValue($value, AbstractPlatform $platform): ?Email + public function convertToPHPValue(mixed $value, AbstractPlatform $platform): ?Email { if (is_null($value)) { return null; @@ -58,13 +58,12 @@ public function convertToPHPValue($value, AbstractPlatform $platform): ?Email try { $email = new Email($value); } catch (InvalidArgumentException $e) { - // get nice standard message, so we can throw it keeping the exception chain - $doctrineExceptionMessage = ConversionException::conversionFailed( + throw ValueNotConvertible::new( $value, $this->getName(), - )->getMessage(); - - throw new ConversionException($doctrineExceptionMessage, 0, $e); + $e->getMessage(), + $e, + ); } return $email; diff --git a/src/Surfnet/StepupMiddleware/ApiBundle/Doctrine/Type/InstitutionRoleType.php b/src/Surfnet/StepupMiddleware/ApiBundle/Doctrine/Type/InstitutionRoleType.php index fa5097dda..5e11ed5b9 100644 --- a/src/Surfnet/StepupMiddleware/ApiBundle/Doctrine/Type/InstitutionRoleType.php +++ b/src/Surfnet/StepupMiddleware/ApiBundle/Doctrine/Type/InstitutionRoleType.php @@ -20,6 +20,7 @@ use Doctrine\DBAL\Platforms\AbstractPlatform; use Doctrine\DBAL\Types\ConversionException; +use Doctrine\DBAL\Types\Exception\ValueNotConvertible; use Doctrine\DBAL\Types\Type; use Surfnet\Stepup\Configuration\Value\InstitutionRole; use Surfnet\Stepup\Exception\InvalidArgumentException; @@ -40,7 +41,7 @@ public function getSQLDeclaration(array $column, AbstractPlatform $platform): st return $platform->getStringTypeDeclarationSQL($column); } - public function convertToDatabaseValue($value, AbstractPlatform $platform): mixed + public function convertToDatabaseValue(mixed $value, AbstractPlatform $platform): mixed { if (is_null($value)) { return null; @@ -59,7 +60,7 @@ public function convertToDatabaseValue($value, AbstractPlatform $platform): mixe return $value->getType(); } - public function convertToPHPValue($value, AbstractPlatform $platform): ?InstitutionRole + public function convertToPHPValue(mixed $value, AbstractPlatform $platform): ?InstitutionRole { if (is_null($value)) { return null; @@ -68,13 +69,12 @@ public function convertToPHPValue($value, AbstractPlatform $platform): ?Institut try { $institutionRole = new InstitutionRole($value); } catch (InvalidArgumentException $e) { - // get nice standard message, so we can throw it keeping the exception chain - $doctrineExceptionMessage = ConversionException::conversionFailed( + throw ValueNotConvertible::new( $value, $this->getName(), - )->getMessage(); - - throw new ConversionException($doctrineExceptionMessage, 0, $e); + $e->getMessage(), + $e, + ); } return $institutionRole; diff --git a/src/Surfnet/StepupMiddleware/ApiBundle/Doctrine/Type/InstitutionType.php b/src/Surfnet/StepupMiddleware/ApiBundle/Doctrine/Type/InstitutionType.php index d478b6d81..dae422a43 100644 --- a/src/Surfnet/StepupMiddleware/ApiBundle/Doctrine/Type/InstitutionType.php +++ b/src/Surfnet/StepupMiddleware/ApiBundle/Doctrine/Type/InstitutionType.php @@ -19,7 +19,7 @@ namespace Surfnet\StepupMiddleware\ApiBundle\Doctrine\Type; use Doctrine\DBAL\Platforms\AbstractPlatform; -use Doctrine\DBAL\Types\ConversionException; +use Doctrine\DBAL\Types\Exception\ValueNotConvertible; use Doctrine\DBAL\Types\Type; use Surfnet\Stepup\Exception\InvalidArgumentException; use Surfnet\Stepup\Identity\Value\Institution; @@ -40,7 +40,7 @@ public function getSQLDeclaration(array $column, AbstractPlatform $platform): st return $platform->getStringTypeDeclarationSQL($column); } - public function convertToDatabaseValue($value, AbstractPlatform $platform): ?string + public function convertToDatabaseValue(mixed $value, AbstractPlatform $platform): ?string { if (is_null($value)) { return null; @@ -49,7 +49,7 @@ public function convertToDatabaseValue($value, AbstractPlatform $platform): ?str return (string)$value; } - public function convertToPHPValue($value, AbstractPlatform $platform): ?Institution + public function convertToPHPValue(mixed $value, AbstractPlatform $platform): ?Institution { if (is_null($value)) { return null; @@ -58,13 +58,12 @@ public function convertToPHPValue($value, AbstractPlatform $platform): ?Institut try { $institution = new Institution($value); } catch (InvalidArgumentException $e) { - // get nice standard message, so we can throw it keeping the exception chain - $doctrineExceptionMessage = ConversionException::conversionFailed( + throw ValueNotConvertible::new( $value, $this->getName(), - )->getMessage(); - - throw new ConversionException($doctrineExceptionMessage, 0, $e); + $e->getMessage(), + $e, + ); } return $institution; diff --git a/src/Surfnet/StepupMiddleware/ApiBundle/Doctrine/Type/LocaleType.php b/src/Surfnet/StepupMiddleware/ApiBundle/Doctrine/Type/LocaleType.php index 102c6d633..21f20b2dc 100644 --- a/src/Surfnet/StepupMiddleware/ApiBundle/Doctrine/Type/LocaleType.php +++ b/src/Surfnet/StepupMiddleware/ApiBundle/Doctrine/Type/LocaleType.php @@ -21,7 +21,7 @@ namespace Surfnet\StepupMiddleware\ApiBundle\Doctrine\Type; use Doctrine\DBAL\Platforms\AbstractPlatform; -use Doctrine\DBAL\Types\ConversionException; +use Doctrine\DBAL\Types\Exception\ValueNotConvertible; use Doctrine\DBAL\Types\Type; use Surfnet\Stepup\Exception\InvalidArgumentException; use Surfnet\Stepup\Identity\Value\Locale; @@ -43,7 +43,7 @@ public function getSQLDeclaration(array $column, AbstractPlatform $platform): st return $platform->getStringTypeDeclarationSQL($column); } - public function convertToDatabaseValue($value, AbstractPlatform $platform): ?string + public function convertToDatabaseValue(mixed $value, AbstractPlatform $platform): ?string { if (is_null($value)) { return null; @@ -52,7 +52,7 @@ public function convertToDatabaseValue($value, AbstractPlatform $platform): ?str return (string)$value; } - public function convertToPHPValue($value, AbstractPlatform $platform): ?Locale + public function convertToPHPValue(mixed $value, AbstractPlatform $platform): ?Locale { if (is_null($value)) { return null; @@ -61,13 +61,12 @@ public function convertToPHPValue($value, AbstractPlatform $platform): ?Locale try { $locale = new Locale($value); } catch (InvalidArgumentException|TypeError $e) { - // get nice standard message, so we can throw it keeping the exception chain - $doctrineExceptionMessage = ConversionException::conversionFailed( + throw ValueNotConvertible::new( $value, $this->getName(), - )->getMessage(); - - throw new ConversionException($doctrineExceptionMessage, 0, $e); + $e->getMessage(), + $e, + ); } return $locale; diff --git a/src/Surfnet/StepupMiddleware/ApiBundle/Doctrine/Type/LocationType.php b/src/Surfnet/StepupMiddleware/ApiBundle/Doctrine/Type/LocationType.php index d017a9eb4..0d20cdc8c 100644 --- a/src/Surfnet/StepupMiddleware/ApiBundle/Doctrine/Type/LocationType.php +++ b/src/Surfnet/StepupMiddleware/ApiBundle/Doctrine/Type/LocationType.php @@ -21,7 +21,7 @@ namespace Surfnet\StepupMiddleware\ApiBundle\Doctrine\Type; use Doctrine\DBAL\Platforms\AbstractPlatform; -use Doctrine\DBAL\Types\ConversionException; +use Doctrine\DBAL\Types\Exception\ValueNotConvertible; use Doctrine\DBAL\Types\Type; use Surfnet\Stepup\Exception\InvalidArgumentException; use Surfnet\Stepup\Identity\Value\Location; @@ -39,7 +39,7 @@ public function getSQLDeclaration(array $column, AbstractPlatform $platform): st return $platform->getClobTypeDeclarationSQL($column); } - public function convertToDatabaseValue($value, AbstractPlatform $platform): ?string + public function convertToDatabaseValue(mixed $value, AbstractPlatform $platform): ?string { if (is_null($value)) { return null; @@ -48,7 +48,7 @@ public function convertToDatabaseValue($value, AbstractPlatform $platform): ?str return (string)$value; } - public function convertToPHPValue($value, AbstractPlatform $platform): ?Location + public function convertToPHPValue(mixed $value, AbstractPlatform $platform): ?Location { if (is_null($value)) { return null; @@ -57,13 +57,12 @@ public function convertToPHPValue($value, AbstractPlatform $platform): ?Location try { $location = new Location($value); } catch (InvalidArgumentException|TypeError $e) { - // get nice standard message, so we can throw it keeping the exception chain - $doctrineExceptionMessage = ConversionException::conversionFailed( + throw ValueNotConvertible::new( $value, $this->getName(), - )->getMessage(); - - throw new ConversionException($doctrineExceptionMessage, 0, $e); + $e->getMessage(), + $e, + ); } return $location; diff --git a/src/Surfnet/StepupMiddleware/ApiBundle/Doctrine/Type/NameIdType.php b/src/Surfnet/StepupMiddleware/ApiBundle/Doctrine/Type/NameIdType.php index ce336e722..047ea7658 100644 --- a/src/Surfnet/StepupMiddleware/ApiBundle/Doctrine/Type/NameIdType.php +++ b/src/Surfnet/StepupMiddleware/ApiBundle/Doctrine/Type/NameIdType.php @@ -19,7 +19,7 @@ namespace Surfnet\StepupMiddleware\ApiBundle\Doctrine\Type; use Doctrine\DBAL\Platforms\AbstractPlatform; -use Doctrine\DBAL\Types\ConversionException; +use Doctrine\DBAL\Types\Exception\ValueNotConvertible; use Doctrine\DBAL\Types\Type; use Surfnet\Stepup\Exception\InvalidArgumentException; use Surfnet\Stepup\Identity\Value\NameId; @@ -40,7 +40,7 @@ public function getSQLDeclaration(array $column, AbstractPlatform $platform): st return $platform->getStringTypeDeclarationSQL($column); } - public function convertToDatabaseValue($value, AbstractPlatform $platform): ?string + public function convertToDatabaseValue(mixed $value, AbstractPlatform $platform): ?string { if (is_null($value)) { return null; @@ -49,7 +49,7 @@ public function convertToDatabaseValue($value, AbstractPlatform $platform): ?str return (string)$value; } - public function convertToPHPValue($value, AbstractPlatform $platform): ?NameId + public function convertToPHPValue(mixed $value, AbstractPlatform $platform): ?NameId { if (is_null($value)) { return null; @@ -58,13 +58,12 @@ public function convertToPHPValue($value, AbstractPlatform $platform): ?NameId try { $nameId = new NameId($value); } catch (InvalidArgumentException $e) { - // get nice standard message, so we can throw it keeping the exception chain - $doctrineExceptionMessage = ConversionException::conversionFailed( + throw ValueNotConvertible::new( $value, $this->getName(), - )->getMessage(); - - throw new ConversionException($doctrineExceptionMessage, 0, $e); + $e->getMessage(), + $e, + ); } return $nameId; diff --git a/src/Surfnet/StepupMiddleware/ApiBundle/Doctrine/Type/NumberOfTokensPerIdentityType.php b/src/Surfnet/StepupMiddleware/ApiBundle/Doctrine/Type/NumberOfTokensPerIdentityType.php index 14054c83c..0e0cde0b5 100644 --- a/src/Surfnet/StepupMiddleware/ApiBundle/Doctrine/Type/NumberOfTokensPerIdentityType.php +++ b/src/Surfnet/StepupMiddleware/ApiBundle/Doctrine/Type/NumberOfTokensPerIdentityType.php @@ -18,16 +18,18 @@ namespace Surfnet\StepupMiddleware\ApiBundle\Doctrine\Type; +use Doctrine\DBAL\ParameterType; use Doctrine\DBAL\Platforms\AbstractPlatform; use Doctrine\DBAL\Types\ConversionException; -use Doctrine\DBAL\Types\IntegerType; +use Doctrine\DBAL\Types\Exception\ValueNotConvertible; +use Doctrine\DBAL\Types\Type; use Surfnet\Stepup\Configuration\Value\NumberOfTokensPerIdentityOption; use Surfnet\Stepup\Exception\InvalidArgumentException; /** * Custom Type for the NumberOfTokensPerIdentityOption Value Object */ -class NumberOfTokensPerIdentityType extends IntegerType +class NumberOfTokensPerIdentityType extends Type { public const NAME = 'stepup_number_of_tokens_per_identity_option'; @@ -36,7 +38,7 @@ public function getSQLDeclaration(array $column, AbstractPlatform $platform): st return $platform->getIntegerTypeDeclarationSQL($column); } - public function convertToDatabaseValue($value, AbstractPlatform $platform): mixed + public function convertToDatabaseValue(mixed $value, AbstractPlatform $platform): mixed { if (is_null($value)) { return null; @@ -56,22 +58,25 @@ public function convertToDatabaseValue($value, AbstractPlatform $platform): mixe return $value->getNumberOfTokensPerIdentity(); } - public function convertToPHPValue($value, AbstractPlatform $platform): ?NumberOfTokensPerIdentityOption + public function convertToPHPValue(mixed $value, AbstractPlatform $platform): ?NumberOfTokensPerIdentityOption { if (is_null($value)) { return null; } + if (!is_scalar($value)) { + throw ValueNotConvertible::new($value, $this->getName()); + } + try { $numberOfTokensPerIdentityOption = new NumberOfTokensPerIdentityOption((int)$value); } catch (InvalidArgumentException $e) { - // get nice standard message, so we can throw it keeping the exception chain - $doctrineExceptionMessage = ConversionException::conversionFailed( + throw ValueNotConvertible::new( $value, $this->getName(), - )->getMessage(); - - throw new ConversionException($doctrineExceptionMessage, 0, $e); + $e->getMessage(), + $e, + ); } return $numberOfTokensPerIdentityOption; @@ -86,4 +91,9 @@ public function requiresSQLCommentHint(AbstractPlatform $platform): bool { return false; } + + public function getBindingType(): ParameterType + { + return ParameterType::INTEGER; + } } diff --git a/src/Surfnet/StepupMiddleware/ApiBundle/Doctrine/Type/RaLocationNameType.php b/src/Surfnet/StepupMiddleware/ApiBundle/Doctrine/Type/RaLocationNameType.php index 0eada5984..e6ff1fdf1 100644 --- a/src/Surfnet/StepupMiddleware/ApiBundle/Doctrine/Type/RaLocationNameType.php +++ b/src/Surfnet/StepupMiddleware/ApiBundle/Doctrine/Type/RaLocationNameType.php @@ -20,6 +20,7 @@ use Doctrine\DBAL\Platforms\AbstractPlatform; use Doctrine\DBAL\Types\ConversionException; +use Doctrine\DBAL\Types\Exception\ValueNotConvertible; use Doctrine\DBAL\Types\Type; use Surfnet\Stepup\Configuration\Value\RaLocationName; use Surfnet\Stepup\Exception\InvalidArgumentException; @@ -39,7 +40,7 @@ public function getSQLDeclaration(array $column, AbstractPlatform $platform): st return $platform->getStringTypeDeclarationSQL($clearColumn); } - public function convertToDatabaseValue($value, AbstractPlatform $platform): mixed + public function convertToDatabaseValue(mixed $value, AbstractPlatform $platform): mixed { if (is_null($value)) { return null; @@ -58,7 +59,7 @@ public function convertToDatabaseValue($value, AbstractPlatform $platform): mixe return $value->getRaLocationName(); } - public function convertToPHPValue($value, AbstractPlatform $platform): ?RaLocationName + public function convertToPHPValue(mixed $value, AbstractPlatform $platform): ?RaLocationName { if (is_null($value)) { return null; @@ -67,13 +68,12 @@ public function convertToPHPValue($value, AbstractPlatform $platform): ?RaLocati try { $raLocationName = new RaLocationName($value); } catch (InvalidArgumentException $e) { - // get nice standard message, so we can throw it keeping the exception chain - $doctrineExceptionMessage = ConversionException::conversionFailed( + throw ValueNotConvertible::new( $value, $this->getName(), - )->getMessage(); - - throw new ConversionException($doctrineExceptionMessage, 0, $e); + $e->getMessage(), + $e, + ); } return $raLocationName; diff --git a/src/Surfnet/StepupMiddleware/ApiBundle/Doctrine/Type/SecondFactorTypeType.php b/src/Surfnet/StepupMiddleware/ApiBundle/Doctrine/Type/SecondFactorTypeType.php index 44219eea7..136a5b1d2 100644 --- a/src/Surfnet/StepupMiddleware/ApiBundle/Doctrine/Type/SecondFactorTypeType.php +++ b/src/Surfnet/StepupMiddleware/ApiBundle/Doctrine/Type/SecondFactorTypeType.php @@ -19,7 +19,7 @@ namespace Surfnet\StepupMiddleware\ApiBundle\Doctrine\Type; use Doctrine\DBAL\Platforms\AbstractPlatform; -use Doctrine\DBAL\Types\ConversionException; +use Doctrine\DBAL\Types\Exception\ValueNotConvertible; use Doctrine\DBAL\Types\Type; use Surfnet\Stepup\Exception\InvalidArgumentException; use Surfnet\StepupBundle\Value\SecondFactorType; @@ -40,7 +40,7 @@ public function getSQLDeclaration(array $column, AbstractPlatform $platform): st return $platform->getStringTypeDeclarationSQL($column); } - public function convertToDatabaseValue($value, AbstractPlatform $platform): ?string + public function convertToDatabaseValue(mixed $value, AbstractPlatform $platform): ?string { if (is_null($value)) { return null; @@ -49,7 +49,7 @@ public function convertToDatabaseValue($value, AbstractPlatform $platform): ?str return (string)$value; } - public function convertToPHPValue($value, AbstractPlatform $platform): ?SecondFactorType + public function convertToPHPValue(mixed $value, AbstractPlatform $platform): ?SecondFactorType { if (is_null($value)) { return null; @@ -58,13 +58,12 @@ public function convertToPHPValue($value, AbstractPlatform $platform): ?SecondFa try { $secondFactorType = new SecondFactorType($value); } catch (InvalidArgumentException $e) { - // get nice standard message, so we can throw it keeping the exception chain - $doctrineExceptionMessage = ConversionException::conversionFailed( + throw ValueNotConvertible::new( $value, $this->getName(), - )->getMessage(); - - throw new ConversionException($doctrineExceptionMessage, 0, $e); + $e->getMessage(), + $e, + ); } return $secondFactorType; diff --git a/src/Surfnet/StepupMiddleware/ApiBundle/Doctrine/Type/SelfAssertedTokensOptionType.php b/src/Surfnet/StepupMiddleware/ApiBundle/Doctrine/Type/SelfAssertedTokensOptionType.php index 4dc2fb43d..4f4cc2dba 100644 --- a/src/Surfnet/StepupMiddleware/ApiBundle/Doctrine/Type/SelfAssertedTokensOptionType.php +++ b/src/Surfnet/StepupMiddleware/ApiBundle/Doctrine/Type/SelfAssertedTokensOptionType.php @@ -18,16 +18,18 @@ namespace Surfnet\StepupMiddleware\ApiBundle\Doctrine\Type; +use Doctrine\DBAL\ParameterType; use Doctrine\DBAL\Platforms\AbstractPlatform; use Doctrine\DBAL\Types\ConversionException; -use Doctrine\DBAL\Types\IntegerType; +use Doctrine\DBAL\Types\Exception\ValueNotConvertible; +use Doctrine\DBAL\Types\Type; use Surfnet\Stepup\Configuration\Value\SelfAssertedTokensOption; use TypeError; /** * Custom Type for the SelfAssertedTokens options Value Object */ -class SelfAssertedTokensOptionType extends IntegerType +class SelfAssertedTokensOptionType extends Type { public const NAME = 'stepup_self_asserted_tokens_option'; @@ -56,7 +58,7 @@ public function convertToDatabaseValue(mixed $value, AbstractPlatform $platform) return (int)$value->isEnabled(); } - public function convertToPHPValue($value, AbstractPlatform $platform): ?SelfAssertedTokensOption + public function convertToPHPValue(mixed $value, AbstractPlatform $platform): ?SelfAssertedTokensOption { if (is_null($value)) { return null; @@ -65,13 +67,12 @@ public function convertToPHPValue($value, AbstractPlatform $platform): ?SelfAsse try { $selfAssertedTokensOption = new SelfAssertedTokensOption((bool)$value); } catch (TypeError $e) { - // get nice standard message, so we can throw it keeping the exception chain - $doctrineExceptionMessage = ConversionException::conversionFailed( + throw ValueNotConvertible::new( $value, $this->getName(), - )->getMessage(); - - throw new ConversionException($doctrineExceptionMessage, 0, $e); + $e->getMessage(), + $e, + ); } return $selfAssertedTokensOption; @@ -86,4 +87,9 @@ public function requiresSQLCommentHint(AbstractPlatform $platform): bool { return false; } + + public function getBindingType(): ParameterType + { + return ParameterType::INTEGER; + } } diff --git a/src/Surfnet/StepupMiddleware/ApiBundle/Doctrine/Type/SelfVetOptionType.php b/src/Surfnet/StepupMiddleware/ApiBundle/Doctrine/Type/SelfVetOptionType.php index d683cc785..757e1e61b 100644 --- a/src/Surfnet/StepupMiddleware/ApiBundle/Doctrine/Type/SelfVetOptionType.php +++ b/src/Surfnet/StepupMiddleware/ApiBundle/Doctrine/Type/SelfVetOptionType.php @@ -18,16 +18,18 @@ namespace Surfnet\StepupMiddleware\ApiBundle\Doctrine\Type; +use Doctrine\DBAL\ParameterType; use Doctrine\DBAL\Platforms\AbstractPlatform; use Doctrine\DBAL\Types\ConversionException; -use Doctrine\DBAL\Types\IntegerType; +use Doctrine\DBAL\Types\Exception\ValueNotConvertible; +use Doctrine\DBAL\Types\Type; use Surfnet\Stepup\Configuration\Value\SelfVetOption; use TypeError; /** * Custom Type for the SelfVetOption Value Object */ -class SelfVetOptionType extends IntegerType +class SelfVetOptionType extends Type { public const NAME = 'stepup_self_vet_option'; @@ -56,7 +58,7 @@ public function convertToDatabaseValue(mixed $value, AbstractPlatform $platform) return (int)$value->isEnabled(); } - public function convertToPHPValue($value, AbstractPlatform $platform): ?SelfVetOption + public function convertToPHPValue(mixed $value, AbstractPlatform $platform): ?SelfVetOption { if (is_null($value)) { return null; @@ -65,13 +67,12 @@ public function convertToPHPValue($value, AbstractPlatform $platform): ?SelfVetO try { $selfVetOption = new SelfVetOption((bool)$value); } catch (TypeError $e) { - // get nice standard message, so we can throw it keeping the exception chain - $doctrineExceptionMessage = ConversionException::conversionFailed( + throw ValueNotConvertible::new( $value, $this->getName(), - )->getMessage(); - - throw new ConversionException($doctrineExceptionMessage, 0, $e); + $e->getMessage(), + $e, + ); } return $selfVetOption; @@ -86,4 +87,9 @@ public function requiresSQLCommentHint(AbstractPlatform $platform): bool { return false; } + + public function getBindingType(): ParameterType + { + return ParameterType::INTEGER; + } } diff --git a/src/Surfnet/StepupMiddleware/ApiBundle/Doctrine/Type/ShowRaaContactInformationOptionType.php b/src/Surfnet/StepupMiddleware/ApiBundle/Doctrine/Type/ShowRaaContactInformationOptionType.php index 213fef0bb..5f0fc6f9b 100644 --- a/src/Surfnet/StepupMiddleware/ApiBundle/Doctrine/Type/ShowRaaContactInformationOptionType.php +++ b/src/Surfnet/StepupMiddleware/ApiBundle/Doctrine/Type/ShowRaaContactInformationOptionType.php @@ -20,6 +20,7 @@ use Doctrine\DBAL\Platforms\AbstractPlatform; use Doctrine\DBAL\Types\ConversionException; +use Doctrine\DBAL\Types\Exception\ValueNotConvertible; use Doctrine\DBAL\Types\Type; use Surfnet\Stepup\Configuration\Value\ShowRaaContactInformationOption; use Surfnet\Stepup\Exception\InvalidArgumentException; @@ -55,7 +56,7 @@ public function convertToDatabaseValue(mixed $value, AbstractPlatform $platform) return (int)$value->isEnabled(); } - public function convertToPHPValue($value, AbstractPlatform $platform): ?ShowRaaContactInformationOption + public function convertToPHPValue(mixed $value, AbstractPlatform $platform): ?ShowRaaContactInformationOption { if (is_null($value)) { return null; @@ -66,13 +67,12 @@ public function convertToPHPValue($value, AbstractPlatform $platform): ?ShowRaaC $platform->convertFromBoolean($value), ); } catch (InvalidArgumentException $e) { - // get nice standard message, so we can throw it keeping the exception chain - $doctrineExceptionMessage = ConversionException::conversionFailed( + throw ValueNotConvertible::new( $value, $this->getName(), - )->getMessage(); - - throw new ConversionException($doctrineExceptionMessage, 0, $e); + $e->getMessage(), + $e, + ); } return $showRaaContactInformationOption; diff --git a/src/Surfnet/StepupMiddleware/ApiBundle/Doctrine/Type/SsoOn2faOptionType.php b/src/Surfnet/StepupMiddleware/ApiBundle/Doctrine/Type/SsoOn2faOptionType.php index 3ecd80973..44cdd89d5 100644 --- a/src/Surfnet/StepupMiddleware/ApiBundle/Doctrine/Type/SsoOn2faOptionType.php +++ b/src/Surfnet/StepupMiddleware/ApiBundle/Doctrine/Type/SsoOn2faOptionType.php @@ -18,16 +18,18 @@ namespace Surfnet\StepupMiddleware\ApiBundle\Doctrine\Type; +use Doctrine\DBAL\ParameterType; use Doctrine\DBAL\Platforms\AbstractPlatform; use Doctrine\DBAL\Types\ConversionException; -use Doctrine\DBAL\Types\IntegerType; +use Doctrine\DBAL\Types\Exception\ValueNotConvertible; +use Doctrine\DBAL\Types\Type; use Surfnet\Stepup\Configuration\Value\SsoOn2faOption; use TypeError; /** * Custom Type for the SsoOn2faOption Value Object */ -class SsoOn2faOptionType extends IntegerType +class SsoOn2faOptionType extends Type { public const NAME = 'stepup_sso_on_2fa_option'; @@ -56,7 +58,7 @@ public function convertToDatabaseValue(mixed $value, AbstractPlatform $platform) return (int)$value->isEnabled(); } - public function convertToPHPValue($value, AbstractPlatform $platform): ?SsoOn2faOption + public function convertToPHPValue(mixed $value, AbstractPlatform $platform): ?SsoOn2faOption { if (is_null($value)) { return null; @@ -65,13 +67,12 @@ public function convertToPHPValue($value, AbstractPlatform $platform): ?SsoOn2fa try { $ssoOn2faOption = new SsoOn2faOption((bool)$value); } catch (TypeError $e) { - // get nice standard message, so we can throw it keeping the exception chain - $doctrineExceptionMessage = ConversionException::conversionFailed( + throw ValueNotConvertible::new( $value, $this->getName(), - )->getMessage(); - - throw new ConversionException($doctrineExceptionMessage, 0, $e); + $e->getMessage(), + $e, + ); } return $ssoOn2faOption; @@ -86,4 +87,9 @@ public function requiresSQLCommentHint(AbstractPlatform $platform): bool { return false; } + + public function getBindingType(): ParameterType + { + return ParameterType::INTEGER; + } } diff --git a/src/Surfnet/StepupMiddleware/ApiBundle/Doctrine/Type/SsoRegistrationBypassOptionType.php b/src/Surfnet/StepupMiddleware/ApiBundle/Doctrine/Type/SsoRegistrationBypassOptionType.php index e4d0a28dd..617172d19 100644 --- a/src/Surfnet/StepupMiddleware/ApiBundle/Doctrine/Type/SsoRegistrationBypassOptionType.php +++ b/src/Surfnet/StepupMiddleware/ApiBundle/Doctrine/Type/SsoRegistrationBypassOptionType.php @@ -18,9 +18,11 @@ namespace Surfnet\StepupMiddleware\ApiBundle\Doctrine\Type; +use Doctrine\DBAL\ParameterType; use Doctrine\DBAL\Platforms\AbstractPlatform; use Doctrine\DBAL\Types\ConversionException; -use Doctrine\DBAL\Types\IntegerType; +use Doctrine\DBAL\Types\Exception\ValueNotConvertible; +use Doctrine\DBAL\Types\Type; use Surfnet\Stepup\Configuration\Value\SsoRegistrationBypassOption; use TypeError; @@ -31,7 +33,7 @@ * "GSSP fallback" forwards the second factor authentications at LoA 1.5 to the fallback GSSP when a user does not have * any active tokens */ -class SsoRegistrationBypassOptionType extends IntegerType +class SsoRegistrationBypassOptionType extends Type { public const NAME = 'stepup_sso_registration_bypass_option'; @@ -60,7 +62,7 @@ public function convertToDatabaseValue(mixed $value, AbstractPlatform $platform) return (int)$value->isEnabled(); } - public function convertToPHPValue($value, AbstractPlatform $platform): ?SsoRegistrationBypassOption + public function convertToPHPValue(mixed $value, AbstractPlatform $platform): ?SsoRegistrationBypassOption { if (is_null($value)) { return null; @@ -69,13 +71,12 @@ public function convertToPHPValue($value, AbstractPlatform $platform): ?SsoRegis try { $ssoRegistrationBypassOption = new SsoRegistrationBypassOption((bool)$value); } catch (TypeError $e) { - // get nice standard message, so we can throw it keeping the exception chain - $doctrineExceptionMessage = ConversionException::conversionFailed( + throw ValueNotConvertible::new( $value, $this->getName(), - )->getMessage(); - - throw new ConversionException($doctrineExceptionMessage, 0, $e); + $e->getMessage(), + $e, + ); } return $ssoRegistrationBypassOption; @@ -90,4 +91,9 @@ public function requiresSQLCommentHint(AbstractPlatform $platform): bool { return false; } + + public function getBindingType(): ParameterType + { + return ParameterType::INTEGER; + } } diff --git a/src/Surfnet/StepupMiddleware/ApiBundle/Doctrine/Type/UseRaLocationsOptionType.php b/src/Surfnet/StepupMiddleware/ApiBundle/Doctrine/Type/UseRaLocationsOptionType.php index c49c42f6d..844bda82c 100644 --- a/src/Surfnet/StepupMiddleware/ApiBundle/Doctrine/Type/UseRaLocationsOptionType.php +++ b/src/Surfnet/StepupMiddleware/ApiBundle/Doctrine/Type/UseRaLocationsOptionType.php @@ -20,6 +20,7 @@ use Doctrine\DBAL\Platforms\AbstractPlatform; use Doctrine\DBAL\Types\ConversionException; +use Doctrine\DBAL\Types\Exception\ValueNotConvertible; use Doctrine\DBAL\Types\Type; use Surfnet\Stepup\Configuration\Value\UseRaLocationsOption; use Surfnet\Stepup\Exception\InvalidArgumentException; @@ -55,7 +56,7 @@ public function convertToDatabaseValue(mixed $value, AbstractPlatform $platform) return (int)$value->isEnabled(); } - public function convertToPHPValue($value, AbstractPlatform $platform): ?UseRaLocationsOption + public function convertToPHPValue(mixed $value, AbstractPlatform $platform): ?UseRaLocationsOption { if (is_null($value)) { return null; @@ -64,13 +65,12 @@ public function convertToPHPValue($value, AbstractPlatform $platform): ?UseRaLoc try { $useRaLocationsOption = new UseRaLocationsOption($platform->convertFromBoolean($value)); } catch (InvalidArgumentException $e) { - // get nice standard message, so we can throw it keeping the exception chain - $doctrineExceptionMessage = ConversionException::conversionFailed( + throw ValueNotConvertible::new( $value, $this->getName(), - )->getMessage(); - - throw new ConversionException($doctrineExceptionMessage, 0, $e); + $e->getMessage(), + $e, + ); } return $useRaLocationsOption; diff --git a/src/Surfnet/StepupMiddleware/ApiBundle/Doctrine/Type/VerifyEmailOptionType.php b/src/Surfnet/StepupMiddleware/ApiBundle/Doctrine/Type/VerifyEmailOptionType.php index 0dee3cad8..861a6e81b 100644 --- a/src/Surfnet/StepupMiddleware/ApiBundle/Doctrine/Type/VerifyEmailOptionType.php +++ b/src/Surfnet/StepupMiddleware/ApiBundle/Doctrine/Type/VerifyEmailOptionType.php @@ -18,16 +18,18 @@ namespace Surfnet\StepupMiddleware\ApiBundle\Doctrine\Type; +use Doctrine\DBAL\ParameterType; use Doctrine\DBAL\Platforms\AbstractPlatform; -use Doctrine\DBAL\Types\BooleanType; use Doctrine\DBAL\Types\ConversionException; +use Doctrine\DBAL\Types\Exception\ValueNotConvertible; +use Doctrine\DBAL\Types\Type; use Surfnet\Stepup\Configuration\Value\VerifyEmailOption; use Surfnet\Stepup\Exception\InvalidArgumentException; /** * Custom Type for the VerifyEmailOption Value Object */ -class VerifyEmailOptionType extends BooleanType +class VerifyEmailOptionType extends Type { public const NAME = 'stepup_verify_email_option'; @@ -55,7 +57,7 @@ public function convertToDatabaseValue(mixed $value, AbstractPlatform $platform) return (int)$value->isEnabled(); } - public function convertToPHPValue($value, AbstractPlatform $platform): ?VerifyEmailOption + public function convertToPHPValue(mixed $value, AbstractPlatform $platform): ?VerifyEmailOption { if (is_null($value)) { return null; @@ -64,13 +66,12 @@ public function convertToPHPValue($value, AbstractPlatform $platform): ?VerifyEm try { $verifyEmailOption = new VerifyEmailOption($platform->convertFromBoolean($value)); } catch (InvalidArgumentException $e) { - // get nice standard message, so we can throw it keeping the exception chain - $doctrineExceptionMessage = ConversionException::conversionFailed( + throw ValueNotConvertible::new( $value, $this->getName(), - )->getMessage(); - - throw new ConversionException($doctrineExceptionMessage, 0, $e); + $e->getMessage(), + $e, + ); } return $verifyEmailOption; @@ -85,4 +86,9 @@ public function requiresSQLCommentHint(AbstractPlatform $platform): bool { return false; } + + public function getBindingType(): ParameterType + { + return ParameterType::BOOLEAN; + } } diff --git a/src/Surfnet/StepupMiddleware/ApiBundle/Doctrine/Type/VettingTypeHintsType.php b/src/Surfnet/StepupMiddleware/ApiBundle/Doctrine/Type/VettingTypeHintsType.php index d0ca4e2b8..0e4ca5ad7 100644 --- a/src/Surfnet/StepupMiddleware/ApiBundle/Doctrine/Type/VettingTypeHintsType.php +++ b/src/Surfnet/StepupMiddleware/ApiBundle/Doctrine/Type/VettingTypeHintsType.php @@ -19,7 +19,7 @@ namespace Surfnet\StepupMiddleware\ApiBundle\Doctrine\Type; use Doctrine\DBAL\Platforms\AbstractPlatform; -use Doctrine\DBAL\Types\ConversionException; +use Doctrine\DBAL\Types\Exception\ValueNotConvertible; use Doctrine\DBAL\Types\JsonType; use Surfnet\Stepup\Exception\InvalidArgumentException; use Surfnet\Stepup\Identity\Collection\VettingTypeHintCollection; @@ -36,7 +36,7 @@ public function getSQLDeclaration(array $column, AbstractPlatform $platform): st return $platform->getJsonTypeDeclarationSQL($column); } - public function convertToPHPValue($value, AbstractPlatform $platform): ?VettingTypeHintCollection + public function convertToPHPValue(mixed $value, AbstractPlatform $platform): ?VettingTypeHintCollection { if (is_null($value)) { return null; @@ -46,13 +46,12 @@ public function convertToPHPValue($value, AbstractPlatform $platform): ?VettingT $data = json_decode((string)$value, true); $vettingTypeHints = VettingTypeHintCollection::deserialize($data); } catch (InvalidArgumentException $e) { - // get nice standard message, so we can throw it keeping the exception chain - $doctrineExceptionMessage = ConversionException::conversionFailed( + throw ValueNotConvertible::new( $value, $this->getName(), - )->getMessage(); - - throw new ConversionException($doctrineExceptionMessage, 0, $e); + $e->getMessage(), + $e, + ); } return $vettingTypeHints; diff --git a/src/Surfnet/StepupMiddleware/MiddlewareBundle/EventSourcing/DBALEventHydrator.php b/src/Surfnet/StepupMiddleware/MiddlewareBundle/EventSourcing/DBALEventHydrator.php index 67702b702..6f7ab766b 100644 --- a/src/Surfnet/StepupMiddleware/MiddlewareBundle/EventSourcing/DBALEventHydrator.php +++ b/src/Surfnet/StepupMiddleware/MiddlewareBundle/EventSourcing/DBALEventHydrator.php @@ -24,8 +24,8 @@ use Broadway\Serializer\SimpleInterfaceSerializer; use Doctrine\DBAL\Connection; use Doctrine\DBAL\Exception; +use Doctrine\DBAL\ParameterType; use Doctrine\DBAL\Statement; -use PDO; use Surfnet\StepupMiddleware\CommandHandlingBundle\SensitiveData\Forgettable; use Surfnet\StepupMiddleware\CommandHandlingBundle\SensitiveData\SensitiveData; @@ -63,8 +63,8 @@ public function getCount(): int public function getFromTill(int $limit, int $offset): DomainEventStream { $statement = $this->prepareLoadStatement(); - $statement->bindValue('limit', $limit, PDO::PARAM_INT); - $statement->bindValue('offset', $offset, PDO::PARAM_INT); + $statement->bindValue('limit', $limit, ParameterType::INTEGER); + $statement->bindValue('offset', $offset, ParameterType::INTEGER); $result = $statement->executeQuery(); @@ -98,7 +98,10 @@ public function fetchByEventTypes(array $eventTypes): DomainEventStream ); $statement = $this->connection->prepare($query); - $results = $statement->executeQuery($eventTypes); + foreach ($eventTypes as $position => $parameter) { + $statement->bindValue($position + 1, $parameter); + } + $results = $statement->executeQuery(); $events = []; foreach ($results->fetchAllAssociative() as $row) {