Inherit constructor argument types from mysqli #4

Merged
vlw merged 1 commit from refs/pull/4/head into master 2023-06-11 12:02:12 +02:00
vlw commented 2023-06-11 12:00:56 +02:00 (Migrated from codeberg.org)

There is no reason why this lib should have type requirements when mysqli will connect with default paramteres if null is passed to any of its arguments

public mysqli::__construct(
    ?string $hostname = null,
    ?string $username = null,
    ?string $password = null,
    ?string $database = null,
    ?int $port = null,
    ?string $socket = null
)

From: https://www.php.net/manual/en/mysqli.construct.php

There is no reason why this lib should have type requirements when mysqli will connect with default paramteres if `null` is passed to any of its arguments ```php public mysqli::__construct( ?string $hostname = null, ?string $username = null, ?string $password = null, ?string $database = null, ?int $port = null, ?string $socket = null ) ``` From: https://www.php.net/manual/en/mysqli.construct.php
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
vlw/php-mysql!4
No description provided.