PHP Tools for Visual Studio v1.66.15908

코드 렌즈를 추가하여 정의 및 참조를 검색하는 데 도움을 줍니다.
6월 29, 2022
신규 버전

기능

  • Code Lens - Added Code Lenses for PHP code. This feature helps with navigating through definitions and references. Code Lenses are displayed above each function, class, interface, trait, enum, and properties. This shows the number of references and implementations. For overridden methods, it also provides a quick link to the parent definition (displayed as prototype).
  • Generic class-string<T> - There is a special syntax used in Documentary Comments to annotate a variable, which value should be a name of a class. It's usually used by code linters like PHPStan or Psalm. PHP Tools now use this annotation in combination with the support for generics. Parameters annotated with class-string<T>, where T is a template argument, allows the editor to infer the type of T when possible.
  • Laravel Real-Time Facades - The editor now recognizes real-time facades, and provides code analysis, code completion, and overall IntelliSense for them. Each class name which is prefixed with Facades\ is treated as a real-time facade (in case there are Laravel Facades included in the project).
  • Eloquent Local Scopes - Added initial support for Eloquent's Local Scopes, i.e. functions prefixed with scope in the Eloquent Model. Those functions show up in the IntelliSense without the prefix as both static and non-static with its scoped arguments. The editor scans for the local scopes (the functions prefixed with scope on a class that implements Illuminate\Database\Eloquent\Model or on a trait that is used within a Model class). Such functions are displayed in the IntelliSense and are also recognized by the code analysis.
  • Debug Notices and Warnings - PHP notices and warnings sometimes slide unnoticed. They are now displayed in the Debug Output Pane.
PHP Tools for Visual Studio

PHP Tools for Visual Studio

Visual Studio에서 PHP 웹사이트 및 애플리케이션을 개발합니다.

궁금한 점이 있으세요?

DEVSENSE 사 제품 라이선스 담당자와 라이브 채팅