-
Notifications
You must be signed in to change notification settings - Fork 2
Upgrade to symfony 7.4 #557
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
In test/development mode, don't flood the console with queries. Update mariaDb version to match production. In the devbox, we want deprecations to fail the pipeline. In Github, we don't want that, as dependabot updates or small package udates should not cause the build to fail. We will handle the deprecations once a developer works on the project. Add a separate deprecation.log in development mode.
Surfnet\StepupMiddleware\CommandHandlingBundle\Root\Command\FooBarCommand::$snakeCase is deprecated
MagicClosureTwigExtensionToNativeMethodsRector + attribute rules.
Prior to this change, organised imports was not enforced, but required by coding guidelines. This would result in PR feedback about unused imports, usage of fqn in code, etc. This change auto fixes & enforces correct import usage via phpcs / phpcbf.
…rTypeDeclarationSQL
…ations to attributes for everything.
…sons. Only except camelcase method names and line lenghts.
RecastingRemovalRector
… is accessible by default now. RemoveReflectionSetAccessibleCallsRector
…nRector, NullToStrictStringFuncCallArgRector, FunctionFirstClassCallableRector
Tests cannot be abstract. So PHPunit does not allow it to end on 'Test' anymore.
Math is no longer needed as an explicit dependency.
xss_protection is deprecated. The recommended unsafe-inline al not allowed.
twigphp/Twig@7c38fc2 Disable doctrine automapping deprecation warning.
GetFiltersToAsTwigFilterAttributeRector InvokableCommandInputAttributeRector
…ds on it. Running `./bin/console` produces an error without it as jms/translation-bundle tries to instatiate it.
…ble in the cli, because they were not autoconfigured. This change ensures they are registered by adding autoconfigure to the console_commands.yml service definition. And adds a test to validate that. And adds autoconfigure to all other service definitions to ensure all attribute services can be picked up.
MKodde
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Enjoy some nitpicks, questions and concerns...
src/Surfnet/Stepup/Tests/Configuration/Value/AllowedSecondFactorListTest.php
Outdated
Show resolved
Hide resolved
src/Surfnet/StepupMiddleware/ApiBundle/Tests/Identity/Projector/AuditLogProjectorTest.php
Outdated
Show resolved
Hide resolved
...rfnet/StepupMiddleware/MiddlewareBundle/Console/Command/BootstrapGsspSecondFactorCommand.php
Outdated
Show resolved
Hide resolved
src/Surfnet/StepupMiddleware/MiddlewareBundle/Console/Command/MigrateSecondFactorCommand.php
Outdated
Show resolved
Hide resolved
| # resource: '../src/Surfnet/' | ||
| # exclude: | ||
| # - '../src/Surfnet/DataFixtures/' | ||
| # - '../src/Surfnet/Migrations/' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the migrations should not be autoloaded, and be excluded explicitly. Maybe some of the other utility classes should not be either?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good question, lets discuss. I removed this code, because it was not needed. I was confusing it with commands.yaml.
|
|
||
| Clone the repository or download the archive to a directory. Install the dependencies by running `composer install` and fill out the database credentials et cetera. | ||
|
|
||
| Make sure to run database migrations using `bin/console middleware:migrations:migrate`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a distinction between the middleware and doctrine migrations. From the top of my head, this had to do with the combined middleware and gateway migrations. At this moment I do not have time to look into this further, but this might be a risky change..
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah, afaik, middleware:migrations:migrate does not exist, so I assumed it should be stepup.. But that may be wrong. I should look into the migrations, as my dev env does not actually run the migrations, but does end up with a working db ..
| @@ -1,5 +1,5 @@ | |||
| PHP_VERSION=82 | |||
| SYMFONY_VERSION=6 | |||
| SYMFONY_VERSION=7 | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we require stepup build changes for SYMFONY_VERSION=7?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't forget to remove the @TODO when upgraded to SF7.4 comment I saw in a previous commit :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
think I removed it..
77a29d3 to
9e949fa
Compare
… doctrine bundle. Instead, set the commented via the custom type. doctrine/DoctrineBundle#977
Relying on the default column size for varchar fields is deprecated. This change configures all varchar custom types to rely on the previous default value of 255, if not overridden. See \Doctrine\DBAL\Platforms\AbstractPlatform::getVarcharDefaultLength See doctrine/dbal#3263
Prior to this change, deprecation warnings about safepoints were thrown. This change enables safepoints for all connections. Safepoints are not supported by myisam tables or drivers like sqlite. doctrine/dbal#6272
$request->get is deprecated. $request->query->get for URL parameters or $request->request->get for POST should be used instead. See https://symfony.com/blog/new-in-symfony-7-4-request-class-improvements Phpstan: Fix get parameter types Prior to this change, \Surfnet\StepupMiddleware\ApiBundle\Controller\RaCandidateController::search could receive `secondFactorTypes`, which could never be an array, yet the query expects an array. This change ensures the query parameters for this property are read sa an array read.
… UpdateIdentityCommand Prior to this change, `Deprecated: Creation of dynamic property` was logged when running the behat tests in devconf. This can be caused when properties are set in old events, that are later removed from the class. We could check in the CommandValueResolver whether a field exists before setting it, but that carries more risk, in case the properties might be still read dynamically somewhere.
fe4cee2 to
a862c16
Compare
a862c16 to
cab9488
Compare
No description provided.