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

[Draft] Adding a migration for 3.0 #31

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

mamazu
Copy link

@mamazu mamazu commented Apr 2, 2025

Method Renames

If methods just have been renamed this is now fixed with rector.

RequestParameterTrait

I've added a rector to refactor this. Mostly cause I wanted to try to use rector but also to help the upgrade that people want to make. The generated code is not the most optimal (as we can't determine the parameter is from) but it works the same as before.

Seeing that the MissingParameterException is also deprecated it has now been replaced with an InvalidArgumentException which will result in a 500 error code.

Related: sulu/sulu#7815

Replacing deprecated ListRepresentation

Now it automatically refactors it to the PaginatedVersion with additional int casts in case of defective types.

Adding Sulu Level 3.0

(stolen from #18)

@mamazu mamazu changed the title Request parameter rector [Draft] Adding a migration for 3.0 Apr 2, 2025
@mamazu mamazu force-pushed the request_parameter_rector branch 2 times, most recently from 6b6aa60 to 61cec13 Compare April 2, 2025 17:25
@mamazu mamazu force-pushed the request_parameter_rector branch from 61cec13 to 919cc9c Compare April 2, 2025 17:29
@mamazu mamazu force-pushed the request_parameter_rector branch from 919cc9c to afce6b0 Compare April 2, 2025 17:51
@mamazu mamazu force-pushed the request_parameter_rector branch from efedb3c to 4778757 Compare April 4, 2025 08:43
@mamazu mamazu mentioned this pull request Apr 4, 2025
4 tasks
@mamazu mamazu force-pushed the request_parameter_rector branch from 5f77b48 to f3fdce1 Compare April 4, 2025 08:58
@mamazu mamazu force-pushed the request_parameter_rector branch from f3fdce1 to bd64618 Compare April 4, 2025 09:00
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.

1 participant