Bruce Weirdan
b4f024b1fe
Basic enum checks
...
* Duplicate cases
* Duplicate case values
* Invalid case values: value on a pure enum case, missing value on a
backed enum case, backing type / case type mismatch
* Literal expression evaluation for case values
Fixes vimeo/psalm#6426
Fixes vimeo/psalm#6427
2021-09-07 12:35:38 +03:00
Bruce Weirdan
d17f1bd7b3
Merge pull request #6447 from brayniverse/master
2021-09-07 05:26:25 +03:00
Tyson Andre
f4f989d1e5
Use different in-array-*
check for non-literals
...
Negating this would not contradict the original condition if the
variables were different. A string can be in one array of strings but
not be in a different array of strings.
2021-09-06 21:48:08 -04:00
Tyson Andre
7df819e585
Unrelated: Use strict_equality instead of loose_equality for ===
checks
...
(`=` is strict equality, `~` is loose equality)
2021-09-06 21:44:19 -04:00
Tyson Andre
f69a255611
Fix false positive ParadoxicalCondition in negation of in_array
...
For #6439
2021-09-06 21:15:04 -04:00
Bruce Weirdan
5535ea1ac0
$column
parameter is optional
2021-09-07 03:02:25 +03:00
Bruce Weirdan
359537d9a3
Merge pull request #6448 from weirdan/prevent-test-failures-with-php-dev-version
...
Prevent failures with dev PHP versions
2021-09-07 02:45:25 +03:00
Bruce Weirdan
30c6c4984a
Merge pull request #6446 from 50bhan/ref/change-hash-functions-signature
...
Add an optional $options argument to hash functions for PHP 8.1
2021-09-07 02:06:33 +03:00
Bruce Weirdan
b39e765475
Prevent failures with dev PHP versions
...
It was failing with dev versions, e.g. `8.2.0-dev`
2021-09-07 01:43:03 +03:00
Christopher Bray
ba84c990dd
Add mysqli_fetch_column to CallMap
2021-09-06 22:34:25 +01:00
50bhan
58e1e6b9a3
Add an optional $options argument to hash functions for PHP 8.1
2021-09-07 01:44:35 +04:30
Bruce Weirdan
fce98d0d85
Merge pull request #6444 from SMAtaurRahman/php8.1
...
introducing fsync & fdatasync functions in callmap
2021-09-06 22:35:31 +03:00
S.M. Ataur Rahman
5ec5f7d3db
introducing fsync & fdatasync functions in callmap
2021-09-07 00:24:32 +06:00
Bruce Weirdan
e3e667653a
Merge pull request #6435 from SMAtaurRahman/php8.1
2021-09-06 17:27:17 +03:00
S.M. Ataur Rahman
b6e7a77e5a
introducing mysqli execute() method parameter callmap change for php 8.1
2021-09-06 19:33:58 +06:00
Bruce Weirdan
b5d967132a
Merge pull request #6441 from niconoe-/fix-6394
...
Force array_walk to not infer input type.
2021-09-06 16:33:48 +03:00
Nicolas Giraud
b0444f2a7d
Add missing definition of callmap in the history.
2021-09-06 15:22:33 +02:00
Nicolas Giraud
9df0edbbab
Force array_walk to not infer input type.
2021-09-06 15:15:25 +02:00
Aleksandr Zhuravlev
f290e0fa3e
Changed signature of Serializable::unserialize stub
2021-09-06 22:55:12 +12:00
Bruce Weirdan
a494fc160b
Merge pull request #6436 from orklah/list-doc
2021-09-06 01:01:38 +03:00
orklah
4602e4ae22
change definition of list regarding is_list RFC
2021-09-05 23:03:55 +02:00
Bruce Weirdan
0f2152ac97
Merge pull request #6434 from weirdan/flag-invalid-enum-backing-type
...
Flag invalid backing types for enums
2021-09-05 20:30:01 +03:00
Bruce Weirdan
7a01bbcf5d
Merge pull request #6433 from weirdan/consistently-encode-xml-reports
2021-09-05 20:29:47 +03:00
Bruce Weirdan
7b11024886
Flag invalid backing types for enums
...
Fixes vimeo/psalm#6428
2021-09-05 20:12:24 +03:00
Bruce Weirdan
abf557da44
Encode XML output consistently
...
This fixes test failures when running on PHP 8.1, due to changed
`htmlspecialchars()` defaults
2021-09-05 20:06:59 +03:00
Bruce Weirdan
916b098b00
Merge pull request #6421 from weirdan/ftp-resource-to-objects
2021-09-05 00:00:09 +03:00
Bruce Weirdan
08155dcb41
Added FTP\Connection
class
2021-09-04 23:45:21 +03:00
Bruce Weirdan
36dfeed774
Converted ftp functions to use link object instead of a resource
...
Fixes vimeo/psalm#6403
2021-09-04 23:44:57 +03: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
Bruce Weirdan
b710aab148
Merge pull request #6419 from TysonAndre/in_array-fix
2021-09-04 21:56:36 +03:00
Bruce Weirdan
3a3fde332e
Merge pull request #6392 from orklah/control-action-test
2021-09-04 21:38:08 +03:00
Bruce Weirdan
de4b344803
Merge pull request #6400 from craigfrancis/taint-limits
...
Add section on limitations
2021-09-04 21:32:22 +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
Bruce Weirdan
2e9a3cb4f3
Merge pull request #6409 from weirdan/document-callmaps
2021-09-04 20:13:49 +03:00
Tyson Andre
58e7ae1809
Also support non-literal types in strict in_array() check
...
Modified approach to #6396 by orklah
Fixes #6333
Co-Authored-By: orklah <ronan_morin@hotmail.com>
2021-09-04 12:34:49 -04:00
Bruce Weirdan
6e2131da43
s/aded/added/
2021-09-04 19:27:09 +03:00
Bruce Weirdan
8c54e68efd
Added documentation on callmap editing
2021-09-04 17:39:29 +03:00
Bruce Weirdan
68ad0b2b8f
Update number of contributors
2021-09-04 16:30:16 +03:00
Bruce Weirdan
d9ceb8779f
Merge pull request #6398 from orklah/array_is_list
2021-09-04 15:55:23 +03:00
orklah
ea50e5db4d
add test
2021-09-04 14:19:49 +02:00
orklah
861d2187dd
fix tests
2021-09-04 14:17:55 +02:00
orklah
de27693015
change test to show while loop with truthy value is still inferred
2021-09-04 14:10:12 +02:00
orklah
f9b37cea5b
name error
2021-09-04 14:08:04 +02:00
orklah
c8cf503367
introduce isAlwaysFalsy and isAlwaysTruthy
2021-09-04 13:56:13 +02:00
Craig Francis
3d65a8aca9
Add section on limitations
2021-09-04 12:46:15 +01:00
orklah
9cd8917b88
create callmap for 8.1 and introduce array_is_list
2021-09-04 13:25:23 +02:00
orklah
e99c1951ae
Make Psalm understand infinite while loop in control actions
2021-09-02 22:28:01 +02:00
Bruce Weirdan
a655ca81c1
Merge pull request #6391 from ro0NL/6388
2021-09-02 23:23:32 +03:00
Bruce Weirdan
4b3d02f8cb
Merge pull request #6390 from orklah/templateGenerator
...
fix Generator giving templates to Iterator
2021-09-02 23:14:17 +03:00