intelephense 1.6.2 → 1.8.0

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.
Files changed (356) hide show
  1. package/CHANGELOG.md +89 -0
  2. package/LICENSE.txt +12 -7
  3. package/lib/LICENSE.txt +12 -7
  4. package/lib/intelephense.js +1 -1
  5. package/lib/stub/Core/Core.php +190 -131
  6. package/lib/stub/Core/Core_c.php +332 -208
  7. package/lib/stub/Core/Core_d.php +92 -93
  8. package/lib/stub/Ev/Ev.php +256 -138
  9. package/lib/stub/FFI/.phpstorm.meta.php +113 -0
  10. package/lib/stub/FFI/FFI.php +492 -53
  11. package/lib/stub/LuaSandbox/LuaSandbox.php +298 -192
  12. package/lib/stub/PDO/PDO.php +1863 -1541
  13. package/lib/stub/Parle/ErrorInfo.php +0 -2
  14. package/lib/stub/Parle/Lexer.php +27 -23
  15. package/lib/stub/Parle/LexerException.php +1 -6
  16. package/lib/stub/Parle/Parser.php +31 -27
  17. package/lib/stub/Parle/ParserException.php +1 -5
  18. package/lib/stub/Parle/RLexer.php +26 -25
  19. package/lib/stub/Parle/RParser.php +28 -30
  20. package/lib/stub/Parle/Stack.php +4 -4
  21. package/lib/stub/Parle/Token.php +5 -4
  22. package/lib/stub/Phar/Phar.php +1223 -1116
  23. package/lib/stub/Reflection/Reflection.php +8 -7
  24. package/lib/stub/Reflection/ReflectionAttribute.php +20 -24
  25. package/lib/stub/Reflection/ReflectionClass.php +183 -182
  26. package/lib/stub/Reflection/ReflectionClassConstant.php +77 -47
  27. package/lib/stub/Reflection/ReflectionEnum.php +37 -0
  28. package/lib/stub/Reflection/ReflectionEnumBackedCase.php +12 -0
  29. package/lib/stub/Reflection/ReflectionEnumPureCase.php +7 -0
  30. package/lib/stub/Reflection/ReflectionEnumUnitCase.php +17 -0
  31. package/lib/stub/Reflection/ReflectionException.php +1 -3
  32. package/lib/stub/Reflection/ReflectionExtension.php +53 -50
  33. package/lib/stub/Reflection/ReflectionFiber.php +19 -0
  34. package/lib/stub/Reflection/ReflectionFunction.php +31 -29
  35. package/lib/stub/Reflection/ReflectionFunctionAbstract.php +115 -85
  36. package/lib/stub/Reflection/ReflectionGenerator.php +22 -24
  37. package/lib/stub/Reflection/ReflectionIntersectionType.php +13 -0
  38. package/lib/stub/Reflection/ReflectionMethod.php +91 -67
  39. package/lib/stub/Reflection/ReflectionNamedType.php +9 -7
  40. package/lib/stub/Reflection/ReflectionObject.php +7 -8
  41. package/lib/stub/Reflection/ReflectionParameter.php +92 -82
  42. package/lib/stub/Reflection/ReflectionProperty.php +130 -74
  43. package/lib/stub/Reflection/ReflectionReference.php +11 -12
  44. package/lib/stub/Reflection/ReflectionType.php +13 -14
  45. package/lib/stub/Reflection/ReflectionUnionType.php +4 -3
  46. package/lib/stub/Reflection/ReflectionZendExtension.php +33 -31
  47. package/lib/stub/Reflection/Reflector.php +2 -3
  48. package/lib/stub/SPL/SPL.php +540 -370
  49. package/lib/stub/SPL/SPL_c1.php +2303 -2042
  50. package/lib/stub/SPL/SPL_f.php +40 -34
  51. package/lib/stub/SQLite/SQLite.php +616 -610
  52. package/lib/stub/SaxonC/SaxonC.php +28 -29
  53. package/lib/stub/SimpleXML/SimpleXML.php +352 -285
  54. package/lib/stub/SplType/SplType.php +22 -16
  55. package/lib/stub/Zend OPcache/OPcache.php +12 -12
  56. package/lib/stub/ZendCache/ZendCache.php +14 -0
  57. package/lib/stub/ZendDebugger/ZendDebugger.php +6 -7
  58. package/lib/stub/ZendUtils/ZendUtils.php +6 -7
  59. package/lib/stub/aerospike/Bytes.php +2 -2
  60. package/lib/stub/aerospike/aerospike.php +280 -286
  61. package/lib/stub/amqp/amqp.php +223 -233
  62. package/lib/stub/apache/apache.php +15 -10
  63. package/lib/stub/apcu/apcu.php +120 -120
  64. package/lib/stub/ast/ast.php +482 -0
  65. package/lib/stub/bcmath/bcmath.php +101 -38
  66. package/lib/stub/blackfire/blackfire.php +16 -0
  67. package/lib/stub/bz2/bz2.php +29 -21
  68. package/lib/stub/calendar/calendar.php +56 -55
  69. package/lib/stub/cassandra/cassandra.php +641 -1883
  70. package/lib/stub/com_dotnet/com_dotnet.php +108 -112
  71. package/lib/stub/couchbase/couchbase.php +3288 -3367
  72. package/lib/stub/couchbase/toplevel.php +0 -13
  73. package/lib/stub/couchbase_v2/couchbase.php +3611 -0
  74. package/lib/stub/couchbase_v2/toplevel.php +139 -0
  75. package/lib/stub/couchbase_v3/couchbase.php +3526 -0
  76. package/lib/stub/crypto/crypto.php +95 -105
  77. package/lib/stub/ctype/ctype.php +25 -11
  78. package/lib/stub/cubrid/cubrid.php +124 -125
  79. package/lib/stub/curl/CURLStringFile.php +13 -0
  80. package/lib/stub/curl/curl.php +170 -118
  81. package/lib/stub/curl/curl_d.php +443 -408
  82. package/lib/stub/date/date.php +259 -159
  83. package/lib/stub/date/date_c.php +410 -187
  84. package/lib/stub/date/date_d.php +16 -16
  85. package/lib/stub/dba/dba.php +33 -33
  86. package/lib/stub/decimal/decimal.php +16 -15
  87. package/lib/stub/dio/dio.php +145 -0
  88. package/lib/stub/dom/dom.php +49 -50
  89. package/lib/stub/dom/dom_c.php +685 -391
  90. package/lib/stub/ds/ds.php +281 -618
  91. package/lib/stub/enchant/enchant.php +107 -65
  92. package/lib/stub/event/event.php +446 -592
  93. package/lib/stub/exif/exif.php +15 -15
  94. package/lib/stub/expect/expect.php +5 -5
  95. package/lib/stub/fann/fann.php +159 -440
  96. package/lib/stub/ffmpeg/ffmpeg.php +204 -245
  97. package/lib/stub/fileinfo/fileinfo.php +106 -88
  98. package/lib/stub/filter/filter.php +87 -77
  99. package/lib/stub/fpm/fpm.php +1 -1
  100. package/lib/stub/ftp/Connection.php +8 -0
  101. package/lib/stub/ftp/ftp.php +249 -149
  102. package/lib/stub/gd/GdFont.php +6 -0
  103. package/lib/stub/gd/gd.php +512 -397
  104. package/lib/stub/gearman/gearman.php +20 -43
  105. package/lib/stub/geoip/geoip.php +50 -34
  106. package/lib/stub/geos/geos.php +0 -11
  107. package/lib/stub/gettext/gettext.php +33 -27
  108. package/lib/stub/gmagick/gmagick.php +558 -869
  109. package/lib/stub/gmp/gmp.php +239 -190
  110. package/lib/stub/gnupg/gnupg.php +490 -257
  111. package/lib/stub/grpc/grpc.php +15 -14
  112. package/lib/stub/hash/hash.php +162 -101
  113. package/lib/stub/http/http.php +2314 -2285
  114. package/lib/stub/http/http3.php +2906 -2873
  115. package/lib/stub/ibm_db2/ibm_db2.php +106 -96
  116. package/lib/stub/iconv/iconv.php +50 -40
  117. package/lib/stub/igbinary/igbinary.php +2 -3
  118. package/lib/stub/imagick/imagick.php +7292 -6705
  119. package/lib/stub/imap/Connection.php +8 -0
  120. package/lib/stub/imap/imap.php +442 -393
  121. package/lib/stub/inotify/inotify.php +9 -19
  122. package/lib/stub/interbase/interbase.php +167 -168
  123. package/lib/stub/intl/IntlChar.php +854 -739
  124. package/lib/stub/intl/IntlDatePatternGenerator.php +13 -0
  125. package/lib/stub/intl/intl.php +2184 -1402
  126. package/lib/stub/json/json.php +167 -79
  127. package/lib/stub/judy/judy.php +10 -11
  128. package/lib/stub/ldap/Connection.php +8 -0
  129. package/lib/stub/ldap/Result.php +8 -0
  130. package/lib/stub/ldap/ResultEntry.php +8 -0
  131. package/lib/stub/ldap/ldap.php +429 -261
  132. package/lib/stub/leveldb/LevelDB.php +125 -129
  133. package/lib/stub/libevent/libevent.php +9 -19
  134. package/lib/stub/libsodium/libsodium.php +781 -959
  135. package/lib/stub/libvirt-php/libvirt-php.php +2054 -0
  136. package/lib/stub/libxml/libxml.php +94 -92
  137. package/lib/stub/lua/lua.php +4 -4
  138. package/lib/stub/lzf/lzf.php +3 -3
  139. package/lib/stub/mailparse/mailparse.php +34 -35
  140. package/lib/stub/mapscript/mapscript.php +35 -76
  141. package/lib/stub/mbstring/mbstring.php +289 -197
  142. package/lib/stub/mcrypt/mcrypt.php +131 -131
  143. package/lib/stub/memcache/memcache.php +79 -88
  144. package/lib/stub/memcached/memcached.php +1512 -1513
  145. package/lib/stub/meminfo/meminfo.php +1 -1
  146. package/lib/stub/meta/.phpstorm.meta.php +39 -15
  147. package/lib/stub/meta/attributes/ArrayShape.php +22 -0
  148. package/lib/stub/meta/attributes/Deprecated.php +46 -0
  149. package/lib/stub/meta/attributes/ExpectedValues.php +42 -0
  150. package/lib/stub/meta/attributes/Immutable.php +27 -0
  151. package/lib/stub/meta/attributes/Language.php +20 -0
  152. package/lib/stub/meta/attributes/NoReturn.php +23 -0
  153. package/lib/stub/meta/attributes/Pure.php +20 -0
  154. package/lib/stub/meta/attributes/internal/LanguageLevelTypeAware.php +16 -0
  155. package/lib/stub/meta/attributes/internal/PhpStormStubsElementAvailable.php +21 -0
  156. package/lib/stub/meta/attributes/internal/ReturnTypeContract.php +21 -0
  157. package/lib/stub/meta/attributes/internal/TentativeType.php +13 -0
  158. package/lib/stub/meta/encodings/.phpstorm.meta.php +257 -0
  159. package/lib/stub/ming/ming.php +238 -256
  160. package/lib/stub/mongo/mongo.php +942 -941
  161. package/lib/stub/mongodb/ServerApi.php +18 -0
  162. package/lib/stub/mongodb/mongodb.php +487 -830
  163. package/lib/stub/mosquitto-php/mosquitto-php.php +40 -94
  164. package/lib/stub/mqseries/mqseries.php +13 -39
  165. package/lib/stub/msgpack/msgpack.php +32 -44
  166. package/lib/stub/mssql/mssql.php +43 -48
  167. package/lib/stub/mysql/mysql.php +144 -141
  168. package/lib/stub/mysql_xdevapi/mysql_xdevapi.php +281 -294
  169. package/lib/stub/mysqli/mysqli.php +2006 -1836
  170. package/lib/stub/ncurses/ncurses.php +308 -346
  171. package/lib/stub/newrelic/newrelic.php +473 -279
  172. package/lib/stub/oauth/oauth.php +51 -57
  173. package/lib/stub/oci8/oci8.php +606 -555
  174. package/lib/stub/oci8/oci8v3.php +394 -0
  175. package/lib/stub/odbc/odbc.php +146 -141
  176. package/lib/stub/openssl/openssl.php +450 -269
  177. package/lib/stub/parallel/parallel/Channel/Error/Closed.php +1 -2
  178. package/lib/stub/parallel/parallel/Channel/Error/Existence.php +1 -2
  179. package/lib/stub/parallel/parallel/Channel/Error/IllegalValue.php +1 -2
  180. package/lib/stub/parallel/parallel/Channel/Error.php +1 -2
  181. package/lib/stub/parallel/parallel/Channel.php +63 -62
  182. package/lib/stub/parallel/parallel/Error.php +1 -2
  183. package/lib/stub/parallel/parallel/Events/Error/Existence.php +1 -2
  184. package/lib/stub/parallel/parallel/Events/Error/Timeout.php +1 -2
  185. package/lib/stub/parallel/parallel/Events/Error.php +1 -2
  186. package/lib/stub/parallel/parallel/Events/Event/Error.php +1 -2
  187. package/lib/stub/parallel/parallel/Events/Event/Type.php +14 -13
  188. package/lib/stub/parallel/parallel/Events/Event.php +22 -21
  189. package/lib/stub/parallel/parallel/Events/Input/Error/Existence.php +1 -2
  190. package/lib/stub/parallel/parallel/Events/Input/Error/IllegalValue.php +1 -2
  191. package/lib/stub/parallel/parallel/Events/Input/Error.php +1 -2
  192. package/lib/stub/parallel/parallel/Events/Input.php +22 -22
  193. package/lib/stub/parallel/parallel/Events.php +98 -97
  194. package/lib/stub/parallel/parallel/Future/Error/Cancelled.php +1 -2
  195. package/lib/stub/parallel/parallel/Future/Error/Foreign.php +1 -2
  196. package/lib/stub/parallel/parallel/Future/Error/Killed.php +1 -2
  197. package/lib/stub/parallel/parallel/Future/Error.php +1 -2
  198. package/lib/stub/parallel/parallel/Future.php +44 -44
  199. package/lib/stub/parallel/parallel/Runtime/Error/Bootstrap.php +1 -2
  200. package/lib/stub/parallel/parallel/Runtime/Error/Closed.php +1 -2
  201. package/lib/stub/parallel/parallel/Runtime/Error/IllegalFunction.php +1 -2
  202. package/lib/stub/parallel/parallel/Runtime/Error/IllegalInstruction.php +1 -2
  203. package/lib/stub/parallel/parallel/Runtime/Error/IllegalParameter.php +1 -2
  204. package/lib/stub/parallel/parallel/Runtime/Error/IllegalReturn.php +1 -2
  205. package/lib/stub/parallel/parallel/Runtime/Error/IllegalVariable.php +1 -2
  206. package/lib/stub/parallel/parallel/Runtime/Error/Killed.php +1 -2
  207. package/lib/stub/parallel/parallel/Runtime/Error.php +1 -2
  208. package/lib/stub/parallel/parallel/Runtime/Object/Unavailable.php +1 -2
  209. package/lib/stub/parallel/parallel/Runtime/Type/Unavailable.php +1 -2
  210. package/lib/stub/parallel/parallel/Runtime.php +88 -88
  211. package/lib/stub/parallel/parallel/Sync/Error/IllegalValue.php +1 -2
  212. package/lib/stub/parallel/parallel/Sync/Error.php +1 -2
  213. package/lib/stub/parallel/parallel/Sync.php +51 -51
  214. package/lib/stub/parallel/parallel.php +4 -4
  215. package/lib/stub/pcntl/pcntl.php +203 -184
  216. package/lib/stub/pcov/pcov.php +54 -55
  217. package/lib/stub/pcre/pcre.php +57 -38
  218. package/lib/stub/pdflib/PDFlib.php +1836 -1883
  219. package/lib/stub/pdo_ibm/pdo_ibm.php +1 -2
  220. package/lib/stub/pdo_mysql/pdo_mysql.php +0 -1
  221. package/lib/stub/pdo_pgsql/pdo_pgsql.php +0 -1
  222. package/lib/stub/pdo_sqlite/pdo_sqlite.php +0 -1
  223. package/lib/stub/pgsql/pgsql.php +211 -162
  224. package/lib/stub/posix/posix.php +122 -99
  225. package/lib/stub/pq/pq.php +2319 -2302
  226. package/lib/stub/pspell/pspell.php +26 -27
  227. package/lib/stub/pthreads/pthreads.php +33 -33
  228. package/lib/stub/radius/radius.php +9 -9
  229. package/lib/stub/rar/rar.php +68 -118
  230. package/lib/stub/rdkafka/RdKafka/Conf.php +19 -27
  231. package/lib/stub/rdkafka/RdKafka/Consumer.php +5 -11
  232. package/lib/stub/rdkafka/RdKafka/ConsumerTopic.php +10 -18
  233. package/lib/stub/rdkafka/RdKafka/Exception.php +1 -3
  234. package/lib/stub/rdkafka/RdKafka/KafkaConsumer.php +35 -43
  235. package/lib/stub/rdkafka/RdKafka/KafkaConsumerTopic.php +3 -3
  236. package/lib/stub/rdkafka/RdKafka/KafkaErrorException.php +36 -0
  237. package/lib/stub/rdkafka/RdKafka/Message.php +3 -3
  238. package/lib/stub/rdkafka/RdKafka/Metadata/Broker.php +12 -0
  239. package/lib/stub/rdkafka/RdKafka/Metadata/Collection.php +6 -18
  240. package/lib/stub/rdkafka/RdKafka/Metadata/Partition.php +5 -15
  241. package/lib/stub/rdkafka/RdKafka/Metadata/Topic.php +3 -9
  242. package/lib/stub/rdkafka/RdKafka/Metadata.php +4 -12
  243. package/lib/stub/rdkafka/RdKafka/Producer.php +30 -8
  244. package/lib/stub/rdkafka/RdKafka/ProducerTopic.php +5 -9
  245. package/lib/stub/rdkafka/RdKafka/Queue.php +3 -7
  246. package/lib/stub/rdkafka/RdKafka/Topic.php +1 -3
  247. package/lib/stub/rdkafka/RdKafka/TopicConf.php +5 -9
  248. package/lib/stub/rdkafka/RdKafka/TopicPartition.php +9 -23
  249. package/lib/stub/rdkafka/RdKafka.php +18 -32
  250. package/lib/stub/rdkafka/constants.php +68 -2
  251. package/lib/stub/rdkafka/functions.php +10 -14
  252. package/lib/stub/readline/readline.php +21 -22
  253. package/lib/stub/recode/recode.php +3 -4
  254. package/lib/stub/redis/Redis.php +333 -801
  255. package/lib/stub/redis/RedisCluster.php +209 -200
  256. package/lib/stub/redis/RedisSentinel.php +152 -152
  257. package/lib/stub/regex/ereg.php +23 -17
  258. package/lib/stub/rpminfo/rpminfo.php +5 -6
  259. package/lib/stub/rrd/rrd.php +25 -28
  260. package/lib/stub/session/SessionHandler.php +207 -174
  261. package/lib/stub/session/session.php +79 -62
  262. package/lib/stub/shmop/shmop.php +23 -20
  263. package/lib/stub/snmp/snmp.php +167 -160
  264. package/lib/stub/soap/soap.php +967 -675
  265. package/lib/stub/sockets/sockets.php +345 -296
  266. package/lib/stub/sodium/sodium.php +264 -515
  267. package/lib/stub/solr/Documents/SolrDocument.php +389 -390
  268. package/lib/stub/solr/Documents/SolrDocumentField.php +20 -21
  269. package/lib/stub/solr/Documents/SolrInputDocument.php +261 -262
  270. package/lib/stub/solr/Exceptions/SolrClientException.php +12 -13
  271. package/lib/stub/solr/Exceptions/SolrException.php +18 -19
  272. package/lib/stub/solr/Exceptions/SolrIllegalArgumentException.php +12 -13
  273. package/lib/stub/solr/Exceptions/SolrIllegalOperationException.php +12 -13
  274. package/lib/stub/solr/Exceptions/SolrMissingMandatoryParameterException.php +1 -3
  275. package/lib/stub/solr/Exceptions/SolrServerException.php +12 -13
  276. package/lib/stub/solr/Queries/SolrCollapseFunction.php +136 -137
  277. package/lib/stub/solr/Queries/SolrDisMaxQuery.php +308 -309
  278. package/lib/stub/solr/Queries/SolrModifiableParams.php +14 -15
  279. package/lib/stub/solr/Queries/SolrParams.php +134 -135
  280. package/lib/stub/solr/Queries/SolrQuery.php +2410 -2411
  281. package/lib/stub/solr/Responses/SolrGenericResponse.php +14 -15
  282. package/lib/stub/solr/Responses/SolrPingResponse.php +24 -25
  283. package/lib/stub/solr/Responses/SolrQueryResponse.php +14 -15
  284. package/lib/stub/solr/Responses/SolrResponse.php +151 -152
  285. package/lib/stub/solr/Responses/SolrUpdateResponse.php +14 -15
  286. package/lib/stub/solr/SolrClient.php +481 -482
  287. package/lib/stub/solr/Utils/SolrObject.php +69 -70
  288. package/lib/stub/solr/Utils/SolrUtils.php +57 -58
  289. package/lib/stub/sqlite3/sqlite3.php +590 -507
  290. package/lib/stub/sqlsrv/sqlsrv.php +58 -54
  291. package/lib/stub/ssh2/ssh2.php +68 -68
  292. package/lib/stub/standard/CSPRNG.php +4 -4
  293. package/lib/stub/standard/_standard_manual.php +7 -8
  294. package/lib/stub/standard/_types.php +28 -16
  295. package/lib/stub/standard/basic.php +42 -30
  296. package/lib/stub/standard/password.php +21 -22
  297. package/lib/stub/standard/standard_0.php +173 -133
  298. package/lib/stub/standard/standard_1.php +191 -131
  299. package/lib/stub/standard/standard_2.php +177 -129
  300. package/lib/stub/standard/standard_3.php +235 -161
  301. package/lib/stub/standard/standard_4.php +186 -144
  302. package/lib/stub/standard/standard_5.php +180 -130
  303. package/lib/stub/standard/standard_6.php +176 -141
  304. package/lib/stub/standard/standard_7.php +141 -81
  305. package/lib/stub/standard/standard_8.php +189 -150
  306. package/lib/stub/standard/standard_9.php +305 -184
  307. package/lib/stub/standard/standard_defines.php +333 -333
  308. package/lib/stub/stats/stats.php +68 -136
  309. package/lib/stub/stomp/stomp.php +39 -44
  310. package/lib/stub/suhosin/suhosin.php +2 -2
  311. package/lib/stub/superglobals/_superglobals.php +17 -18
  312. package/lib/stub/svm/SVM.php +31 -30
  313. package/lib/stub/svm/SVMModel.php +70 -69
  314. package/lib/stub/svn/svn.php +187 -218
  315. package/lib/stub/sybase/sybase_ct.php +24 -24
  316. package/lib/stub/sync/sync.php +30 -25
  317. package/lib/stub/sysvmsg/sysvmsg.php +38 -30
  318. package/lib/stub/sysvsem/sysvsem.php +20 -12
  319. package/lib/stub/sysvshm/sysvshm.php +31 -24
  320. package/lib/stub/tidy/tidy.php +626 -630
  321. package/lib/stub/tokenizer/PhpToken.php +77 -0
  322. package/lib/stub/tokenizer/tokenizer.php +168 -148
  323. package/lib/stub/uopz/uopz.php +40 -37
  324. package/lib/stub/uuid/uuid_c.php +12 -12
  325. package/lib/stub/uv/UV.php +198 -198
  326. package/lib/stub/uv/uv_functions.php +2 -2
  327. package/lib/stub/v8js/v8js.php +27 -45
  328. package/lib/stub/wddx/wddx.php +6 -7
  329. package/lib/stub/win32service/win32service.php +72 -76
  330. package/lib/stub/winbinder/winbinder.php +109 -432
  331. package/lib/stub/wincache/wincache.php +10 -11
  332. package/lib/stub/xcache/xcache.php +4 -4
  333. package/lib/stub/xdebug/xdebug.php +93 -70
  334. package/lib/stub/xdiff/xdiff.php +202 -0
  335. package/lib/stub/xhprof/xhprof.php +5 -13
  336. package/lib/stub/xlswriter/xlswriter.php +101 -117
  337. package/lib/stub/xml/xml.php +110 -94
  338. package/lib/stub/xmlreader/xmlreader.php +381 -341
  339. package/lib/stub/xmlrpc/xmlrpc.php +17 -17
  340. package/lib/stub/xmlwriter/xmlwriter.php +848 -737
  341. package/lib/stub/xsl/xsl.php +165 -154
  342. package/lib/stub/xxtea/xxtea.php +4 -4
  343. package/lib/stub/yaf/yaf.php +508 -456
  344. package/lib/stub/yaf/yaf_namespace.php +288 -863
  345. package/lib/stub/yaml/yaml.php +5 -5
  346. package/lib/stub/yar/yar.php +56 -35
  347. package/lib/stub/zend/zend.php +133 -153
  348. package/lib/stub/zend/zend_d.php +0 -2
  349. package/lib/stub/zend/zend_f.php +2 -8
  350. package/lib/stub/zip/zip.php +1151 -1002
  351. package/lib/stub/zlib/zlib.php +140 -106
  352. package/lib/stub/zmq/zmq.php +100 -180
  353. package/lib/stub/zookeeper/zookeeper.php +91 -138
  354. package/lib/stub/zstd/zstd.php +159 -0
  355. package/package.json +8 -9
  356. package/lib/stub/meta/phpunit/.phpstorm.meta.php +0 -68
