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

Move some namespaces on reflection #806

Merged
merged 3 commits into from
Dec 12, 2023

Conversation

loic425
Copy link
Member

@loic425 loic425 commented Nov 30, 2023

Q A
Bug fix? no
New feature? no
BC breaks? no
Deprecations? no
Related tickets
License MIT

Based on #805

Only ClassReflection needs a bc-layer cause the other classes have been introduced in 1.11.

@loic425 loic425 requested a review from a team as a code owner November 30, 2023 13:57
@loic425 loic425 force-pushed the move-component-namespace/reflection branch from bbb92e5 to 38db714 Compare November 30, 2023 13:59
@loic425 loic425 force-pushed the move-component-namespace/reflection branch 2 times, most recently from 8bd4def to 65797db Compare December 11, 2023 08:23
@loic425 loic425 force-pushed the move-component-namespace/reflection branch from dfcbb0d to ffeaa37 Compare December 11, 2023 13:10
}
}

Copy link
Member

Choose a reason for hiding this comment

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

Judging by diff, there is unnecessary empty line at the end.

But in file view it's alright 🤔
image

Copy link
Member Author

Choose a reason for hiding this comment

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

done

$finder->files()->in($path)->name('*.php')->sortByName(true);

foreach ($finder as $file) {
$fileContent = (string) file_get_contents((string) $file->getRealPath());
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
$fileContent = (string) file_get_contents((string) $file->getRealPath());
$fileContent = file_get_contents((string) $file->getRealPath());

file_get_contents might return false, so it might be better to handle it explicitly.

Copy link
Member Author

Choose a reason for hiding this comment

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

Done

@lchrusciel lchrusciel merged commit 014f567 into Sylius:1.11 Dec 12, 2023
24 checks passed
@lchrusciel
Copy link
Member

Thank you, @loic425!

@loic425 loic425 deleted the move-component-namespace/reflection branch December 12, 2023 11:11
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.

None yet

3 participants