Skip to content

Commit dc553ff

Browse files
bmewburnisfedorov
authored andcommitted
Add template to PHP 8.5 clone function
1 parent 0a38c16 commit dc553ff

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Core/Core.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1152,6 +1152,10 @@ function exit(string|int $status = 0): never {}
11521152
function die(string|int $status = 0): never {}
11531153

11541154
/**
1155+
* @template TObject of object
1156+
* @param TObject $object
1157+
* @param array $withProperties [optional]
1158+
* @return TObject
11551159
* @since 8.5
11561160
*/
11571161
function clone(object $object, array $withProperties = []): object {}

0 commit comments

Comments
 (0)