mirror of
https://github.com/nikic/PHP-Parser.git
synced 2025-07-24 07:41:35 +02:00
For use in stubs.
see 9c7a3f8d8f
see https://wiki.php.net/rfc/clone_with_v2
see php/php-src#18919
59 lines
1.3 KiB
Plaintext
59 lines
1.3 KiB
Plaintext
Declaring clone function stub
|
|
-----
|
|
<?php
|
|
|
|
function clone(object $object, array $withProperties = []): object {}
|
|
-----
|
|
array(
|
|
0: Stmt_Function(
|
|
attrGroups: array(
|
|
)
|
|
byRef: false
|
|
name: Identifier(
|
|
name: clone
|
|
)
|
|
params: array(
|
|
0: Param(
|
|
attrGroups: array(
|
|
)
|
|
flags: 0
|
|
type: Identifier(
|
|
name: object
|
|
)
|
|
byRef: false
|
|
variadic: false
|
|
var: Expr_Variable(
|
|
name: object
|
|
)
|
|
default: null
|
|
hooks: array(
|
|
)
|
|
)
|
|
1: Param(
|
|
attrGroups: array(
|
|
)
|
|
flags: 0
|
|
type: Identifier(
|
|
name: array
|
|
)
|
|
byRef: false
|
|
variadic: false
|
|
var: Expr_Variable(
|
|
name: withProperties
|
|
)
|
|
default: Expr_Array(
|
|
items: array(
|
|
)
|
|
)
|
|
hooks: array(
|
|
)
|
|
)
|
|
)
|
|
returnType: Identifier(
|
|
name: object
|
|
)
|
|
stmts: array(
|
|
)
|
|
)
|
|
)
|