Skip to content

Fix notification callback not being valid/reachable #12472

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

Merged
merged 1 commit into from
Jul 10, 2025

Conversation

Seldaek
Copy link
Member

@Seldaek Seldaek commented Jul 10, 2025

Fixes #12471

@Seldaek Seldaek added this to the 2.8 milestone Jul 10, 2025
@Seldaek Seldaek changed the base branch from main to 2.8 July 10, 2025 06:34
*/
protected function callbackGet(int $notificationCode, int $severity, ?string $message, int $messageCode, int $bytesTransferred, int $bytesMax)
public function callbackGet(int $notificationCode, int $severity, ?string $message, int $messageCode, int $bytesTransferred, int $bytesMax)
Copy link
Contributor

Choose a reason for hiding this comment

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

you could use Closure::fromCallable instead, which exists since PHP 7.1

Copy link
Member Author

Choose a reason for hiding this comment

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

Good point, forgot about that one. Updated

@jrfnl
Copy link
Contributor

jrfnl commented Jul 10, 2025

Would it make sense to add a test to safeguard against regressions for the issue described in #12471 ?

Edit: then again, there may already be a test in place, but looks like the tests are not run against PHP 8.5 yet.

@Seldaek Seldaek merged commit 161ab21 into composer:2.8 Jul 10, 2025
20 checks passed
@Seldaek Seldaek deleted the fix_php85 branch July 10, 2025 17:01
@Seldaek
Copy link
Member Author

Seldaek commented Jul 10, 2025

Skipping tests because the RemoteFilesystem class is really some last resort fallback thing that nobody should use in theory, and I cannot be bothered.

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.

PHP 8.5 | Fatal error on installing from artifact in CI
3 participants