intelephense 1.11.0 → 1.11.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -1
- package/lib/intelephense.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## [1.11.1 - 2024-07-02]
|
|
4
|
+
|
|
5
|
+
#### Changed
|
|
6
|
+
- When a trait has an annotated or abstract method and the real method definition is supplied by a base class, then go to definition will now go to the base class definition instead of the trait method declaration.
|
|
7
|
+
- Go to implementations now includes implementations provided by a trait where a class both uses the trait and implements the interface.
|
|
8
|
+
|
|
9
|
+
#### Fixed
|
|
10
|
+
- False diagnostic when type `class-string` passed to `string` constraint.
|
|
11
|
+
- Setting `completion.suggestObjectOperatorStaticMethods` should be `intelephense.completion.suggestObjectOperatorStaticMethods`.
|
|
12
|
+
- Crash when parsing incomplete phpdoc type with template type args.
|
|
13
|
+
- Crash when encountering `trigger_error` call with `E_USER_ERROR` as argument.
|
|
14
|
+
- Conditional return types with default parameter argument.
|
|
15
|
+
|
|
3
16
|
## [1.11.0 - 2024-06-29]
|
|
4
17
|
|
|
5
18
|
#### Added
|
|
@@ -18,7 +31,7 @@
|
|
|
18
31
|
- Hover on array shape string keys.
|
|
19
32
|
- New `intelephense.diagnostics.relaxedTypeCheck` setting. Defaults to `true` (previous version behaviour). This setting makes type checking less thorough by allowing contravariant (wider) types to also satisfy a type constraint. This is useful for projects that may have incomplete or innacurate typings. Set to `false` for more thorough type checks. When this setting is `true`, the `noMixedTypeCheck` setting is ignored.
|
|
20
33
|
- New `intelephense.diagnostics.noMixedTypeCheck` setting. Defaults to `true` (previous version behaviour). This setting turns off type checking for the `mixed` type. This is useful for projects that may have incomplete or innacurate typings. Set to `false` to make type checking more thorough by not allowing `mixed` to satisy any type constraint. This setting has no effect when `relaxedTypeCheck` is `true`.
|
|
21
|
-
- New `completion.suggestObjectOperatorStaticMethods` setting. PHP permits the calling of static methods using the object operator eg `$obj->myStaticMethod();`. If you would prefer not to have static methods suggested in this context then set this value to `false`. Defaults to `true`.
|
|
34
|
+
- New `intelephense.completion.suggestObjectOperatorStaticMethods` setting. PHP permits the calling of static methods using the object operator eg `$obj->myStaticMethod();`. If you would prefer not to have static methods suggested in this context then set this value to `false`. Defaults to `true`.
|
|
22
35
|
- Parameter types are now injected into inline closure arguments to functions from the corresponding parameter annotated callable type. For example declaring `function doCallback($myCallback) {}` with annotation `/** @param \Closure(Foo $param): void $myCallback **/` will result in type hints for `$param` inside `doCallback(function ($param) { /* $param type is known */ });`
|
|
23
36
|
- Support `@var` annotated type above `define` constants.
|
|
24
37
|
|