package/CHANGELOG.md CHANGED
@@ -1,5 +1,94 @@
1
1
  # Change Log
2
2
 
3
+ ## [1.8.0 - 2021-12-05]
4
+
5
+ #### Added
6
+ - PHP 8.1 support
7
+
8
+ #### Changed
9
+ - Redundant unions are not reduced to minimal type as eagerly.
10
+ - Added additional logging when indexing.
11
+ - Diagnostics limited to parse errors only for non-file URIs.
12
+ - PHP 8.1 is now the default version.
13
+ - Updated stubs.
14
+
15
+ #### Fixed
16
+ - Iterator|Foo[] not corrected to Iterator<mixed, Foo> in some instances.
17
+ - Auto import not working in namespace body when class imported in previous namespace.
18
+ - Auto import indent in namespace body.
19
+ - False parse error on null-safe object operator and keyword member name.
20
+ - File rename incorrect when renaming namespace.
21
+ - False undefined variable diagnostic when using named arg and param is by ref.
22
+ - Encapsulated expr closing parenthesis format.
23
+ - False method not compatible diagnostic when override has an addition parameter that is variadic.
24
+ - False undefined variable on LHS of null coalesce compound assignment expr.
25
+ - Expected type 'object|array'. Found 'iterable'.
26
+ - Anonymous function parameter renaming.
27
+ - False method not implement diagnostic when trait provides implementation required by another trait.
28
+ - `implements` not suggested when extends class name contains backslash.
29
+ - Parsing of nested generic array phpdoc syntax.
30
+
31
+ ## [1.7.1 - 2021-05-02]
32
+
33
+ #### Changed
34
+ - Updated stubs
35
+
36
+ #### Fixed
37
+ - phpdoc `double` normalised to `float`.
38
+ - Crash on fetching embedded language folding ranges.
39
+ - False duplicate function name.
40
+ - Concrete class method is allowed to have different signature to trait abstract method.
41
+ - Doc block formatting.
42
+ - Excluded files getting indexed on `workspace/didChangeWatchedFiles` notifications.
43
+ - False type diagnostics for some built-in symbols.
44
+
45
+ ## [1.7.0 - 2021-04-26]
46
+
47
+ #### Added
48
+ - `@mixin` support. **[Premium](https://intelephense.com)**
49
+ - Signature help offset label support.
50
+ - `SymbolTag.Deprecated` support for workspace and document symbol requests.
51
+ - Added new setting `intelephense.rename.namespaceMode` that can be either `single` (default) or `all`. When set to `single` a rename of a namespace will only affect the symbols defined in that single file. This is the equivalent of a single 'move class' operation. Previously renaming a namespace would affect all symbols that shared that namespace across multiple files. Setting to the value to `all` will produce the old behaviour. **[Premium](https://intelephense.com)**
52
+
53
+ #### Changed
54
+ - Updated stubs.
55
+ - Upgraded vscode-languageserver to 7.1 beta.
56
+ - `intelephense.files.exclude` globs without path separators are no longer prefixed with `**/`. **BREAKING**
57
+ - URIs are now normalised to vscode-uri format.
58
+ - Rename requests that fail now return `ResponseError` with appropriate code and message rather than returning null and sending a separate notification.
59
+ - `intelephense.environment.shortOpenTag` now defaults to true. **BREAKING**
60
+ - Tolerate property annotations with missing `$` in property name.
61
+
62
+ #### Fixed
63
+ - Parser failing on alternate switch syntax.
64
+ - False `parent` static call warning in anon class.
65
+ - Division returning `int` instead of `int|float`.
66
+ - Refs not found when inside encapsulated expression used as member name.
67
+ - Formatting of immediately invoked function expr following phpdoc.
68
+ - Completion item detail showing `namespace ...` instead of `use ...` for existing imports.
69
+ - Completion item not including additional import edit when symbol shares current namespace but symbol short name is already used.
70
+ - Nested regions not folding.
71
+ - Property doc inheritance.
72
+ - Inline `{@inheritdoc}`.
73
+ - Files that are excluded but have textDocument/didOpen sent are now ignored.
74
+ - protected visibility when accessing subtype method from supertype.
75
+ - `intelephense.phpdoc.useFullyQualifiedNames` not overriding `intelephense.completion.insertUseDeclaration`.
76
+ - False not in object context error in arrow function.
77
+
78
+ ## [1.6.3 - 2021-01-31]
79
+
80
+ #### Fixed
81
+ - Multiline `unset` formatting.
82
+ - Goto definition from callable arrays using `MyClass::class` expression.
83
+ - Wrong `json_encode` parameter name.
84
+ - PHPUnit metadata causing `createMock` to return `string`.
85
+ - Indexing not working on Apple M1.
86
+ - False diagnostics for some built in functions that have multiple signatures.
87
+ - Format bug with shebang and `__halt_compiler`.
88
+ - Intellisense breaks with doc blocked class inside namespace body.
89
+ - `$/cancelRequest` not working.
90
+ - Wrong range reported for duplicate symbol diagnostics with attributes.
91
+
3
92
  ## [1.6.2 - 2021-01-12]
4
93
 
5
94
  #### Fixed
package/LICENSE.txt CHANGED
@@ -20,35 +20,40 @@ The Licensor grants you a personal, non-transferable, non-exclusive licence
20
20
  to use the Software on your devices in accordance with the terms of this
21
21
  agreement.
22
22
 
23
- 3. LICENCE KEYS
23
+ 3. INTENDED USE
24
+ An individual end user may use the Software paired with a
25
+ Language Server Protocol compatible Integrated Development Environment or text editor
26
+ to provide PHP code intelligence for said user.
27
+
28
+ 4. LICENCE KEYS
24
29
  a) Purchase of a Licence Key grants a single end user access and use of all
25
30
  current and future Premium Features in perpetuity.
26
31
  b) A Licence Key may be revoked if it is suspected that a user has breached
