1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-12 01:09:38 +01:00
Commit Graph

9246 Commits

Author SHA1 Message Date
Bruce Weirdan
8fb858c804
Merge pull request #6486 from ssnepenthe/update-xdebug-get-profiler-filename-return-type 2021-09-15 16:28:24 +03:00
ssnepenthe
655c000009 Update return type for xdebug_get_profiler_filename()
Returns false when profiler is not active, string otherwise
2021-09-14 13:45:23 -07:00
whsv26
fd4eeaae2e Fix phpcs issue for is_null function. 2021-09-14 00:52:32 +03:00
whsv26
6ac29fc965 Fix code style. 2021-09-14 00:50:23 +03:00
whsv26
8b54cca3a8 Fix different context templates invalid argument bug for trait. 2021-09-13 23:43:09 +03:00
Bruce Weirdan
6f1d43813f
Merge pull request #6476 from orklah/alwaysTruthy 2021-09-13 02:14:09 +03:00
orklah
96adb96dab fix or suppress cases in Psalm 2021-09-12 23:12:23 +02:00
orklah
44bfa2c21c flag alwaysTruthy conditions as redundant 2021-09-12 22:53:44 +02:00
Bruce Weirdan
f496ccaa25
Merge pull request #6465 from Jean85/patch-1
Fix #6464: false positive for RecursiveArrayIterator::CHILD_ARRAYS_ONLY
2021-09-09 17:29:24 +03:00
Alessandro Lai
55cbbd4fe7
Add test 2021-09-09 16:04:12 +02:00
Alessandro Lai
1aba202a5a
Fix #6464: false positive for RecursiveArrayIterator::CHILD_ARRAYS_ONLY 2021-09-09 11:12:24 +02:00
Bruce Weirdan
e6e5869851
Merge pull request #6459 from chynkm/patch-1
SublimeText configuration
2021-09-08 23:37:06 +03:00
Bruce Weirdan
58b836806c
Merge pull request #6462 from SMAtaurRahman/php8.1 2021-09-08 23:33:11 +03:00
Bruce Weirdan
beb0476eed
Added test 2021-09-08 22:41:23 +03:00
S.M. Ataur Rahman
c13ed7cc28 type of "$http_response_header" is "list<string>" now 2021-09-09 01:36:07 +06:00
KM
ae4282ad5c
SublimeText configuration
I have updated SublimeText configuration values for easier integration.
2021-09-08 18:28:52 +05:30
Bruce Weirdan
e10b809cc8
Merge pull request #6454 from brayniverse/master 2021-09-08 12:49:43 +03:00
Christopher Bray
847f1e41e7 Make imageavif arguments optional 2021-09-08 09:17:06 +01:00
Bruce Weirdan
3fcfc948b0
Merge pull request #6453 from tvdijen/bugfix/preg_filter 2021-09-08 00:16:59 +03:00
Christopher Bray
46f7a56e13 Add imageavif to CallMap 2021-09-07 22:07:02 +01:00
Christopher Bray
1bc6a231e0 Add imagecreatefromavif to CallMap 2021-09-07 22:03:31 +01:00
Tim van Dijen
417ea9c43d
Fix return-type 2021-09-07 23:02:28 +02:00
Bruce Weirdan
d7ef94f98d
[skip-ci] typos 2021-09-08 00:02:02 +03:00
Bruce Weirdan
0a0ae4bbf4
Merge pull request #6437 from weirdan/basic-enum-checks
Basic enum checks
2021-09-07 13:03:28 +03:00
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