Skip to content

Upgrade to Symfony 7.4#136

Open
johanib wants to merge 8 commits intomainfrom
feature/upgrade
Open

Upgrade to Symfony 7.4#136
johanib wants to merge 8 commits intomainfrom
feature/upgrade

Conversation

@johanib
Copy link
Contributor

@johanib johanib commented Jan 22, 2026

No description provided.

- Upgrade PHPstan & fix issues
- Add rector (no rules applied yet)
- Fix phplint cache dir
- Cleanup composer.json by removing non-existant namespaces
- Apply rectors:
* ThisCallOnStaticMethodToStaticCallRector
* NullToStrictStringFuncCallArgRector
* RemoveUselessReturnTagRector
* AnnotationToAttributeRector
* RenameAttributeRector
- User Deprecated: Since symfony/http-kernel 6.3: Parameter "container.dumper.inline_class_loader" is deprecated, use ".container.dumper.inline_class_loader" instead.
sass-migrator division assets/scss/**/*.scss

Remove warnings like during compilation:
Module Warning (from ./node_modules/sass-loader/dist/cjs.js):
Deprecation Using / for division outside of calc() is deprecated and will be removed in Dart Sass 2.0.0.

Recommendation: math.div(18em, 14) or calc(18em / 14)
`js-yaml` was introduced as a resolution, then kept around. It's not needed.
@johanib johanib requested a review from MKodde January 22, 2026 14:28
Copy link
Member

@MKodde MKodde left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While testing the changes in my dev environment, I found out quite some SASS parser deprecation warnings remain in the project. No blocker for me, just saying..

Also: while testing, I noticed your frontend-install modifications you made in the other projects is not included here. Leaving me with permission issues after running the frontend install task. Maybe add the following section here?

    "frontend-install": [
      "yarn install",
      "yarn encore prod",
      "./bin/console cache:clear",
      "@fix-dev-permissions"
    ],
    "fix-dev-permissions": [
      "chown -R www-data:www-data /var/www/html/var/log",
      "chown -R www-data:www-data /var/www/html/var/cache"
    ],

I'm happy to report that your changes result in a functioning demo gssp that can be used for registrations and authentications. So big up there 👍

Prior to this change, no copy-paste detection was performed as phpcpd was abanodoned.

This change installs jscpd and checks the src dir.
@johanib johanib requested a review from MKodde February 4, 2026 08:55
The remaining ones are from `compass-mixins`
"description": "Example Generic SAML Stepup Provider.",
"type": "project",
"minimum-stability": "stable",
"minimum-stability": "dev",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reminder to reset this to stable

@@ -1,22 +1,24 @@
@import "../../node_modules/compass-mixins";
@include global-reset ;
@use "sass:meta";
Copy link
Member

@MKodde MKodde Feb 5, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change causes two build errors that I do not understand right out of the box. Please investigate

 ┌──> node_modules/compass-mixins/lib/compass/reset/_utilities.scss
116│   #{elements-of-type(html5-block)} {
  │     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 

Thanks heaps for fixing the bulk of the deprecation warnings by the way 🐈‍⬛

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants