Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
staabm committed May 21, 2024
1 parent f707e4c commit 649495e
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/Type/DynamicFunctionParameterOutTypeExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,21 @@
use PHPStan\Reflection\FunctionReflection;
use PHPStan\Reflection\ParameterReflection;

/**
* This is the interface dynamic parameter out type extensions implement for functions.
*
* To register it in the configuration file use the `phpstan.dynamicFunctionReturnTypeExtension` service tag:
*
* ```
* services:
* -
* class: App\PHPStan\MyExtension
* tags:
* - phpstan.dynamicFunctionReturnTypeExtension
* ```
*
* @api
*/
interface DynamicFunctionParameterOutTypeExtension
{

Expand Down
15 changes: 15 additions & 0 deletions src/Type/DynamicMethodParameterOutTypeExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,21 @@
use PHPStan\Reflection\MethodReflection;
use PHPStan\Reflection\ParameterReflection;

/**
* This is the interface dynamic parameter out type extensions implement for non-static methods.
*
* To register it in the configuration file use the `phpstan.dynamicMethodParameterOutTypeExtension` service tag:
*
* ```
* services:
* -
* class: App\PHPStan\MyExtension
* tags:
* - phpstan.dynamicMethodParameterOutTypeExtension
* ```
*
* @api
*/
interface DynamicMethodParameterOutTypeExtension
{

Expand Down
15 changes: 15 additions & 0 deletions src/Type/DynamicStaticMethodParameterOutTypeExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,21 @@
use PHPStan\Reflection\MethodReflection;
use PHPStan\Reflection\ParameterReflection;

/**
* This is the interface dynamic parameter out type extensions implement for static methods.
*
* To register it in the configuration file use the `phpstan.dynamicStaticMethodParameterOutTypeExtension` service tag:
*
* ```
* services:
* -
* class: App\PHPStan\MyExtension
* tags:
* - phpstan.dynamicStaticMethodParameterOutTypeExtension
* ```
*
* @api
*/
interface DynamicStaticMethodParameterOutTypeExtension
{

Expand Down

0 comments on commit 649495e

Please sign in to comment.