Skip to content

TASK: Introduce PHP code linting / refactoring and fix affected code #608

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

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

Conversation

Sebobo
Copy link
Member

@Sebobo Sebobo commented Jun 23, 2025

NodeType and configuration schema linting
PHPStan level 8

@Sebobo Sebobo self-assigned this Jun 23, 2025
@Sebobo Sebobo moved this to Todo in PostCon Sprint 2025 Jun 23, 2025
@Sebobo Sebobo moved this from Todo to In Progress in PostCon Sprint 2025 Jun 23, 2025
@Sebobo Sebobo marked this pull request as ready for review June 23, 2025 11:20
@Sebobo Sebobo requested review from dlubitz and mhsdesign June 23, 2025 11:20
@Sebobo Sebobo changed the title TASK: Check code with phpstan TASK: Code linting Jun 23, 2025
@Sebobo Sebobo moved this from In Progress to Reviews in PostCon Sprint 2025 Jun 23, 2025
Sebobo added 3 commits June 23, 2025 22:44
After deployment this change first needs to be migrated with
```
./flow nodemigration:execute 20250623134952
```

Then remove the deprecated childnodes with
```
./flow structureadjustments:fix —node-type Neos.MarketPlace:Version
```
Copy link
Member

@mhsdesign mhsdesign left a comment

Choose a reason for hiding this comment

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

THanks for the effort!!! Cant say too much about the code

Copy link
Member

@bwaidelich bwaidelich left a comment

Choose a reason for hiding this comment

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

Thanks a lot for taking care.
Looks great in general, I only found some smaller things that might be bugs.

Apart from that, this is more than just "Code linting" – which is great, but we should adjust the description slightly IMO

Copy link
Member

Choose a reason for hiding this comment

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

I don't understand this. Isn't the root problem, that we are missing an explicit dependency on neos/media (or rather neos/neos?) even though we are using classes of those namespaces?

Copy link
Member Author

Choose a reason for hiding this comment

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

I'm not quite sure.@mhsdesign fixed it like this in the core and I copied the file.

@Sebobo Sebobo changed the title TASK: Code linting TASK: Introduce PHP code linting / refactoring and fix affected code Jun 25, 2025
@Sebobo
Copy link
Member Author

Sebobo commented Jun 25, 2025

dammit I accidentally already merged the marketplace refactoring in here

@bwaidelich
Copy link
Member

Nevermind. Let's just fix composer.lock and get this merged!

@Sebobo
Copy link
Member Author

Sebobo commented Jun 25, 2025

Linting of the migration will be separately solved with Sebobo/Shel.Neos.Schema#29

@Sebobo
Copy link
Member Author

Sebobo commented Jun 25, 2025

Yaml is now also linting fine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Reviews
Development

Successfully merging this pull request may close these issues.

3 participants