| 638 | } |
| 639 | |
| 640 | static const CBMType *php_lookup_phpstan_alias(PHPLSPContext *ctx, const char *name) { |
| 641 | if (!ctx || !name) |
| 642 | return NULL; |
| 643 | for (int i = 0; i < ctx->phpstan_alias_count; i++) { |
| 644 | if (strcmp(ctx->phpstan_alias_names[i], name) == 0) { |
| 645 | return ctx->phpstan_alias_types[i]; |
| 646 | } |
| 647 | } |
| 648 | return NULL; |
| 649 | } |
| 650 | |
| 651 | static const CBMType *resolve_phpdoc_type(PHPLSPContext *ctx, const char *type_text) { |
| 652 | if (!type_text || !*type_text) |
no outgoing calls
no test coverage detected