orklah
|
edff17134d
|
improve test
|
2021-09-19 19:30:00 +02:00 |
|
orklah
|
d9d9fa67a6
|
remove faulty test
|
2021-09-19 19:29:59 +02:00 |
|
Bruce Weirdan
|
5dfd157d72
|
Merge pull request #6420 from orklah/ternary-override-type
Ternary override type when reassigning
|
2021-09-04 21:58:32 +03:00 |
|
orklah
|
e2b594820e
|
fix test
|
2021-09-04 20:27:25 +02:00 |
|
orklah
|
0825f220fe
|
allow ternary to override previous type when reassigning
|
2021-09-04 20:22:06 +02:00 |
|
orklah
|
ea50e5db4d
|
add test
|
2021-09-04 14:19:49 +02:00 |
|
Andrey Klimenko
|
3ad3375777
|
Fix generic destruction in assertion (#5888)
|
2021-06-04 15:33:37 -04:00 |
|
Andrey Klimenko
|
e5e397a6c5
|
Type negation in generic context (#5879)
* Type negation in generic context
* Fix cs
|
2021-06-03 01:06:25 -04:00 |
|
AndrolGenhald
|
518d0af895
|
Strict int/float comparison for conditional types, improve range return type (#5601)
|
2021-04-09 11:28:48 -04:00 |
|
AndrolGenhald
|
d4590711d6
|
Fix object-like array keys when combining string and automatic keys (fixes #5427). (#5428)
* Fix object-like array keys (fixes #5427).
* Fix incorrect return types for tests.
* Fix false positive list with literal int key.
|
2021-03-19 21:44:44 -04:00 |
|
Matt Brown
|
03665b9646
|
Revert "Correct Psalm’s concept of string emptiness"
This reverts commit 331ce8ead4 .
It was too hasty
|
2021-02-03 01:09:58 -05:00 |
|
Matt Brown
|
331ce8ead4
|
Correct Psalm’s concept of string emptiness
It contrasted with PHP’s idea
|
2021-02-02 23:07:51 -05:00 |
|
Matt Brown
|
b64eb6d716
|
Break out array_key_exists tests
|
2020-12-02 14:42:16 -05:00 |
|
Matt Brown
|
f3e0201a99
|
Treat $a ?? $b identically to isset($a) ? $a : $b
|
2020-11-25 14:34:05 -05:00 |
|
Matt Brown
|
1cead18760
|
Fix #4637 - prevent regression when negating function call with === false
|
2020-11-20 09:56:53 -05:00 |
|
Matt Brown
|
ff3fff56d4
|
Simplify assertion negations, centralising as much as possible
Now the flag passed to scrapeAssertions just determines the errors emitted
|
2020-11-19 14:32:49 -05:00 |
|
Matt Brown
|
3cde617ecc
|
Put assignment-in-conditional tests in their own file
|
2020-11-06 12:41:00 -05:00 |
|
Matt Brown
|
91d9dc3759
|
Fix overeager inference
|
2020-11-03 16:44:24 -05:00 |
|
Matt Brown
|
f72e2d7de5
|
Fix #4374 - prevent paradox and allow Psalm to understand more assignments in conditionals
|
2020-10-20 14:43:05 -04:00 |
|
Matt Brown
|
fe294a4dc0
|
Don’t overwrite true flag
|
2020-10-18 01:24:36 -04:00 |
|
Matt Brown
|
0897abf5cb
|
Be more explicit about negation
|
2020-10-18 00:39:43 -04:00 |
|
Matt Brown
|
3c29ffd0b7
|
Ignore just-coerced vars
|
2020-10-17 23:35:24 -04:00 |
|
Matt Brown
|
055fe551c1
|
Suppress errors from fake statements
|
2020-10-17 18:35:55 -04:00 |
|
Matt Brown
|
c0f6afbd87
|
Improve binary op || analysis for chain
|
2020-10-17 17:16:47 -04:00 |
|
Matt Brown
|
4614f4be3e
|
Unskip now-working tests
|
2020-10-17 12:30:19 -04:00 |
|
Matt Brown
|
9f29e77adc
|
Fix #4354 - allow assignments on RHS of || in if conditional
|
2020-10-17 12:29:57 -04:00 |
|
Matt Brown
|
a0fbac347e
|
Prevent features pre-php-8
|
2020-10-14 17:09:56 -04:00 |
|
Matt Brown
|
c2108e89db
|
Warn about impossible/redundant conditions in RHS of ||
|
2020-10-07 17:04:01 -04:00 |
|
Matt Brown
|
595b8178e0
|
Improve error message
|
2020-10-07 15:36:31 -04:00 |
|
Matt Brown
|
639ae61284
|
Always check LHS of or condition before applying to RHS
|
2020-10-07 13:40:09 -04:00 |
|
Matt Brown
|
1a11897849
|
4.x - add support for the nullsafe operator
|
2020-10-03 20:21:52 -04:00 |
|
orklah
|
37a2f8a33d
|
unused use statements (#4228)
|
2020-09-22 01:10:46 -04:00 |
|
orklah
|
ead107fa9e
|
More return types (#4173)
* add native return types
* redundant phpdoc
|
2020-09-12 11:24:05 -04:00 |
|
Brown
|
988e17f11d
|
Make clause fully immutable
|
2020-08-26 15:35:29 -04:00 |
|
Matthew Brown
|
cb243778d2
|
Fix #3917 - allow comparisons between classes and interfaces
|
2020-08-16 16:25:59 -04:00 |
|
Brown
|
e0f5595307
|
Fix #3932 - try to get assertions of negated expression if instant negation fails
|
2020-08-05 16:53:30 -04:00 |
|
Brown
|
7ef3d4711f
|
Fix some more tests
|
2020-07-21 23:16:56 -04:00 |
|
Brown
|
f0a5463834
|
Catch string subtypes that cannot be identical
|
2020-07-14 10:08:31 -04:00 |
|
Brown
|
68fe66fcf6
|
Fix tests
|
2020-06-25 01:33:02 -04:00 |
|
Brown
|
7a7cd91c24
|
Fix #3631 - better treatment for assignments in complex conditionals
|
2020-06-24 13:16:52 -04:00 |
|
Brown
|
4d6fc4d0ca
|
Fix get_class($foo) === static::class checks
|
2020-06-23 13:11:19 -04:00 |
|
Brown
|
1f86afece7
|
Revert "Fix #3631 - apply assertions to RHS of equality in conditional"
This reverts commit 9c17795545 .
|
2020-06-22 20:01:27 -04:00 |
|
Brown
|
9c17795545
|
Fix #3631 - apply assertions to RHS of equality in conditional
|
2020-06-22 15:16:16 -04:00 |
|
Brown
|
9ca6c868b7
|
Fix #3563 - add workaround for == true
|
2020-06-12 10:58:44 -04:00 |
|
Brown
|
21798efed2
|
Fix #3388 - eliminate null after < 0 check
|
2020-05-18 08:52:44 -04:00 |
|
Brown
|
ae48c1895f
|
Fix #3365 - add support for negated empty string checks
|
2020-05-14 22:09:37 -04:00 |
|
Pierre Grimaud
|
e7990390a6
|
Fix typos (#3255)
|
2020-04-28 09:17:31 -04:00 |
|
Brown
|
9d2957d339
|
Fix a few more edge-cases
|
2020-04-12 01:26:11 -04:00 |
|
Brown
|
db7447abd7
|
Make array coercion-to--mixed rules a little more lenient
|
2020-04-10 16:21:48 -04:00 |
|
Brown
|
bd2104c5ba
|
Merge with mixed in nested arrays
|
2020-04-09 09:27:21 -04:00 |
|