intelephense 1.8.2 → 1.9.0-next.2
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 +37 -0
- package/lib/intelephense.js +1 -1
- package/lib/lib.dom.d.ts +3757 -5391
- package/lib/lib.dom.iterable.d.ts +56 -66
- package/lib/lib.es2015.collection.d.ts +62 -1
- package/lib/lib.es2015.core.d.ts +65 -23
- package/lib/lib.es2015.iterable.d.ts +6 -13
- package/lib/lib.es2015.promise.d.ts +11 -78
- package/lib/lib.es2015.proxy.d.ts +102 -13
- package/lib/lib.es2015.reflect.d.ts +118 -7
- package/lib/lib.es2015.symbol.wellknown.d.ts +13 -13
- package/lib/lib.es2017.intl.d.ts +16 -1
- package/lib/lib.es2018.asynciterable.d.ts +1 -1
- package/lib/lib.es2018.intl.d.ts +23 -11
- package/lib/lib.es2019.d.ts +1 -0
- package/lib/lib.es2019.intl.d.ts +25 -0
- package/lib/lib.es2019.string.d.ts +8 -2
- package/lib/lib.es2020.bigint.d.ts +10 -8
- package/lib/lib.es2020.d.ts +2 -0
- package/lib/lib.es2020.date.d.ts +44 -0
- package/lib/lib.es2020.intl.d.ts +254 -121
- package/lib/lib.es2020.number.d.ts +30 -0
- package/lib/lib.es2020.promise.d.ts +2 -3
- package/lib/lib.es2020.symbol.wellknown.d.ts +1 -1
- package/lib/lib.es2021.d.ts +25 -0
- package/lib/lib.es2021.full.d.ts +25 -0
- package/lib/lib.es2021.intl.d.ts +154 -0
- package/lib/lib.es2021.promise.d.ts +50 -0
- package/lib/lib.es2021.string.d.ts +35 -0
- package/lib/lib.es2021.weakref.d.ts +75 -0
- package/lib/lib.es2022.array.d.ts +123 -0
- package/lib/lib.es2022.d.ts +27 -0
- package/lib/lib.es2022.error.d.ts +75 -0
- package/lib/lib.es2022.full.d.ts +25 -0
- package/lib/lib.es2022.intl.d.ts +111 -0
- package/lib/lib.es2022.object.d.ts +28 -0
- package/lib/lib.es2022.sharedmemory.d.ts +27 -0
- package/lib/lib.es2022.string.d.ts +27 -0
- package/lib/lib.es5.d.ts +205 -102
- package/lib/lib.esnext.d.ts +1 -4
- package/lib/lib.esnext.intl.d.ts +7 -9
- package/lib/lib.esnext.promise.d.ts +26 -26
- package/lib/lib.esnext.string.d.ts +18 -18
- package/lib/lib.esnext.weakref.d.ts +58 -58
- package/lib/lib.webworker.d.ts +1500 -1375
- package/lib/lib.webworker.iterable.d.ts +41 -32
- package/lib/stub/Core/Core.php +17 -11
- package/lib/stub/Core/Core_c.php +123 -34
- package/lib/stub/Core/Core_d.php +7 -0
- package/lib/stub/FFI/.phpstorm.meta.php +1 -1
- package/lib/stub/FFI/FFI.php +3 -3
- package/lib/stub/LuaSandbox/LuaSandbox.php +0 -3
- package/lib/stub/PDO/PDO.php +54 -13
- package/lib/stub/Phar/Phar.php +15 -7
- package/lib/stub/Reflection/Reflection.php +1 -1
- package/lib/stub/Reflection/ReflectionAttribute.php +3 -1
- package/lib/stub/Reflection/ReflectionClass.php +33 -8
- package/lib/stub/Reflection/ReflectionClassConstant.php +13 -2
- package/lib/stub/Reflection/ReflectionEnum.php +4 -1
- package/lib/stub/Reflection/ReflectionEnumBackedCase.php +1 -0
- package/lib/stub/Reflection/ReflectionEnumUnitCase.php +2 -0
- package/lib/stub/Reflection/ReflectionExtension.php +11 -0
- package/lib/stub/Reflection/ReflectionFunction.php +5 -1
- package/lib/stub/Reflection/ReflectionFunctionAbstract.php +26 -2
- package/lib/stub/Reflection/ReflectionMethod.php +8 -2
- package/lib/stub/Reflection/ReflectionParameter.php +15 -2
- package/lib/stub/Reflection/ReflectionProperty.php +18 -11
- package/lib/stub/Reflection/ReflectionType.php +10 -0
- package/lib/stub/Reflection/ReflectionZendExtension.php +12 -0
- package/lib/stub/SPL/SPL.php +32 -33
- package/lib/stub/SPL/SPL_c1.php +35 -18
- package/lib/stub/SPL/SPL_f.php +2 -2
- package/lib/stub/SQLite/SQLite.php +4 -8
- package/lib/stub/SimpleXML/SimpleXML.php +7 -5
- package/lib/stub/Zend OPcache/OPcache.php +16 -0
- package/lib/stub/aerospike/aerospike.php +171 -0
- package/lib/stub/amqp/amqp.php +8 -48
- package/lib/stub/ast/ast.php +3 -0
- package/lib/stub/bcmath/bcmath.php +14 -14
- package/lib/stub/blackfire/blackfire.php +16 -2
- package/lib/stub/bz2/bz2.php +18 -6
- package/lib/stub/calendar/calendar.php +16 -3
- package/lib/stub/couchbase/couchbase.php +602 -2
- package/lib/stub/couchbase_v2/couchbase.php +10 -3
- package/lib/stub/curl/curl.php +262 -26
- package/lib/stub/curl/curl_d.php +402 -12
- package/lib/stub/date/date.php +121 -9
- package/lib/stub/date/date_c.php +97 -14
- package/lib/stub/date/date_d.php +8 -0
- package/lib/stub/dba/dba.php +20 -4
- package/lib/stub/decimal/decimal.php +0 -2
- package/lib/stub/dio/dio.php +120 -50
- package/lib/stub/dio/dio_d.php +138 -0
- package/lib/stub/dom/dom_c.php +63 -31
- package/lib/stub/ds/ds.php +64 -1
- package/lib/stub/eio/eio.php +665 -0
- package/lib/stub/elastic_apm/elastic_apm.php +940 -0
- package/lib/stub/event/event.php +0 -4
- package/lib/stub/fileinfo/fileinfo.php +13 -8
- package/lib/stub/filter/filter.php +11 -4
- package/lib/stub/fpm/fpm.php +2 -2
- package/lib/stub/gd/gd.php +72 -8
- package/lib/stub/gearman/gearman.php +12 -12
- package/lib/stub/gmagick/gmagick.php +0 -32
- package/lib/stub/gmp/gmp.php +9 -3
- package/lib/stub/gnupg/gnupg.php +5 -0
- package/lib/stub/hash/hash.php +10 -10
- package/lib/stub/http/http.php +0 -4
- package/lib/stub/http/http3.php +361 -0
- package/lib/stub/iconv/iconv.php +18 -16
- package/lib/stub/imagick/imagick.php +1 -1
- package/lib/stub/imap/imap.php +28 -13
- package/lib/stub/interbase/interbase.php +202 -0
- package/lib/stub/intl/IntlChar.php +5 -1
- package/lib/stub/intl/intl.php +156 -79
- package/lib/stub/json/json.php +7 -2
- package/lib/stub/judy/judy.php +4 -0
- package/lib/stub/ldap/ldap.php +101 -67
- package/lib/stub/libxml/libxml.php +22 -2
- package/lib/stub/mbstring/mbstring.php +43 -16
- package/lib/stub/mcrypt/mcrypt.php +233 -1
- package/lib/stub/memcache/memcache.php +1 -0
- package/lib/stub/memcached/memcached.php +47 -8
- package/lib/stub/meta/.phpstorm.meta.php +16 -7
- package/lib/stub/meta/attributes/ArrayShape.php +1 -1
- package/lib/stub/meta/attributes/Deprecated.php +2 -1
- package/lib/stub/meta/attributes/NoReturn.php +1 -0
- package/lib/stub/meta/hash_algo/.phpstorm.meta.php +56 -0
- package/lib/stub/meta/locales/.phpstorm.meta.php +211 -0
- package/lib/stub/meta/mockery/.phpstorm.meta.php +11 -0
- package/lib/stub/meta/phpunit/.phpstorm.meta.php +73 -0
- package/lib/stub/meta/psr/log/.phpstorm.meta.php +5 -0
- package/lib/stub/mongo/mongo.php +11 -2
- package/lib/stub/mongodb/mongodb.php +12 -1
- package/lib/stub/mysql/mysql.php +4 -2
- package/lib/stub/mysqli/mysqli.php +301 -191
- package/lib/stub/newrelic/newrelic.php +8 -7
- package/lib/stub/oci8/oci8.php +52 -0
- package/lib/stub/odbc/odbc.php +2 -0
- package/lib/stub/openssl/openssl.php +91 -25
- package/lib/stub/pcntl/pcntl.php +23 -12
- package/lib/stub/pcre/pcre.php +7 -5
- package/lib/stub/pdflib/PDFlib.php +28 -8
- package/lib/stub/pgsql/pgsql.php +548 -298
- package/lib/stub/pgsql/pgsql_c.php +24 -0
- package/lib/stub/posix/posix.php +34 -0
- package/lib/stub/pq/pq.php +347 -0
- package/lib/stub/pspell/pspell.php +60 -55
- package/lib/stub/pspell/pspell_c.php +15 -0
- package/lib/stub/random/random.php +233 -0
- package/lib/stub/rar/rar.php +63 -0
- package/lib/stub/rdkafka/RdKafka/ConsumerTopic.php +1 -1
- package/lib/stub/rdkafka/RdKafka/KafkaConsumer.php +1 -1
- package/lib/stub/rdkafka/RdKafka/Message.php +0 -1
- package/lib/stub/rdkafka/RdKafka.php +1 -1
- package/lib/stub/readline/readline.php +17 -0
- package/lib/stub/recode/recode.php +3 -0
- package/lib/stub/redis/Redis.php +901 -557
- package/lib/stub/redis/RedisArray.php +210 -0
- package/lib/stub/redis/RedisCluster.php +16 -15
- package/lib/stub/session/session.php +2 -1
- package/lib/stub/simple_kafka_client/SimpleKafkaClient/Configuration.php +55 -0
- package/lib/stub/simple_kafka_client/SimpleKafkaClient/Consumer.php +84 -0
- package/lib/stub/simple_kafka_client/SimpleKafkaClient/Exception.php +6 -0
- package/lib/stub/simple_kafka_client/SimpleKafkaClient/KafkaErrorException.php +33 -0
- package/lib/stub/simple_kafka_client/SimpleKafkaClient/Message.php +26 -0
- package/lib/stub/simple_kafka_client/SimpleKafkaClient/Metadata/Broker.php +22 -0
- package/lib/stub/simple_kafka_client/SimpleKafkaClient/Metadata/Collection.php +37 -0
- package/lib/stub/simple_kafka_client/SimpleKafkaClient/Metadata/Partition.php +32 -0
- package/lib/stub/simple_kafka_client/SimpleKafkaClient/Metadata/Topic.php +22 -0
- package/lib/stub/simple_kafka_client/SimpleKafkaClient/Metadata.php +31 -0
- package/lib/stub/simple_kafka_client/SimpleKafkaClient/Producer.php +58 -0
- package/lib/stub/simple_kafka_client/SimpleKafkaClient/Topic.php +42 -0
- package/lib/stub/simple_kafka_client/SimpleKafkaClient/TopicPartition.php +51 -0
- package/lib/stub/simple_kafka_client/SimpleKafkaClient.php +61 -0
- package/lib/stub/simple_kafka_client/functions.php +40 -0
- package/lib/stub/snappy/snappy/snappy.php +17 -0
- package/lib/stub/snmp/snmp.php +1 -1
- package/lib/stub/soap/soap.php +7 -3
- package/lib/stub/sockets/sockets.php +167 -8
- package/lib/stub/sodium/sodium.php +13 -2
- package/lib/stub/sqlite3/sqlite3.php +31 -13
- package/lib/stub/standard/_standard_manual.php +2 -2
- package/lib/stub/standard/_types.php +3 -3
- package/lib/stub/standard/basic.php +64 -28
- package/lib/stub/standard/password.php +1 -1
- package/lib/stub/standard/standard_0.php +88 -45
- package/lib/stub/standard/standard_1.php +32 -21
- package/lib/stub/standard/standard_2.php +12 -76
- package/lib/stub/standard/standard_3.php +23 -15
- package/lib/stub/standard/standard_4.php +45 -18
- package/lib/stub/standard/standard_5.php +8 -4
- package/lib/stub/standard/standard_6.php +51 -35
- package/lib/stub/standard/standard_7.php +54 -19
- package/lib/stub/standard/standard_8.php +50 -30
- package/lib/stub/standard/standard_9.php +45 -29
- package/lib/stub/standard/standard_defines.php +86 -10
- package/lib/stub/superglobals/_superglobals.php +9 -1
- package/lib/stub/svm/SVM.php +21 -0
- package/lib/stub/svm/SVMModel.php +9 -0
- package/lib/stub/svn/svn.php +41 -0
- package/lib/stub/swoole/Swoole/Atomic/Long.php +32 -0
- package/lib/stub/swoole/Swoole/Atomic.php +42 -0
- package/lib/stub/swoole/Swoole/Client/Exception.php +7 -0
- package/lib/stub/swoole/Swoole/Client.php +118 -0
- package/lib/stub/swoole/Swoole/Connection/Iterator.php +42 -0
- package/lib/stub/swoole/Swoole/Coroutine/Channel.php +51 -0
- package/lib/stub/swoole/Swoole/Coroutine/Client.php +120 -0
- package/lib/stub/swoole/Swoole/Coroutine/Context.php +11 -0
- package/lib/stub/swoole/Swoole/Coroutine/Curl/Exception.php +7 -0
- package/lib/stub/swoole/Swoole/Coroutine/Http/Client/Exception.php +7 -0
- package/lib/stub/swoole/Swoole/Coroutine/Http/Client.php +188 -0
- package/lib/stub/swoole/Swoole/Coroutine/Http/Server.php +46 -0
- package/lib/stub/swoole/Swoole/Coroutine/Http2/Client/Exception.php +7 -0
- package/lib/stub/swoole/Swoole/Coroutine/Http2/Client.php +87 -0
- package/lib/stub/swoole/Swoole/Coroutine/Iterator.php +11 -0
- package/lib/stub/swoole/Swoole/Coroutine/MySQL/Exception.php +7 -0
- package/lib/stub/swoole/Swoole/Coroutine/MySQL/Statement.php +50 -0
- package/lib/stub/swoole/Swoole/Coroutine/MySQL.php +102 -0
- package/lib/stub/swoole/Swoole/Coroutine/Redis.php +1295 -0
- package/lib/stub/swoole/Swoole/Coroutine/Scheduler.php +54 -0
- package/lib/stub/swoole/Swoole/Coroutine/Socket/Exception.php +7 -0
- package/lib/stub/swoole/Swoole/Coroutine/Socket.php +205 -0
- package/lib/stub/swoole/Swoole/Coroutine/System.php +117 -0
- package/lib/stub/swoole/Swoole/Coroutine.php +268 -0
- package/lib/stub/swoole/Swoole/Error.php +7 -0
- package/lib/stub/swoole/Swoole/Event.php +73 -0
- package/lib/stub/swoole/Swoole/Exception.php +7 -0
- package/lib/stub/swoole/Swoole/ExitException.php +21 -0
- package/lib/stub/swoole/Swoole/Http/Request.php +68 -0
- package/lib/stub/swoole/Swoole/Http/Response.php +177 -0
- package/lib/stub/swoole/Swoole/Http/Server.php +7 -0
- package/lib/stub/swoole/Swoole/Http2/Request.php +15 -0
- package/lib/stub/swoole/Swoole/Http2/Response.php +17 -0
- package/lib/stub/swoole/Swoole/Lock.php +49 -0
- package/lib/stub/swoole/Swoole/Process/Pool.php +66 -0
- package/lib/stub/swoole/Swoole/Process.php +181 -0
- package/lib/stub/swoole/Swoole/Redis/Server.php +93 -0
- package/lib/stub/swoole/Swoole/Runtime.php +36 -0
- package/lib/stub/swoole/Swoole/Server/Event.php +13 -0
- package/lib/stub/swoole/Swoole/Server/Packet.php +14 -0
- package/lib/stub/swoole/Swoole/Server/PipeMessage.php +12 -0
- package/lib/stub/swoole/Swoole/Server/Port.php +52 -0
- package/lib/stub/swoole/Swoole/Server/StatusInfo.php +14 -0
- package/lib/stub/swoole/Swoole/Server/Task.php +26 -0
- package/lib/stub/swoole/Swoole/Server/TaskResult.php +13 -0
- package/lib/stub/swoole/Swoole/Server.php +433 -0
- package/lib/stub/swoole/Swoole/Table.php +202 -0
- package/lib/stub/swoole/Swoole/Timer/Iterator.php +10 -0
- package/lib/stub/swoole/Swoole/Timer.php +53 -0
- package/lib/stub/swoole/Swoole/WebSocket/CloseFrame.php +12 -0
- package/lib/stub/swoole/Swoole/WebSocket/Frame.php +30 -0
- package/lib/stub/swoole/Swoole/WebSocket/Server.php +45 -0
- package/lib/stub/swoole/aliases.php +51 -0
- package/lib/stub/swoole/constants.php +397 -0
- package/lib/stub/swoole/functions.php +414 -0
- package/lib/stub/sysvmsg/sysvmsg.php +13 -0
- package/lib/stub/tidy/tidy.php +8 -0
- package/lib/stub/tokenizer/tokenizer.php +10 -1
- package/lib/stub/uploadprogress/uploadprogress.php +21 -0
- package/lib/stub/v8js/v8js.php +4 -2
- package/lib/stub/wddx/wddx.php +6 -0
- package/lib/stub/xlswriter/xlswriter.php +0 -6
- package/lib/stub/xml/xml.php +20 -10
- package/lib/stub/xmlreader/xmlreader.php +27 -3
- package/lib/stub/yaf/yaf.php +56 -0
- package/lib/stub/yaf/yaf_namespace.php +56 -0
- package/lib/stub/yar/yar.php +0 -1
- package/lib/stub/zend/zend.php +20 -0
- package/lib/stub/zip/zip.php +7 -4
- package/lib/stub/zlib/zlib.php +6 -6
- package/lib/stub/zmq/zmq.php +89 -0
- package/lib/stub/zookeeper/zookeeper.php +2 -6
- package/package.json +37 -37
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,42 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## [1.9.0 - 2023-01-01]
|
|
4
|
+
|
|
5
|
+
#### Added
|
|
6
|
+
- PHP 8.2 support.
|
|
7
|
+
- PHPDOC `@template` support.
|
|
8
|
+
- Handle non-standard PHPDOC types like `list`. Internally `list<Foo>` is treated as `Foo[]`.
|
|
9
|
+
- PHPDOC `callable(Foo $foo): Bar`, `\Closure(Foo): Bar` support. Variadic and default args are not supported in the short form.
|
|
10
|
+
- Added undefined property diagnostics. Can be disabled via the `intelephense.diagnostics.undefinedProperties` setting.
|
|
11
|
+
|
|
12
|
+
#### Changed
|
|
13
|
+
- Updated dependencies.
|
|
14
|
+
- Updated stubs.
|
|
15
|
+
- Signature help provider now returns null instead of empty signatures array as per LSP recommendations.
|
|
16
|
+
- composer.json `autoload.psr-4` settings used if available for file renames when renaming namespace.
|
|
17
|
+
- Added templated `array_map` stub in order to better infer return type.
|
|
18
|
+
|
|
19
|
+
#### Fixed
|
|
20
|
+
- Performance issue when workspace contains multiple symbols with same name.
|
|
21
|
+
- Various issues when `__halt_compiler` appears in file.
|
|
22
|
+
- False `never` return type when `die` used in logical expression.
|
|
23
|
+
- False undefined method when static used in union return type.
|
|
24
|
+
- Completion item documentation showing multiple times for namespace suggestions.
|
|
25
|
+
- Type inference for return type of closures.
|
|
26
|
+
- False unknown arg name when calling closure with named args.
|
|
27
|
+
- False unused imports with enum implements.
|
|
28
|
+
- False method compatibility error when overriding base method return type of self with static.
|
|
29
|
+
- False method compatibility errors when overriding core methods when targeting PHP versions < 8.1 .
|
|
30
|
+
- False undefined variable when variable declared as reference in anon function use clause where anon function is argument.
|
|
31
|
+
- Incorrect type inferred when variable appears in nested logical expressions.
|
|
32
|
+
- Type resolution when using `parent` keyword and `static` return types.
|
|
33
|
+
- Unused private methods not detected if they call self.
|
|
34
|
+
- False return type error when using `yield` in `for` expr.
|
|
35
|
+
- False duplicate symbol when importing same symbol in different namespace blocks of same name.
|
|
36
|
+
- Undefined symbol not reported when import exists in other namespace block of same name.
|
|
37
|
+
- False duplicate symbol when defined in match expr.
|
|
38
|
+
- Local rename of excluded/stub definition should be allowed.
|
|
39
|
+
|
|
3
40
|
## [1.8.2 - 2022-02-23]
|
|
4
41
|
|
|
5
42
|
#### Fixed
|