From b43ff0ea85db8ddba34a2bedc33a6b64df4f9999 Mon Sep 17 00:00:00 2001 From: Sergey Patrikeev Date: Fri, 3 Nov 2017 21:27:16 +0300 Subject: [PATCH] Update the guide on available patterns and fix an existing problem description. --- reference_guide/api_changes_list.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/reference_guide/api_changes_list.md b/reference_guide/api_changes_list.md index 0a7ed4293..c50395a25 100644 --- a/reference_guide/api_changes_list.md +++ b/reference_guide/api_changes_list.md @@ -9,12 +9,20 @@ the first column is a problem pattern and the second column is a human-readable The following problem patterns are supported: package removed class removed + . method removed +. method return type changed from to +. method parameter type changed from to +. method visibility changed from to + . field removed +. field type changed from to +. field visibility changed from to + . abstract method added class moved to package -where is a fully-qualified name of the class, e.g. com.intellij.openapi.actionSystem.AnAction. +where is a fully-qualified name of the class, e.g. com.intellij.openapi.actionSystem.AnAction$InnerClass. NOTE: You are allowed to prettify the pattern using markdown-features: 1) code quotes: `org.example.Foo.methodName` @@ -43,7 +51,7 @@ NOTE: You are allowed to prettify the pattern using markdown-features: | Change | How to deal with it | |---------|---------------------| -| `com.jetbrains.php.lang.psi.elements.Function.getReturnType()` now returns `PhpReturnType` instead of `PsiElement` | Before method had been returning a `com.jetbrains.php.lang.psi.elements.ClassReference`. Now method returns `com.jetbrains.php.lang.psi.elements.PhpReturnType`. Method `ReturnType.getClassReference()` can be used if you need just a `ClassReference`. If you need to get the `PhpType`, use `com.jetbrains.php.lang.psi.elements.Function.getReturnType.getType()` method instead | +| `com.jetbrains.php.lang.psi.elements.Function.getReturnType()` method return type changed from `PsiElement` to `PhpReturnType` | Before method had been returning a `com.jetbrains.php.lang.psi.elements.ClassReference`. Now method returns `com.jetbrains.php.lang.psi.elements.PhpReturnType`. Method `ReturnType.getClassReference()` can be used if you need just a `ClassReference`. If you need to get the `PhpType`, use `com.jetbrains.php.lang.psi.elements.Function.getReturnType.getType()` method instead | ## Changes in IntelliJ Platform 2016.3