PHP Tools for Visual Studio (英語版) リリース

各リリースの最新情報を、機能・強化・解決済みの課題の詳細とともに確認しましょう。

1月
2月
3月
4月
5月
6月
7月
8月
9月
10月
11月
12月
PHP Tools for Visual Studio v1.89.189172026年5月27日
機能
  • Smarter Code Completion:
    • Starred Suggestions: The editor now highlights the most likely completion candidates with a star and automatically prioritizes them at the top of the list. This lets you find the right symbol faster with less typing, provides smarter IntelliSense based on context and probability, and it adapts to your workflow without changing it.
  • Deeper Code Intelligence and Accuracy:
    • This release significantly improves how the editor understands your code, especially in complex and modern PHP patterns.
    • Highlights include:
      • Better handling of closures, lambdas, and indirect function calls.
      • Improved generic templates, even in nested contexts.
      • Smarter attribute-aware completion (only valid attribute classes suggested).
      • More precise PHPDoc interpretation, including optional parameters.
      • Detection of subtle issues like argument conflicts with spread operators.
    • This provides fewer false positives, earlier detection of real issues, and better suggestions in advanced codebases.
  • More Powerful Code Actions and Fixes:
    • Introduced new and improved code actions that help you write cleaner, more modern PHP with less effort.
    • New capabilities:
      • Add missing parameter type hints instantly.
      • Automatically simplify spread operators.
      • Modernize code with transformations like clone → clone with.
      • Improved fixes for tricky override and signature issues.
    • This reduces boilerplate and manual edits, keeps your codebase clean and consistent, and allows you to refactor faster with confidence.
  • Smarter Navigation - Even Inside Strings:
    • Navigation and symbol resolution have been enhanced in places where most tools struggle - like string-based references.
    • This allows you to navigate seamlessly across dynamic patterns, provides better support for reflection-heavy and framework-driven code, and allows the faster understanding of unfamiliar codebases.
  • New Auto-Import Option:
    • In Visual Studio Options - Text Editor - PHP - IntelliSense, pick Auto-import "use" with grouping.
    • The editor will create use groups whenever it makes sense.
  • Improved Validation for Dynamic Code:
    • Added parameter validation for closures and indirect calls, catching mistakes earlier.
    • This grants immediate feedback on incorrect arguments, better reliability in dynamic and functional patterns, and more confidence when working with advanced constructs.
  • Laravel and Ecosystem Enhancements:
    • Smarter IntelliSense for controllers, Livewire, and storage APIs.
    • Better type inference in testing (Pest, Laravel helpers).
    • More accurate framework-specific completions and navigation.
    • This provides a framework-aware coding experience, less guesswork, more flow, and higher productivity in real-world projects.
  • A More Resilient Editing Experience:
    • A major step forward: the better implementation of an error-tolerant parser.
    • The editor can continue providing IntelliSense and analysis even when your code is incomplete or temporarily broken.
    • This means fewer interruptions while typing, better support during refactoring or drafting, and IntelliSense that doesn't "give up" on invalid code.
  • Polished, Consistent, and Reliable:
    • Beyond the major features, this release includes a broad set of improvements that make everything feel tighter:
      • More consistent diagnostics aligned with real-world tooling.
      • Cleaner formatting behavior across edge cases.
      • Numerous fixes in Laravel, Blade, traits, lambdas, and more.
      • Improved handling of modern PHP features like PHP 8.5 additions.
PHP Tools for Visual Studio v1.89.187352026年4月7日
機能
  • Smarter Code Completion:
    • Added Starred Suggestions:
      • The editor now highlights the most likely completion candidates with a star icon and automatically prioritizes them at the top of the list.
      • Find the right symbol faster with less typing.
      • Smarter IntelliSense based on context and probability.
  • Deeper Code Intelligence & Accuracy:
    • Improves how the editor understands your code - especially in complex and modern PHP patterns:
      • Better handling of closures, lambdas, and indirect function calls.
      • Improved generic templates, even in nested contexts.
      • Smarter attribute-aware completion (only valid attribute classes suggested).
      • More precise PHPDoc interpretation, including optional parameters.
      • Detection of subtle issues like argument conflicts with spread operators.
      • Fewer false positives.
      • Earlier detection of real issues.
      • Better suggestions in advanced codebases.
  • More Powerful Code Actions & Fixes:
    • Introduced new and improved code actions that help you write cleaner, more modern PHP with less effort.
      • Add missing parameter type hints instantly.
      • Automatically simplify spread operators.
      • Modernize code with transformations like clone -> clone with.
      • Improved fixes for tricky override and signature issues.
      • Reduce boilerplate and manual edits.
      • Keep your codebase clean and consistent.
      • Refactor faster with confidence.
  • Smarter Navigation:
    • Navigation and symbol resolution have been enhanced in places where most tools struggle - like string-based references:
      • The editor now correctly resolves "show" as a method name and navigates to it upon Ctrl+Click.
      • Navigate seamlessly across dynamic patterns.
      • Better support for reflection-heavy and framework-driven code.
      • Faster understanding of unfamiliar codebases.
  • New Auto-Import Option:
    • In Visual Studio Options - Text Editor - PHP- IntelliSense, pick Auto-import "use" with grouping.
  • Improved Validation for Dynamic Code:
    • Added parameter validation for closures and indirect calls, catching mistakes earlier:
      • Immediate feedback on incorrect arguments.
      • Better reliability in dynamic and functional patterns.
      • More confidence when working with advanced constructs.
  • Laravel & Ecosystem Enhancements:
    • Smarter IntelliSense for controllers, Livewire, and storage APIs.
    • Better type inference in testing (Pest, Laravel helpers).
    • More accurate framework-specific completions and navigation.
    • Framework-aware coding experience.
    • Higher productivity in real-world projects.
  • A More Resilient Editing Experience:
    • The editor can now continue providing IntelliSense and analysis even when your code is incomplete or temporarily broken:
      • Fewer interruptions while typing.
      • Better support during refactoring or drafting.
      • IntelliSense that doesn’t “give up” on invalid code.
  • Polished, Consistent, and Reliable Improvements:
    • More consistent diagnostics aligned with real-world tooling.
    • Cleaner formatting behavior across edge cases.
    • Numerous fixes in Laravel, Blade, traits, lambdas, and more.
    • Improved handling of modern PHP features like PHP 8.5 additions.
