give
Last commit date
.phpstan
3 years ago
assets
3 years ago
blocks
3 years ago
includes
3 years ago
languages
3 years ago
sample-data
6 years ago
src
3 years ago
templates
3 years ago
vendor
3 years ago
.phpstorm.meta.php
4 years ago
changelog.txt
5 years ago
give.php
3 years ago
license.txt
6 years ago
phpstan.neon
3 years ago
readme.txt
3 years ago
uninstall.php
3 years ago
wpml-config.xml
6 years ago
.phpstorm.meta.php
18 lines
| 1 | <?php |
| 2 | |
| 3 | namespace PHPSTORM_META { |
| 4 | // Allow PhpStorm IDE to resolve return types when calling give( Object_Type::class ) or give( `Object_Type` ). |
| 5 | override( |
| 6 | \give(0), |
| 7 | map([ |
| 8 | '' => '@', |
| 9 | '' => '@Class', |
| 10 | ]) |
| 11 | ); |
| 12 | |
| 13 | // Return the method call result when using Call |
| 14 | override( |
| 15 | \Give\Helpers\Call::invoke(0), type(0) |
| 16 | ); |
| 17 | } |
| 18 |