Skip to content

feat(utils): remove deprecated usage from Response#7

Merged
wd006 merged 1 commit into
mainfrom
fix/utils/fix-response-parameters
Jan 27, 2026
Merged

feat(utils): remove deprecated usage from Response#7
wd006 merged 1 commit into
mainfrom
fix/utils/fix-response-parameters

Conversation

@wd006
Copy link
Copy Markdown
Owner

@wd006 wd006 commented Jan 27, 2026

Overview

Fixed a PHP 8.0+ deprecation warning where an optional parameter ($code) was declared before required parameters ($message, $details). Since the code parameter must always be provided to reach the subsequent arguments, the default value was redundant and caused issues.

Key Changes

  • Response::error: The $code parameter of this function no longer has a default value.

How to Test

  1. No test required

Fixed a PHP 8.0+ deprecation warning where an optional
parameter ($code) was declared before required parameters
($message, $details). Since the code parameter must always
be provided to reach the subsequent arguments, the default
value was redundant and caused issues.
@wd006 wd006 merged commit 958b526 into main Jan 27, 2026
@wd006 wd006 deleted the fix/utils/fix-response-parameters branch January 27, 2026 13:27
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.

1 participant