PHPStan v0.12.51 Release Notes
Release Date: 2020-10-23 // over 3 years ago-
๐ Improvements ๐ง
- Implement
positive-int
andnegative-int
types (phpstan/phpstan-src@2fc6a5f), #3790 - Certain functions are known to only ever return 0 or positive integer (phpstan/phpstan-src@6784a1c, phpstan/phpstan-src@a78a2e7)
- Implement property name as an expression in AccessPropertiesRule and AccessStaticPropertiesRule (#348)
- โก๏ธ Update PhpStorm stubs (phpstan/phpstan-src@4a886db), #3975
- ๐ PhpStorm stubs - parse them with PHP 8 parser (phpstan/phpstan-src@59c0423, phpstan/phpstan-src@0f8a61a)
- ๐ Old-style constructors are no longer supported on PHP 8 (phpstan/phpstan-src@aa502ff)
๐ Bugfixes ๐
- ๐ Fixed casting CurlMultiHandle to
(int)
(phpstan/phpstan-src@7219419) - โก๏ธ Update PHP 8 stubs - fix
assert_options()
(phpstan/phpstan-src@2164616), #3944 - ๐ Fix resolving type of
isset($arr['key'])
(#346), thanks @jlherren! - ๐ Fix
isset()
with multiple arguments (#345), thanks @jlherren! - 0๏ธโฃ Create only the default
tmpDir
directory (phpstan/phpstan-src@5be8b80) - PropertyDescriptor - correctly resolve from reflection whether a property is static or not (phpstan/phpstan-src@fadb439)
- ๐ Fix scale parameter check in bc math return type extension (#353), #3978, thanks @jaroslavlibal!
- ๐ Fixed variable certainty of a nonexistent variable after
isset()
(phpstan/phpstan-src@3b21093), #3985 isset()
- fix false positive (phpstan/phpstan-src@fcb78d9), #2816- ๐ Fix truncating invalid UTF-8 strings (#354), thanks @jfreixa!
- ๐ Fix
array_slice
with non-empty-array (phpstan/phpstan-src@273b3ce)
๐ฑ Function signature fixes ๐ค
explode()
returns a non-empty array in certain scenarios (phpstan/phpstan-src@0069107), #3596, #3961setlocale()
can take as argument string|null (#351), thanks @peter-gribanov!
- Implement