You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A variable completes again in Zed. $ap was answered with $app and the editor showed nothing:
the item was sent to be filtered without its $, and Zed counts the $ as part of the word.
Every variable and static property was affected, in 0.1.0 through 0.1.2.
Accepting a variable in a closure's use (...) no longer doubles the $: use ($al became use ($$alpha).
Of several classes with one short name, the one the name already means in the file -- by an
import, or by the namespace the file is in -- is offered first. In a file with use RuntimeException;, new RuntimeE put the MongoDB extension's class ahead of PHP's and wrote
its full path when accepted.
A completion that goes on from what is already typed replaces only the last word of it, so an
editor that filters a list by the text an item replaces -- rather than by the word at the cursor,
as Zed does -- no longer drops it: a use path (use App\Http\Resp), a name written from the
root (new \RuntimeE) and a service id past its dot (service('application.ma')).
A name the file imports is offered ahead of the rest and is always in the list. The list is
ordered project code first and cut at two hundred rows with no knowledge of the file's use
lines, so Da under use Illuminate\Support\Facades\Date; offered two hundred other names and
not Date, and a function brought in with use function stood behind classes of the same name.
A class completed in a docblock is written the way the file's docblocks already write one. It was
always written from the root -- @param \WP_Post, @throws \App\Lock\LockException beside a use line for that class -- which is Drupal's and Laravel's convention and nobody else's. A file
whose docblocks name classes as its code does now gets the name its code would write, and a file
that writes them from the root, or has named none yet, is completed as before.
A docblock's type position offers the template parameters and type aliases in scope: @return TVa
under a class's @template TValue offered every class that began that way and not TValue.
A type in a docblock goes on past the space after a callable's colon and the spaces some write
round a |: @param callable(TValue, TKey): TMap and @return string | Tra offered nothing.
The enclosing class's own name before ::, or an ancestor's, offers instance methods as self::
and parent:: do: Base::__construct($id) in a subclass, PclZip::privErrorLog(...) inside PclZip. Only static members and constants were offered.
Renaming a property or a method also renames the @property or @method tag that documents it on
the same class, and find-references lists the tag. @property-read string $scheme above a
declared protected $scheme was left naming the old property.
phrost check no longer reports on code a framework keeps outside vendor/ when it is committed
beside the project's own -- Drupal's core and contributed modules in a site that commits them. The
editor never checked them and the command line did, so CI and the editor disagreed by tens of
thousands of findings on such a checkout.
A class is not imported a second time under a name a use line already holds. Where the file's
own import named a class the project cannot see -- a dependency that is not installed -- accepting
a namesake added a second use for the same name, which PHP refuses to load. It is written with
its full path instead, and the "Import" quick fix is not offered.
setrawcookie() takes its options array: setrawcookie($name, $value, ['expires' => $at]) was
reported as an array given for an int, because the stubs declared the function's two forms
separately and only the first was read.