Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F7479577
ReturnTypeOverrideCapability.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
923 B
Referenced Files
None
Subscribers
None
ReturnTypeOverrideCapability.php
View Options
<?php
declare
(
strict_types
=
1
);
namespace
Phan\PluginV3
;
use
Phan\CodeBase
;
/**
* ReturnTypeOverrideCapability is used when you want to get a return type of a function or method that is dependent on the arguments.
* (e.g. for analyzing `my_printf`)
*
* @see AnalyzeFunctionCallCapability for analyzing the parameters whether or not return types are used.
*/
interface
ReturnTypeOverrideCapability
{
/**
* @return array<string,\Closure>
* maps FQSEN of function or method to a closure used to override the returned UnionType.
* The returned type is not validated.
* '\A::foo' as a key will override a method, and '\foo' as a key will override a function.
* Closure type: function(CodeBase $code_base, Context $context, Func|Method $function, array $args) : UnionType {...}
*/
public
function
getReturnTypeOverrides
(
CodeBase
$code_base
):
array
;
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, Nov 23, 11:48 (4 d, 20 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
ee/3a/e1260abe1aa13cb98f0f1576867d
Default Alt Text
ReturnTypeOverrideCapability.php (923 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment