Skip to content

Commit b5e5de5

Browse files
Remove & for prefer-ref
1 parent f9fa213 commit b5e5de5

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

resources/functionMap.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@
286286
'array_map' => ['array', 'callback'=>'?callable', 'array'=>'array', '...args='=>'array'],
287287
'array_merge' => ['array', 'arr1'=>'array', '...args='=>'array'],
288288
'array_merge_recursive' => ['array', 'arr1'=>'array', '...args='=>'array'],
289-
'array_multisort' => ['bool', '&rw_array1'=>'array', 'array1_sort_order='=>'array|int', 'array1_sort_flags='=>'array|int', '...args='=>'array|int'],
289+
'array_multisort' => ['bool', 'rw_array1'=>'array', 'array1_sort_order='=>'array|int', 'array1_sort_flags='=>'array|int', '...args='=>'array|int'],
290290
'array_pad' => ['array', 'input'=>'array', 'pad_size'=>'int', 'pad_value'=>'mixed'],
291291
'array_pop' => ['mixed', '&rw_stack'=>'array'],
292292
'array_product' => ['int|float', 'input'=>'array'],

resources/functionMap_php74delta.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,21 +22,21 @@
2222
*/
2323
return [
2424
'new' => [
25-
'FFI::addr' => ['FFI\CData', '&ptr'=>'FFI\CData'],
26-
'FFI::alignof' => ['int', '&ptr'=>'mixed'],
25+
'FFI::addr' => ['FFI\CData', 'ptr'=>'FFI\CData'],
26+
'FFI::alignof' => ['int', 'ptr'=>'mixed'],
2727
'FFI::arrayType' => ['FFI\CType', 'type'=>'string|FFI\CType', 'dims'=>'array<int,int>'],
28-
'FFI::cast' => ['FFI\CData', 'type'=>'string|FFI\CType', '&ptr'=>''],
28+
'FFI::cast' => ['FFI\CData', 'type'=>'string|FFI\CType', 'ptr'=>''],
2929
'FFI::cdef' => ['FFI', 'code='=>'string', 'lib='=>'?string'],
30-
'FFI::free' => ['void', '&ptr'=>'FFI\CData'],
30+
'FFI::free' => ['void', 'ptr'=>'FFI\CData'],
3131
'FFI::load' => ['FFI', 'filename'=>'string'],
32-
'FFI::memcmp' => ['int', '&ptr1'=>'FFI\CData|string', '&ptr2'=>'FFI\CData|string', 'size'=>'int'],
33-
'FFI::memcpy' => ['void', '&dst'=>'FFI\CData', '&src'=>'string|FFI\CData', 'size'=>'int'],
34-
'FFI::memset' => ['void', '&ptr'=>'FFI\CData', 'ch'=>'int', 'size'=>'int'],
32+
'FFI::memcmp' => ['int', 'ptr1'=>'FFI\CData|string', 'ptr2'=>'FFI\CData|string', 'size'=>'int'],
33+
'FFI::memcpy' => ['void', 'dst'=>'FFI\CData', 'src'=>'string|FFI\CData', 'size'=>'int'],
34+
'FFI::memset' => ['void', 'ptr'=>'FFI\CData', 'ch'=>'int', 'size'=>'int'],
3535
'FFI::new' => ['FFI\CData', 'type'=>'string|FFI\CType', 'owned='=>'bool', 'persistent='=>'bool'],
3636
'FFI::scope' => ['FFI', 'scope_name'=>'string'],
37-
'FFI::sizeof' => ['int', '&ptr'=>'FFI\CData|FFI\CType'],
38-
'FFI::string' => ['string', '&ptr'=>'FFI\CData', 'size='=>'int'],
39-
'FFI::typeof' => ['FFI\CType', '&ptr'=>'FFI\CData'],
37+
'FFI::sizeof' => ['int', 'ptr'=>'FFI\CData|FFI\CType'],
38+
'FFI::string' => ['string', 'ptr'=>'FFI\CData', 'size='=>'int'],
39+
'FFI::typeof' => ['FFI\CType', 'ptr'=>'FFI\CData'],
4040
'FFI::type' => ['FFI\CType', 'type'=>'string'],
4141
'fread' => ['string|false', 'fp'=>'resource', 'length'=>'positive-int'],
4242
'get_mangled_object_vars' => ['array', 'obj'=>'object'],

0 commit comments

Comments
 (0)