Skip to content

TASK: Use PHP 8 features#19

Open
Sebobo wants to merge 5 commits intomainfrom
task/use-php8-features
Open

TASK: Use PHP 8 features#19
Sebobo wants to merge 5 commits intomainfrom
task/use-php8-features

Conversation

@Sebobo
Copy link
Member

@Sebobo Sebobo commented May 5, 2022

Relates: #18

@Sebobo Sebobo force-pushed the task/use-php8-features branch from 9f060d7 to fb81829 Compare May 5, 2022 13:20
@mficzel
Copy link
Member

mficzel commented May 13, 2022

@Sebobo Is this ready for review?

@Sebobo Sebobo marked this pull request as ready for review May 13, 2022 07:47
@Sebobo
Copy link
Member Author

Sebobo commented May 13, 2022

Think so

@mficzel
Copy link
Member

mficzel commented May 13, 2022

Not really sure about those inject annotations because they lead to non-lazy injections. Is that worth the performance impact

@mficzel mficzel closed this May 13, 2022
@mficzel mficzel reopened this May 13, 2022
@Sebobo
Copy link
Member Author

Sebobo commented May 13, 2022

No clue if that matters much, also didn't know the annotation behaves so differently.

Can change it back for those cases.

@mficzel
Copy link
Member

mficzel commented May 13, 2022

@Sebobo that was not precise from me, What behaves differently is typed properties that are injected because the strict type does not allow lazy injection. The annotation itself is not a problem.

@Sebobo
Copy link
Member Author

Sebobo commented May 16, 2022

@mficzel adjusted it again

Comment on lines 22 to 24
/**
* @Flow\Before("method(Neos\Fusion\Core\Cache\ContentCache->(createUncachedSegment)())")
*/

Choose a reason for hiding this comment

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

Could also be rewritten to

#[Flow\Before("method(Neos\Fusion\Core\Cache\ContentCache->createUncachedSegment())")]

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.

3 participants