Skip to content

Commit 8abed8e

Browse files
committed
Replace @deprecated with #[Deprecated]
1 parent 4512d82 commit 8abed8e

File tree

4 files changed

+18
-6
lines changed

4 files changed

+18
-6
lines changed

ext/mysqli/mysqli.stub.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -851,10 +851,10 @@ public function get_warnings(): mysqli_warning|false {}
851851
public function init() {}
852852

853853
/**
854-
* @deprecated
855854
* @tentative-return-type
856855
* @alias mysqli_kill
857856
*/
857+
#[\Deprecated(since: '8.4', message: 'use KILL CONNECTION/QUERY SQL statement instead')]
858858
public function kill(int $process_id): bool {}
859859

860860
/**

ext/mysqli/mysqli_arginfo.h

+13-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ext/mysqli/tests/071.phpt

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ require_once 'skipifconnectfailure.inc';
4141
--EXPECTF--
4242
bool(true)
4343

44-
Deprecated: Method mysqli::kill() is deprecated in %s
44+
Deprecated: Method mysqli::kill() is deprecated since 8.4, use KILL CONNECTION/QUERY SQL statement instead in %s
4545
bool(false)
4646
bool(true)
4747

48-
Deprecated: Method mysqli::kill() is deprecated in %s
48+
Deprecated: Method mysqli::kill() is deprecated since 8.4, use KILL CONNECTION/QUERY SQL statement instead in %s
4949
bool(false)
5050
done!

ext/spl/spl_fixedarray_arginfo.h

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)