PHP Tools for Visual Studio v1.88.184502026年2月4日
機能
  • PHP Language and Syntax Support:
    • Added support for PHP 8.5 clone used as a function with the new syntax and an optional argument.
    • Added support for PHP 8.0 dereferenceable string syntax.
    • The empty-string type hint is now fully recognized.
  • Type Analysis and Code Diagnostics:
    • Improved type inference for is_numeric().
    • Added a diagnostic for always-false strict comparisons.
    • Made deprecation checks for legacy constructors more detailed.
    • Improved override checks for enum definitions with complex inheritance hierarchies.
    • Improved unknown-type checks for union and intersection types in typed properties.
    • Unused function declarations are no longer reported for __construct and other magic methods.
  • Static Analysis Annotations and Suppression:
    • The @suppress (or @suppresswarnings) tag now recognizes selected PHPMD codes.
    • Support for @psalm-assert-if-true and @psalm-assert-if-false.
    • Support for @phpstan-assert and @psalm-assert with type hints prefixed by =, as used by PHPUnit's assertInstanceOf().
    • The @phpstan-ignore-line annotation is now respected.
  • Refactoring, Code Actions and Formatting:
    • Added new quick refactoring to replace array_merge() with array spread syntax.
    • Added new quick refactoring to clean up unnecessary parentheses around new expressions in PHP ≥ 8.4.
    • Added new quick refactoring to convert anonymous functions into the new callable syntax.
  • IntelliSense and Code Completion:
    • Improved completion of variable names inside the compact() function.
    • Completion of array keys when defining arrays inside function calls with structured array parameter hints.
  • Framework and Tooling Support:
    • Improved library support for CodeIgniter 3 projects.
    • Enhanced CI3 support by adding dynamic properties to CI_Controller based on loaded libraries.
  • Testing and Documentation:
    • Added inline PestPHP test case runner support.
    • Updated multi-language PHP manual.
  • Diagnostics for Unoptimized Special Compiler Functions:
    • Added new diagnostic PHP6616 reports calls to special compiler-optimized functions that are not imported into the current scope and therefore cannot be translated into more efficient opcodes.
修正
  • PHP Language and Syntax Support:
    • Fixed syntax errors involving Echo used as part of a namespace name.
  • Type Analysis and Code Diagnostics:
    • Fixed issue to correctly resolve multiple negative @phpstan-assert-if-* annotations using the empty-string type hint.
    • Fixed a false warning when accessing an array item of a structured array type after it has been modified.
    • Fixed a false deprecation warning for ReflectionMethod::__construct().
    • Fixed false errors when using member fields or anonymous functions in constant expressions.
    • Fixed an invalid "unnecessary parentheses" hint in and / or conditions.
    • Fixed incorrect code flow expansion caused by @phpstan-assert.
  • Refactoring, Code Actions and Formatting:
    • Fixed quick fixes inside attributes.
    • Fixed a code action that incorrectly converted code to an arrow function containing the object operator (->).
    • Fixed the Align Consecutive Assignments feature so it now works correctly inside closures and anonymous functions.
    • Fixed issue so that arrow functions (fn) are no longer suggested inside constant expressions.
    • PSR-4 class name fixes are no longer suggested when the file name is not a valid class identifier.
  • IntelliSense and Code Completion:
    • Auto-import now respects existing use groupings and adds new imports into the appropriate group.
    • Fixed issue so that references to methods defined in trait adaptation blocks, including renamed methods, are correctly resolved.
  • Framework and Tooling Support:
    • Fixed broken type inference when a method in a Composer package returns self but is only annotated in a base interface.
    • Respects generated _ide_helper, _laravel_idea, and _laravel_ide files in diagnostics.