Skip to content

Conversation

@pavog
Copy link
Member

@pavog pavog commented Nov 26, 2025

No description provided.

@pavog pavog requested a review from matthi4s November 26, 2025 13:32
* @param DriverInterface $driver
*/
public function registerDriver(DriverInterface $driver)
public function registerDriver(DriverInterface $driver): void
Copy link
Member

Choose a reason for hiding this comment

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

Returning static for a fluent interface is probably better.

* @param string $class
*/
public function registerDriverClass(string $id, string $class)
public function registerDriverClass(string $id, string $class): void
Copy link
Member

Choose a reason for hiding this comment

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

Returning static for a fluent interface is probably better.

* @param WhereCondition|WhereGroup $conditionOrGroup
*/
public function add(WhereCondition|WhereGroup $conditionOrGroup)
public function add(WhereCondition|WhereGroup $conditionOrGroup): void
Copy link
Member

Choose a reason for hiding this comment

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

Returning static for a fluent interface is probably better.

* @noinspection PhpDocSignatureInspection
*/
public function add(ModelInterface $model)
public function add(ModelInterface $model): void
Copy link
Member

Choose a reason for hiding this comment

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

Returning static for a fluent interface is probably better.

@matthi4s matthi4s closed this Feb 3, 2026
@matthi4s matthi4s deleted the add-void-return-types branch February 3, 2026 17:43
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