27
- restrictions detailed in item 4.
32
+ restrictions detailed in item 5 Restrictions.
28
33
 
29
- 4. RESTRICTIONS
34
+ 5. RESTRICTIONS
30
35
  You are NOT permitted to:
31
36
  a) Edit, alter, modify, adapt, translate or otherwise change the whole or any
32
37
  part of the Software.
33
38
  b) Decompile, disassemble or reverse engineer the Software or attempt to do
34
39
  any such things.
35
40
  c) Reproduce, copy, distribute, resell or otherwise use the whole or any part
36
- of the Software for any commercial purpose.
41
+ of the Software for any purpose except where permitted by item 3 Intended Use.
37
42
  d) Disable, modify or hide notifications sent by the Software.
38
43
  e) Distribute, resell, or share Licence Keys.
39
44
  f) Access or use Premium Features without a valid Licence Key.
40
45
 
41
- 5. OWNERSHIP
46
+ 6. OWNERSHIP
42
47
  The Software, copyright, and other intellectual property rights of whatever
43
48
  nature in the Software, including any modifications made thereto are and shall
44
49
  remain the property of the Licensor.
45
50
 
46
- 6. WARRANTY DISCLAIMER
51
+ 7. WARRANTY DISCLAIMER
47
52
  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
48
53
  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
