Skip to content
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

BOOKING-265: Upgraded to latest Symfony #103

Merged
merged 8 commits into from
Aug 11, 2023

Conversation

tuj
Copy link
Contributor

@tuj tuj commented Aug 10, 2023

Link to ticket

https://jira.itkdev.dk/browse/BOOKING-265

Description

Upgraded to latest Symfony.

Checklist

  • My code is covered by test cases.
  • My code passes our test (all our tests).
  • My code passes our static analysis suite.
  • My code passes our continuous integration process.

@tuj tuj requested a review from rimi-itk August 10, 2023 09:37
Copy link

@rimi-itk rimi-itk left a comment

Choose a reason for hiding this comment

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

Some comments added.

Comment on lines +9 to +10
findUnusedBaselineEntry="true"
findUnusedCode="false"

Choose a reason for hiding this comment

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

These would probably be useful – if they work …

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I ran into this issue: psalm/psalm-plugin-symfony#151

Choose a reason for hiding this comment

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

I'm not sure we should have migrations for the messenger_messages table which, by default, is managed outside the migrations show, cf. https://symfony.com/doc/current/messenger.html#doctrine-transport. Anyway, we need some configuration to either use migrations for it (auto_setup: false) or ignore the table in migrations.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Have added auto_setup: false

Comment on lines 73 to 76
* @param string $email
* @param string $type
* @param string $from
* @param string $to

Choose a reason for hiding this comment

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

I hate this kind of so-called documentation … But you're not to blame – blame society!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I blame me. I could just remove the docblock instead of adding types :)

* @ORM\Entity
*/
class AAKResource
{
/**
* @Groups({"resource", "minimum"})
*

Choose a reason for hiding this comment

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

Are these (almost) blank lines a result of updated coding standards or personal taste? I think they don't add any value, e.g. improved readability, and only make the files longer.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Seems to be an issue with php-cs-fixer: PHP-CS-Fixer/PHP-CS-Fixer#6733
Have used solution from: PHP-CS-Fixer/PHP-CS-Fixer#6733 (comment)

@tuj tuj requested a review from rimi-itk August 11, 2023 04:40
@tuj tuj merged commit f03d9b8 into develop Aug 11, 2023
8 checks passed
@tuj tuj deleted the feature/booking-265-composer-update branch August 11, 2023 07:38
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