Changelog History
Page 2
-
v0.12.49 Changes
October 12, 2020π Improvements π§
- Try out PHP 8 analysis now! Set
parameters.phpVersion
in yourphpstan.neon
to80000
and re-run PHPStan to see how well your code will fare once PHP 8 is released!- It will be improved in the coming weeks to cover more deprecations and new features.
- β‘οΈ Update phpstorm-stubs and understand
@removed
annotation (phpstan/phpstan-src@a39a46f, phpstan/phpstan-src@4eecc4f) - Implemented falsey-filtered subtracted
mixed
type (#339), #1014, thanks @jlherren!
π Bugfixes π
- π
hoa/Stream.php
- remove registerShutdownFunction (phpstan/phpstan-src@edd5c3c), #3907 - DependencyResolver - get current function reflection instead of obtaining it through ReflectionProvider (phpstan/phpstan-src@0e42941), #3909
- π· More useful behaviour of "some jobs remaining" (phpstan/phpstan-src@6c61e49, phpstan/phpstan-src@34c4829), #3910
- π Fix type-less variadic argument in anonymous function (#332), thanks @jlherren!
- π Fix native union type parameter with
false
(phpstan/phpstan-src@917cdb1) - π Fix native union type with incomplete PHPDoc (phpstan/phpstan-src@c3d0989)
- π Fix type inference in assignment with side-effects (#333), #3875, #2611, #3548, thanks @jlherren!
- π Fix JustNullableTypeTrait.equals() (#335), #3866, thanks @jlherren!
- π Fix variadic parameter after optional (phpstan/phpstan-src@287b8b8)
- π Fix reporting overriden variadics (phpstan/phpstan-src@2cd7001)
π± Function signature fixes π€
- make second two arguments optional in
mysqli_begin_transaction
(#331), thanks @MasterOdin! PHPStan\Reflection\ClassReflection::getName()
returnsclass-string
(phpstan/phpstan-src@3d1d930)- π Fix
Memcache::get
signature (#338), thanks @dada-amater! - π Handle dynamic return types for bc math functions (#187), thanks @eigan!
- First parameter of
SimpleXMLElement::children()
accepts null (phpstan/phpstan-src@7ce2e54) - π functionMap - synchronized some of parameter names with PHP 8 stubs (phpstan/phpstan-src@71e7550, phpstan/phpstan-src@0c87f16)
- Dynamic return type extension for
pow()
(phpstan/phpstan-src@c54e495)
- Try out PHP 8 analysis now! Set
-
v0.12.48 Changes
October 01, 2020- π Fix
Error::canBeIgnored()
which caused result cache to be silently unused (phpstan/phpstan-src@2af17d9), #3897 - π Make last parameter of
openssl_seal
optional (#329), thanks @phil-davis! - functionMap - Fix more optional parameters followed by required parameters (phpstan/phpstan-src@d2f443c)
- Return
false
for hash_hmac/hash_hmac_file on invalid algorithm (#328), thanks @pascalheidmann!
- π Fix
-
v0.12.47 Changes
September 29, 2020π π PHPStan Pro has been released π
In few brief points:
- π» Web UI for browsing found errors, you can click and open your editor of choice on the offending line.
- π» Continuous analysis (watch mode): scans changed files in the background, refreshes the UI automatically.
- π± Interactive fixer: lets you choose the right fix for found errors π
Try it by running PHPStan with the
--pro
option.π± After 30-day free trial period it costs 7 EUR for individuals monthly, 70 EUR for teams (up to 25 members), youβll support the development of open-source PHPStan π If youβre using PHPStan at your job to prevent bugs reaching production, please consider paying for PHPStan Pro, 70 EUR monthly is less than a man-day π
You can read more about it on the blog: https://phpstan.org/blog/introducing-phpstan-pro
Iβm looking forward to your feedback!
-
v0.12.46 Changes
September 28, 2020- β‘οΈ Update
nikic/php-parser
(phpstan/phpstan-src@e7203bc), fixes #3885 (Internal error in StubPhpDocProvider.php) openssl_seal
has up to 6 parameters (#327), thanks @foppelfb!
- β‘οΈ Update
-
v0.12.45 Changes
September 26, 2020 -
v0.12.44 Changes
September 24, 2020 -
v0.12.43 Changes
September 19, 2020π Improvements π§
- β‘οΈ Updated nikic/php-parser to 4.10.0 (phpstan/phpstan-src@ff092a0)
π Bugfixes π
- β Removed duplicate rule (phpstan/phpstan-src@92b57a5)
- Encode newlines in GithubErrorFormatter (#317), thanks @staabm!
- Do not report
$_SESSION
as always existing (#321), thanks @b1rdex!
π± Function signature fixes π€
-
v0.12.42 Changes
September 02, 2020π Fix error:
Exception: Return value of PHPStan\PhpDoc\ResolvedPhpDocBlock::getNameScope() must be an instance of PHPStan\Analyser\NameScope, null returned
(phpstan/phpstan-src@6e73d64), #3820 -
v0.12.41 Changes
September 02, 2020π Improvements π§
- Faster result cache - analyse dependent files only if public-facing thing (like public or protected properties, methods, constants etc.) from changed file was changed (#314)
- Missing typehints: recurse into generic objects parameters (#306), thanks @dktapps!
- β‘οΈ Updated
nikic/php-parser
to 4.9.1 (phpstan/phpstan-src@abf2d0f) - β Add option to check internal class capitalization (#313), thanks @Riimu!
π Bugfixes π
-
v0.12.40 Changes
August 26, 2020π Improvements π§
- π New
numeric-string
type for PHPDocs - Understand that
date
function can sometimes return numeric string (phpstan/phpstan-src@1053ee7), #2899 - β‘οΈ Optimized memory consumption. It's now down 30 % to 40 % than in 0.12.39! (phpstan/phpstan-src@c9678cd, phpstan/phpstan-src@ba40208)
π Bugfixes π
- π Fixed various bugs related to
is_numeric()
(phpstan/phpstan-src@7f04f75, phpstan/phpstan-src@1d27c61), #3664, #3489, #2710, #3133, #2964, #2550, #3161
- π New