1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309
|
1.10.0 - 9 Nov 2024
add support for phpstan/phpdoc-parser 2 by @xabbuh in #212
1.9.0 - 3 Nov 2024
Add support for non-empty-array notation by @jaapio in #206
Add support for object and list shape types by @jaapio in #207
Bump phpDocumentor/.github from 0.5.0 to 0.7 by @dependabot in #209
build on php 8.4 by @jaapio in #210
1.8.2 - 23 Feb 2024
This new patch version reintroduces php 7.3 support to allow users to use php-parser v5 together with this package. There are no breaking changes or other changes people should be aware of.
Be able to run examples whatever current directory is by @llaville in #201
Downgrade to php 7.3 by @jaapio in #203
1.8.1 - 20 Feb 2024
Make Float_ non-final by @antoinelame in #200
1.8.0 - 11 Jan 2024
This version allows users to get the Item definition of ArrayShape types, and gives you access to the type definition of these item. Using the new ArrayShape::getItems() method.
Add getter to ArrayShape by @antoinelame in #194
1.7.4 - 11 Jan 2024
This patch ensures this library works with php-parser v5. Due a conflict in the way both libraries were handling the forward compatibility on php 7.4 for language constructs in php 8+. This patch version should not have any impact on the way you are using the library unless you did use the value of the T_NAME_QUALIFIED and T_NAME_FULLY_QUALIFIED constants, and you are running php 7.4
Update parser token constant values to ints instead of strings by @mukuru-shaun in #197
1.7.3 - 12 Aug 2023
Fixed
Fix ContextFactory::createForNamespace detects wrong use statement by @maMykola in #192
1.7.2 - 30 May 2023
Fixes
Change underlying type for StringValue pseudo type by @astronom in #189
1.7.1 - 28 Mar 2023
Fixes
Fix compound array key support by @jaapio in #188
1.7.0 - 18 Mar 2023
This version of the type resolver contains an internal rewrite of the type parser using phpstan/php-doc-parser. This enables a number of features regarding more advanced type resolving. The interface of the library has not been changed. This version should be fully backward compatible.
Added
Add non-empty-list pseudo-type by @schodemeiss in #183
Add callable parameters and return type support by @jaapio
Add array shape support by @jaapio
Deprecated
Support for nullable type definitions in compound types see: #184
Fixed
Update .gitattributes by @williamdes in #177
1.6.2 - 14 Oct 2022
Added
Upgrade to standardized phpdoc ci by @jaapio in #170
Upgrade code to php 7.4 level by @jaapio in #171
Build on php 8.2 by @jaapio in #172
Fixed
Fix parsing nullable collections by @hemberger in #168
Update inaccurate docblock in AbstractList by @Prusias in #174
1.6.1 - 29 Mar 2022
Fixed
fix for zero IntRange by @voku in #153
CI
GH Actions: version update for various predefined actions by @jrfnl in #159
1.6.0 - 04 Jan 2022
Added
Add list pseudo-type by @enumag in #136
add support for "int<min,max>", "negative-int" and "numeric" by @voku in #139
Fixed
Throw exception on invalid array start by @jaapio in #147
GH Actions: version update for ramsey/composer-install by @jrfnl in #144
1.5.1 - 02 Oct 2021
Added
add support for literal-string, thanks to @voku
fix "PseudoType" for ArrayKey, thanks to @voku
Fixed
fix "RuntimeException" for "array-key" and for "class-string", thanks to @voku
1.5.0 - 17 Sep 2021
This version contains various fixes, and adds support for php 8.1 including the new never return type.
Added
support psalm scalar types #112, thanks to @smoench
support for never return type #130 thanks to @jaapio
Fixed
Update .gitattributes #115, thanks to @KasperFranz
Do not include composer.lock in distribution #118 @kubawerlos
Allow manual trigger of github actions #120, thanks to @jrfnl
fix array-offset via "isset"-call #104, thanks to @voku
GH Actions: simplify Composer caching #121, thanks to @jrfnl
Tests/ArrayKeyTest: fix incorrect @uses tag #122 thanks to @jrfnl
GH Actions: actually run the tests on PHP 8.0 + 8.1 #123 thanks to @jrfnl
CS update after upstream changes #124, thanks to @jrfnl
GH Actions: don't allow builds against PHP 8.1 to fail #125 @jrfnl
1.4.0 - Sep 17, 2020
Added
Improved Pseudo type support #113, thanks to @mvriel
Deprecated
phpDocumentor\Reflection\Types\False_ is replaced by \phpDocumentor\Reflection\PseudoTypes\False_ will be removed in v2
phpDocumentor\Reflection\Types\True_ is replaced by \phpDocumentor\Reflection\PseudoTypes\True_ will be removed in v2
Fixed
fix parsing tokens #114, thanks to @xabbuh
1.3.0 - Jun 26, 2020
Added
Add php 8 support #110 , thanks to @jaapio
1.2.0 - Jun 19, 2020
Added
Add support for True and False pseudo-types #14, thanks to @jaapio
1.1.0 - Feb 26, 2020
Added
Add collection syntax support for iterable, #80 thanks to @julienfalque
Added support for class-string and class-string types, #90 thanks to @othercorey
Deduplicate double entries in a compound thanks to @mvriel
Type coverage improvements, thanks to @orklah
BC check in ci, thanks to @jaapio
Fixed
Infinite loop could occur when no closing use token found, thanks to @mvriel
1.0.1 - Aug 22, 2019
This version contains a fixed regression regarding namespace alias interpretation.
Fixed
Fixed #76 ContextFactory incorrect namespace aliases, thanks to @piku235
0.7.2 - Aug 22, 2019 - regression fix release
This version contains a fixed regression regarding namespace alias interpretation.
Fixed
Fixed #76 ContextFactory incorrect namespace aliases, thanks to @piku235
1.0.0 - Jul 8, 2019
This release doesn't contain any new features since the previous release.
All methods do have the correct typehints and return types now.
The codebase is fully checked with phpstan and psaml.
Added
QA pipeline
0.7.1 - Oct 12, 2018
Fixed
Throw exception on unclosed array in type notation
0.7.0 - Aug 22, 2018
Added
Support for grouped use statements #64 thanks to @ragboyjr
0.6.3 - Aug 9, 2018
bump reflection-common dependency to newest beta
0.6.2 - Jun 14, 2018
bump reflection-common dependency to newest alpha
0.6.1 - Feb 13, 2018
Fixed #55 : ContextFactory::createFromReflector() doesn't work with ReflectionProperty
0.6.0 - Jan 26, 2018
bump to PHP 7.1 minimum
add strict typing
0.5.1 - Jan 26, 2018
added missing pseudo-type alias of float
0.5.0 - Dec 28, 2017
complex type support
Added
Support of array expression of PSR-5
Support of collections
Improved php 7.0 code
phpstan max level.
0.4.0 - Jul 14, 2017
Improved php 7+ support
Added
Renamed Mixed to Mixed_
Renamed Resource to Resource_
Fixed
HHVM build on travis
0.3 - Jun 4, 2017
New features
Added
Support for iterable type.
Support for Nullable type
Support for parent type
Travis build for php 7.1
Fixed
Code highlighting in readme.
0.2.1 - Nov 25, 2016
Last namespace separator is not removed
Because the count function was used to determine the length of the FQNN the
last character was not correctly determined. This was remedied by replacing
the count function with strlen.
0.2 - Jun 10, 2016
Rename Void to Void_ since it is a reserved keyword in PHP7.1
0.1.8 - Mar 29, 2016
0.1.7 - Mar 19, 2016
Fix file_get_contents warning in ContextFactory
0.1.6 - 2 Dec 2015
0.1.5 - 18 Jul 2015
Ignore any tokens within classes when looking for namespaces
0.1.4 - 2 Jul 2015
0.1.3 - 26 Jun 2015
0.1.2 - 26 Jun 2015
0.1.1 - 12 Jun 2015
0.1 - 12 Jun 2015
|