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

First class callable syntax #972

Merged
merged 2 commits into from
Oct 31, 2023
Merged

First class callable syntax #972

merged 2 commits into from
Oct 31, 2023

Conversation

luzrain
Copy link
Contributor

@luzrain luzrain commented Oct 30, 2023

I replaced all callables to use the First class callable syntax.
I also fixed some small codestyle issues.

@@ -2043,9 +2040,7 @@ protected static function writeStatisticsToStatusFile(): void

// For child processes.
gc_collect_cycles();
if (function_exists('gc_mem_caches')) {
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've removed this condition because the function exists since php 7.

@walkor walkor merged commit 443fa0e into walkor:master Oct 31, 2023
18 checks passed
@walkor
Copy link
Owner

walkor commented Oct 31, 2023

Thanks

@luzrain luzrain deleted the callable_syntax branch November 1, 2023 04:05
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