49
54
  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
50
55
 
51
- 7. LIMITATION OF LIABILITY
56
+ 8. LIMITATION OF LIABILITY
52
57
  IN NO EVENT SHALL THE LICENSOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
53
58
  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
54
59
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
package/lib/LICENSE.txt CHANGED
@@ -20,35 +20,40 @@ The Licensor grants you a personal, non-transferable, non-exclusive licence
20
20
  to use the Software on your devices in accordance with the terms of this
21
21
  agreement.
22
22
 
23
- 3. LICENCE KEYS
23
+ 3. INTENDED USE
24
+ An individual end user may use the Software paired with a
25
+ Language Server Protocol compatible Integrated Development Environment or text editor
26
+ to provide PHP code intelligence for said user.
27
+
28
+ 4. LICENCE KEYS
24
29
  a) Purchase of a Licence Key grants a single end user access and use of all
25
30
  current and future Premium Features in perpetuity.
26
31
  b) A Licence Key may be revoked if it is suspected that a user has breached
27
- restrictions detailed in item 4.
32
+ restrictions detailed in item 5 Restrictions.
28
33
 
29
- 4. RESTRICTIONS
34
+ 5. RESTRICTIONS
30
35
  You are NOT permitted to:
31
36
  a) Edit, alter, modify, adapt, translate or otherwise change the whole or any
32
37
  part of the Software.
33
38
  b) Decompile, disassemble or reverse engineer the Software or attempt to do
34
39
  any such things.
35
40
  c) Reproduce, copy, distribute, resell or otherwise use the whole or any part
36
- of the Software for any commercial purpose.
41
+ of the Software for any purpose except where permitted by item 3 Intended Use.
37
42
  d) Disable, modify or hide notifications sent by the Software.
38
43
  e) Distribute, resell, or share Licence Keys.
39
44
  f) Access or use Premium Features without a valid Licence Key.
40
45
 
41
- 5. OWNERSHIP
46
+ 6. OWNERSHIP
42
47
  The Software, copyright, and other intellectual property rights of whatever
43
48
  nature in the Software, including any modifications made thereto are and shall
44
49
  remain the property of the Licensor.
45
50
 
46
- 6. WARRANTY DISCLAIMER
51
+ 7. WARRANTY DISCLAIMER
47
52
  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
48
53
  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
49
54
  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
50
55
 
51
- 7. LIMITATION OF LIABILITY
56
+ 8. LIMITATION OF LIABILITY
52
57
  IN NO EVENT SHALL THE LICENSOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
53
58
  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
54
59
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS