Matthew Brown
e11be08f89
4.x ( #4363 )
...
* Enable --diff mode by default
* Bump required version
2021-01-29 11:39:58 +01:00
Matt Brown
481cf84b94
Don’t overwrite true flag
2021-01-29 11:39:58 +01:00
Matt Brown
3cab29ec4e
Prevent dupe records
2021-01-29 11:39:58 +01:00
Matt Brown
4c62f8b5fc
Fix bad replacement
2021-01-29 11:39:58 +01:00
Matt Brown
bdfe6e4eef
Improve error messaging
2021-01-29 11:39:58 +01:00
Matt Brown
74d6f166c1
Be more explicit about negation
2021-01-29 11:39:58 +01:00
Matt Brown
8043683f26
Ignore just-coerced vars
2021-01-29 11:39:58 +01:00
Matt Brown
d153f2f131
Prevent unnecessary assignments
2021-01-29 11:39:58 +01:00
Matt Brown
596811cdc1
Suppress errors from fake statements
2021-01-29 11:39:58 +01:00
Matt Brown
e516a7edd9
Fix reversed negation check
2021-01-29 11:39:58 +01:00
Matt Brown
c5c177a80a
Improve binary op || analysis for chain
2021-01-29 11:39:57 +01:00
Matt Brown
3f5269d86a
Fix style
2021-01-29 11:39:57 +01:00
orklah
62861e79d8
improve phpdoc ( #4352 )
2021-01-29 11:39:57 +01:00
Matt Brown
596e71d6aa
Unskip now-working tests
2021-01-29 11:39:57 +01:00
Matt Brown
2d8d1b9bf7
Fix #4354 - allow assignments on RHS of || in if conditional
2021-01-29 11:39:57 +01:00
Matt Brown
a18dd1a304
Fix array_unique flag
2021-01-29 11:39:57 +01:00
Pascal Heidmann
05547291c2
try creating report folder if not exists ( #4353 )
...
Co-authored-by: Pascal Heidmann <heidmann@kigaroo.de>
2021-01-29 11:39:57 +01:00
Matt Brown
85bbc0a5d5
Fix dupes
2021-01-29 11:39:57 +01:00
Matt Brown
231c7a1de4
Allow union with positive-int
2021-01-29 11:39:57 +01:00
Matt Brown
da79106a6a
Fix #4349 - improve types for suggested unions
2021-01-29 11:39:57 +01:00
Matt Brown
426a1ce47e
Fix #4350 - numeric-string should not get replaced
2021-01-29 11:39:56 +01:00
Matt Brown
3a8b8e5c2a
Fix algebra more
2021-01-29 11:39:56 +01:00
Matt Brown
4f60d2dd4d
Fix #4347 - fix combinatorial expansion when negating if conditions
2021-01-29 11:39:56 +01:00
orklah
2ce058ab3e
Misc improvements ( #4314 )
...
* extract the operation out of the loop when possible
* remove unnecessary interfaces when already inherited in parent
* simplify expressions
* avoid using alias functions
* redundant phpdoc
* unused imports
2021-01-29 11:39:56 +01:00
Matt Brown
a766631500
Fix default value
2021-01-29 11:39:56 +01:00
Matt Brown
1025b29e06
Add range check
2021-01-29 11:39:56 +01:00
Matt Brown
5b140bf522
Treat more issues as fixable cc @orklah
2021-01-29 11:39:56 +01:00
Matt Brown
460c4a2c3e
Fix #4333 - don’t get tripped up on try with no catches
2021-01-29 11:39:56 +01:00
Matt Brown
c43c29880c
Fix #4336 - don’t merge sources twice for null coalesce
2021-01-29 11:39:56 +01:00
Matt Brown
14ab3a95a5
Break apart InstancePropertyFetchAnalyzer and others
2021-01-29 11:39:56 +01:00
Matt Brown
05f2d01cb6
Fix #4326 - Prevent later remapping of properties
2021-01-29 11:39:55 +01:00
Matt Brown
1915f34959
Fix #4326 - prevent more mapping than necessary
2021-01-29 11:39:55 +01:00
Matt Brown
84126fbbca
Fix #4327 - make sure loop always returns
2021-01-29 11:39:55 +01:00
orklah
c15fabbdcc
changing the templates order to match existing stub in PHPStan ( #4332 )
2021-01-29 11:39:55 +01:00
orklah
3ed70e3ca0
ambiguous php version checks ( #4331 )
2021-01-29 11:39:55 +01:00
Marco Perone
91e8e26937
add documentation for pure-callable ( #4329 )
2021-01-29 11:39:55 +01:00
Marco Perone
e3bb43641c
provide documentation for ensureArrayIntOffsetsExist configuration option ( #4328 )
2021-01-29 11:39:55 +01:00
Marcus Bointon
fb505df807
Fix preg_match_all stub ( #4325 )
...
* preg_match_all can return false
* Test for preg_match_all returning false
* Fix test
* Add @psalm-ignore-falsable-return
2021-01-29 11:39:55 +01:00
Matt Brown
d4ccfcf75d
Use correct count
2021-01-29 11:39:55 +01:00
Matt Brown
8d1de7757d
Use more accurate arguments count
2021-01-29 11:39:55 +01:00
Matt Brown
c00bc4ee51
Add better support for get_debug_type
2021-01-29 11:39:54 +01:00
Matt Brown
0f8b017384
Prevent features pre-php-8
2021-01-29 11:39:54 +01:00
Matt Brown
66e40f1007
Support false
and null
unions in PHP 8 signatures
2021-01-29 11:39:54 +01:00
Matt Brown
4acaf40f26
Avoid crash when callable type is missing
2021-01-29 11:39:54 +01:00
Matt Brown
28a87c8b9f
Change control_flow_graph to data_flow_graph
2021-01-29 11:39:54 +01:00
Matt Brown
052abce035
Rename ControlFlowGraph to more appropriate DataFlowGraph
2021-01-29 11:39:54 +01:00
Pol Dellaiera
9aaf61d220
CachingIterator - Add forgotten constructor parameter. ( #4322 )
...
Signed-off-by: Pol Dellaiera <pol.dellaiera@protonmail.com>
2021-01-29 11:39:54 +01:00
Pol Dellaiera
2b437ad672
Add more standard iterators ( #4320 )
...
* Add CachingIterator, LimitIterator, InfiniteIterator, CallbackFilterIterator, NoRewindIterator.
Signed-off-by: Pol Dellaiera <pol.dellaiera@protonmail.com>
* Add related Iterator tests.
Signed-off-by: Pol Dellaiera <pol.dellaiera@protonmail.com>
2021-01-29 11:39:54 +01:00
Matt Brown
399a7bfd11
Fix #4315 - prevent crash when setting unknown property in finally
2021-01-29 11:39:54 +01:00
Matt Brown
278a306681
Do arithmetic for preg_split arguments
2021-01-29 11:39:53 +01:00