PHP Tools for Visual Studio Lançamentos

Veja o que há de novo em cada versão, com detalhes sobre recursos, melhorias e problemas solucionados.

jan.
fev.
mar.
abr.
mai.
jun.
jul.
ago.
set.
out.
nov.
dez.
PHP Tools for Visual Studio v1.90.19157Versão principal11 de ago. de 2026
Recursos
  • Fast Code Completion for Large Projects:
    • Re-implemented code completion integration into Visual Studio to make it significantly faster by taking advantage of multi-core CPUs.
    • The completion list now appears almost instantly, with little to no delay while typing.
    • This was rarely noticeable in regular projects, but makes a significant difference in large projects with 10,000, 50,000, or even more classes.
    • Code completion now remains fast and responsive even in these large codebases.
  • Fully Qualified Name Completion:
    • When you start typing a backslash \, code completion lists all symbols under the namespace you have entered so far.
    • Confirming a suggestion inserts the fully qualified name directly, without adding imports or aliases.
    • This provides a convenient way to explicitly use the fully qualified name of a class or function wherever appropriate.
  • Code Completion Shows Deprecations:
    • Code completion now indicates deprecated and removed symbols with a warning icon, based on the PHP version configured for your project.
    • This is particularly useful when a function has multiple overloads and only some of them are deprecated.
  • New .EditorConfig Settings:
    • New settings are available for customizing PHP formatting under Tools / Options, Text Editor / PHP / Formatting.
    • Enable .EditorConfig Support (enabled by default) reads formatting options from the .editorconfig file in your project and applies the settings relevant to the current file. The corresponding directive names for individual formatting rules are listed in the formatting documentation.
    • Enable IntelliJ IDEA Settings (enabled by default) additionally recognizes formatting settings imported from IntelliJ IDEA editors using ij_php_*** directives. This makes it easier to transfer customized formatting settings from IntelliJ IDEA to .editorconfig.
  • Long Paths Support:
    • The internals of PHP Tools have been updated to properly handle long directory names and file paths.
    • This is especially useful when working with projects located deep within a directory hierarchy or when Composer dependencies contain deeply nested packages.
    • Previously, PHP files with paths exceeding 260 characters could be ignored and therefore not indexed by IntelliSense.
  • Composer Dependencies Tree:
    • A new Composer tree is available under the project's Dependencies node in Visual Studio 2026 and the latest updates of Visual Studio 2022.
    • The tree lets you inspect installed Composer dependencies and their properties, as well as update or remove existing packages.
  • Diagnostics:
    • The diagnostics engine has received a number of improvements to provide more accurate analysis and more useful code fixes.
    • PHP Tools now reports additional issues in callable syntax, including invalid function names, unknown functions, and invalid indirect calls through __invoke.
    • It also provides better diagnostics for property access, instanceof expressions, variadic parameters, and other PHP language constructs.
    • Code fixes have also been expanded for unknown types, including suggestions for implementing missing interface properties and generating PHPDoc type information.
    • Deprecation diagnostics can now use replacement information provided by the #[Deprecated] attribute and PHP stubs.
  • Type Inference:
    • Type inference has been improved in several areas, resulting in more precise analysis and fewer false-positive diagnostics.
    • PHP Tools now better understands conditional return types, arithmetic involving BCMath functions, numeric-string values and their implicit conversions, as well as the types returned by functions such as array_first().
    • Unused underscore variables are also handled more appropriately during type analysis.
  • Snippets:
    • Snippets have been expanded and improved.
    • A new snippet makes it easy to insert throw new ... statements (thr snippet), while function snippets now follow the familiar conventions used by PhpStorm.
    • Insert snippet with the [TAB] key.
    • Snippet previews are also displayed in tooltips, making it easier to understand what will be inserted before confirming a suggestion.
  • Editor:
    • The editor and IntelliSense experience includes numerous smaller improvements.
    • Inlay hints can now show parameter names for indirect function calls, while code actions for implementing members also take abstract properties into account.
    • PHPDoc parsing and type simplification have been improved, and navigation and tooltips now provide better support for array-syntax callables and special PHP constructs.
    • WordPress support has also been enhanced with improved hook discovery and navigation, references to WordPress hook names, better completion and documentation links for WordPress functions and classes, and improved support for structured WordPress types.
    • Completion can now use #[ExpectedValues] attributes to suggest valid argument values, and IntelliSense provides more precise information for $GLOBALS access and other well-known string values.
  • Smaller Improvements:
    • Various code actions have been improved, including use statements, parentheses, is_null(), and formatting-related actions.
    • Smart indentation has been improved for attributes.
    • PHPDoc handling has also been improved, including better recognition of Object types, tentative types, @property definitions, and parameter annotations.
    • The parser has been updated with improved PCRE support and more accurate error positions for certain regular expressions.
Correções
  • CodeLens references now correctly handle namespaced global functions and property positions.
  • PSR-12 formatting now handles blank lines more accurately.
  • Navigation and reference detection have been fixed for constructors, Laravel controller methods, WordPress-related code, and other PHP constructs.
  • Additional fixes improve completion filtering, visibility keyword handling, and various edge cases throughout IntelliSense and code analysis.
PHP Tools for Visual Studio v1.89.1891727 de mai. de 2026
Recursos
  • 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.187357 de abr. de 2026
Recursos
  • 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.184504 de fev. de 2026
Recursos
  • 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.
Correções
  • 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.