v0.5.0 #32
rcalicdan
announced in
Announcements
v0.5.0
#32
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
What's New in v0.5.0
Tooling Annotation Priority Hierarchy (@phpstan-* & @psalm-*)
TypePHP now natively respects the 3-Tier Tooling Priority Hierarchy:
@phpstan-*>@psalm-*> standard@*.@phpstan-paramand@psalm-paramoverride broad@paramtags.@phpstan-returnand@psalm-returnoverride broad@returntags.@phpstan-varand@psalm-varoverride broad@vartags.Generic Trait Support (@use, @template-use, @phpstan-use)
Full runtime generic support for traits:
/** @use GenericTrait<T> */ class Service { use GenericTrait; }class Service { /** @use GenericTrait<T> */ use GenericTrait; }/** @use GenericTrait<T> */ use GenericTrait;\WeakMapmemory with full Vendor Isolation protection.Extended Inherited Template Annotations
Full support for third-party inheritance tag variations:
@extends,@template-extends,@phpstan-extends,@psalm-extends@implements,@template-implements,@phpstan-implements,@psalm-implements@use,@template-use,@phpstan-useAutomatic Project Root Resolution (Web Server Independence)
Config::getProjectRoot()which searches upwards forvendor/autoload.phporcomposer.jsonand memoizes the path in static RAM.getcwd()discrepancies in web server document roots (e.g.public/index.phpin Symfony / Laravel / PHP-FPM / FrankenPHP).Stability & CI Matrix
Full Changelog: v0.4.3...v0.5.0
This discussion was created from the release v0.5.0.
All reactions