📜 ⬆️ ⬇️

JetBrains WebIDE - fourth public build (# 470)

We continue our fight for the perfect IDE for PHP ^) The announcement of the previous build on Habré gave us a huge amount of information and pointed out the main directions for improvement. This time we focused on type deduction, (auto) addition and performance. By “type inference” is meant the definition of the types of variables, expressions and functions based on code analysis (and not PHPDOC @ annotations).

In this build we added:
- automatic deduction of return types of functions based on the analysis of return operators
- automatic detection of the actual properties of the class and their types by analyzing the designer code (see screenshots)
function analysis
constructor analysis
- autodetection of types of global variables without annotations
- full support for var and global annotations
- auto call additions after $ and ->
- additions inside PHPDOC @ tags (partially), $ variables (from the following declaration) and visible types
- hiding the __magic () methods by the first call (if there are other members of the class)
- restricted the addition inside catch () to subclasses of Exception

Productivity was improved as far as possible in the experimental version. As we approach the release, it will focus on.
')
Download Announcement Detailed list of changes

We invite everyone to try and continue the discussion :)

UPD: in this build a serious bug was found - the addition often does not work for classes not from the current file: (((already fixed - will be available next week.

Source: https://habr.com/ru/post/71097/


All Articles