Skip to content

Fix PHP 8.4 compatibility: Add void return type to resetBuilderState method - #344

Merged
armanist merged 1 commit into
quantum-php:masterfrom
Wiltzsu:fix/sleekdb-return-type
Oct 27, 2025
Merged

armanist merged 1 commit into
quantum-php:masterfrom
Wiltzsu:fix/sleekdb-return-type

Conversation

@Wiltzsu

@Wiltzsu Wiltzsu commented Oct 25, 2025

Copy link
Copy Markdown
Collaborator

Fix PHP 8.4 compatibility: Add missing void return type to resetBuilderState()

Problem:
Running composer create-project quantum/project project throws a fatal error:

PHP Fatal error: Declaration of Quantum\Libraries\Database\Adapters\Sleekdb\SleekDbal::resetBuilderState() must be compatible with Quantum\Libraries\Database\Adapters\Sleekdb\Statements\Result::resetBuilderState(): void

Solution:
Added missing : void return type to the resetBuilderState() method in SleekDbal class to match the abstract method signature in the Result trait.

Files Changed:

  • src/Libraries/Database/Adapters/Sleekdb/SleekDbal.php (line 373)

@armanist
armanist self-requested a review October 27, 2025 08:03
@armanist

Copy link
Copy Markdown
Collaborator

Great observation!

@armanist armanist added the bug Something isn't working label Oct 27, 2025
@armanist armanist added this to the 2.9.9 milestone Oct 27, 2025
@armanist
armanist merged commit 60d7ebf into quantum-php:master Oct 27, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants