Skip to content

Commit

Permalink
Mark mysqli_driver properties readonly
Browse files Browse the repository at this point in the history
  • Loading branch information
kocsismate committed Jan 4, 2022
1 parent 96a5026 commit f70ca0a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions ext/mysqli/mysqli.stub.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,13 @@

final class mysqli_driver
{
/** @readonly */
public string $client_info;

/** @readonly */
public int $client_version;

/** @readonly */
public int $driver_version;

public bool $reconnect = false;
Expand Down
2 changes: 1 addition & 1 deletion ext/mysqli/mysqli_arginfo.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* This is a generated file, edit the .stub.php file instead.
* Stub hash: 78662c05cd463735a8a4101c0357fd0d2698d48e */
* Stub hash: baf4cb58df96edeb4fc14e4703fe9363cf5ed784 */

ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_mysqli_affected_rows, 0, 1, MAY_BE_LONG|MAY_BE_STRING)
ZEND_ARG_OBJ_INFO(0, mysql, mysqli, 0)
Expand Down

0 comments on commit f70ca0a

Please sign in to comment.