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

Update ob_start signature #1712

Merged
merged 2 commits into from
Jan 27, 2025
Merged

Conversation

VincentLanglet
Copy link
Contributor

cf https://www.php.net/manual/en/function.ob-start.php

ob_start is

ob_start(?callable $callback = null, int $chunk_size = 0, int $flags = PHP_OUTPUT_HANDLER_STDFLAGS): bool

@VincentLanglet
Copy link
Contributor Author

Should I do something for the failing check @isfedorov ? I'm not sure to understand the error.

@@ -143,7 +143,7 @@ function metaphone(string $string, int $max_phonemes = 0) {}
/**
* Turn on output buffering
* @link https://php.net/manual/en/function.ob-start.php
* @param callable $callback [optional] <p>
* @param callable|null $callback [optional] <p>
Copy link
Contributor

Choose a reason for hiding this comment

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

@VincentLanglet since you have added null as a default value in signature, [optional] can be removed here. It's clear that parameter is optional based on signature

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@isfedorov
Copy link
Contributor

@VincentLanglet the failure is related to not supported yet php-cs-fixer + PHP 8.4. You may ignore it.

@isfedorov isfedorov merged commit 6c6bf20 into JetBrains:master Jan 27, 2025
11 of 12 checks passed
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