phpantom_lsp 0.7.0

Fast PHP language server with deep type intelligence. Generics, Laravel, PHPStan annotations. Ready in an instant.
Documentation
// test: PHP 8.5 pipe operator resolves type through chain
// feature: completion
// Adapted from phpactor pipe-operator/pipe-operator.test
// expect: getTimestamp(
---
<?php

class DateTime {
    public function getTimestamp(): int {}
}

function createDate(string $input): DateTime {
    return new DateTime();
}

$title = 'hello';

$result = $title
    |> trim(...)
    |> createDate(...);

$result-><>