Bruce Weirdan
1530121716
Merge pull request #6229 from gmessier/master
2021-08-08 21:09:22 +03:00
Maurício Meneghini Fauth
1bc71522fb
Fix wrong return type for imagejpeg
GD function
...
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2021-08-08 14:57:17 -03:00
Bruce Weirdan
fdfed1123a
Merge pull request #6247 from bitwise-operators/callmap-delta-inconsistencies
2021-08-08 20:04:27 +03:00
Bruce Weirdan
66056e391b
Restored some callmap types
2021-08-08 19:50:16 +03:00
Bruce Weirdan
66466cea60
Clarify delta 7.1 docblock
2021-08-08 18:55:19 +03:00
Bruce Weirdan
8c531fec4b
Tweaks
...
Changed the format of the historical callmap to be plain signature list,
as it isn't really a delta file and renamed the file to not be confused
with deltas.
Added a test to ensure entries in main callmap have history.
2021-08-08 18:43:42 +03:00
bjscharp
90a09a7a9a
Remove outdated line about removal from delta docblocks
2021-08-08 15:42:28 +02:00
bjscharp
88f15f0526
Fix version error in delta docblocks
2021-08-08 15:40:26 +02:00
bjscharp
ada1a60a4c
Corrected docblock in historic delta file
2021-08-08 11:04:15 +02:00
bjscharp
07d48d779a
Merge branch 'master' into callmap-delta-inconsistencies
2021-08-08 10:41:42 +02:00
bjscharp
96056d329f
Add simple test to verify outout of getCallMap method
...
Convert deltafile format to new style proposed by weirdan
Modify CallMapTest to use new format
Modify InternalCallMapHandler to use new format
Move assertions to base testcase
2021-08-08 10:39:54 +02:00
orklah
570aa1bb8e
fix test?
2021-08-07 10:18:06 +02:00
orklah
2253667bd5
fix CS, remove redundant vars
2021-08-07 00:22:47 +02:00
orklah
b194291bb3
try to fix offsets
2021-08-07 00:08:19 +02:00
Bruce Weirdan
cccfe7582d
Merge pull request #6252 from boesing/feature/union-float-literal
...
Literal float methods to `Union` type
2021-08-06 23:07:09 +03:00
Maximilian Bösing
9d59fbe6bb
feature: introduce literal float methods to Union
type
...
- Added `Psalm\Type\Union#isSingleFloatLiteral`
- Added `Psalm\Type\Union#getSingleFloatLiteral`
- Added `Psalm\Type\Union#hasLiteralFloat`
Signed-off-by: Maximilian Bösing <2189546+boesing@users.noreply.github.com>
2021-08-06 21:05:26 +02:00
Tyson Andre
3486490080
Use different psalm cache for different error levels
...
Fixes #4952
2021-08-06 12:46:15 -04:00
bjscharp
d1d9e3763c
Removed unused test dependencies
2021-08-06 07:45:17 +02:00
bjscharp
a01b92de8a
Split duplicate add/remove check off into seperate tests to deal with several extra error paths
2021-08-06 07:33:37 +02:00
bjscharp
f39c462138
Add missing bcadd function to 8.0 delta file.
...
To prevent similar errors, add baseline file with signatures pre-7.1, to help verify delta files are correct.
Modify test to use this to detect missing 'old' entries
2021-08-05 23:21:41 +02:00
Alexandr Zolotukhin
65a129e3c2
Fix type reconciliation for complex cases with union types
2021-08-06 00:13:26 +03:00
Bruce Weirdan
457695e466
Merge pull request #6248 from TysonAndre/fix-typos
...
[skip ci] Fix typos in docs/
2021-08-05 23:58:33 +03:00
Tyson Andre
0ae573a158
[skip ci] Fix typos in docs/
2021-08-05 16:39:14 -04:00
Bruce Weirdan
3c8842f3cc
Merge pull request #6242 from orklah/unusedvarann
2021-08-05 23:18:56 +03:00
Alexandr Zolotukhin
9687836519
Fix intersection calculation for unions of scalar types
2021-08-05 23:15:58 +03:00
bjscharp
4997208ee7
Merge branch 'master' into callmap-delta-inconsistencies
...
# Conflicts:
# dictionaries/CallMap_80_delta.php
2021-08-05 22:03:32 +02:00
orklah
10049450f8
fix tests for the last time............................................... maybe?
2021-08-05 21:48:37 +02:00
orklah
ba2f623754
fix unused variables
2021-08-05 21:32:32 +02:00
orklah
50fd9065de
fix tests
2021-08-05 21:15:04 +02:00
orklah
3fe678b914
ignore UnnecessaryVarAnnotation
2021-08-05 21:05:44 +02:00
Bruce Weirdan
1044c2dc01
Merge pull request #6244 from masonmcelvain/bugfix--permit-null-timestamp-to-date-function
2021-08-05 21:38:30 +03:00
bjscharp
ac5ea252ff
Added test to detect problems and inconsistencies in CallMap files
...
- Fixed inconsistencies in callmap delta files (mainly 8.0)
- Added several missing changes in the bc_* functions
- Added several missing changes in the mb_* functions
- Added several missing changes in the xml_parser_* functions
- Fixed several issues with sodium_ functions
- Removed all but one of the date_* functions. All were marked as having lost the option to return false, despite this only being true for date_format
2021-08-05 19:07:31 +02:00
Alexandr Zolotukhin
3d61f6ca65
Add more tests
2021-08-05 16:42:52 +03:00
Mason McElvain
b2ba774cb9
Update CallMap with PHP 8 date() signature
2021-08-04 15:27:32 -07:00
Mason McElvain
81661395ce
Add old date signature to CallMap_80_delta
2021-08-04 15:26:42 -07:00
Mason McElvain
4d2a5b1bfa
Permit null timestamp to date() in PHP 8
...
PHP 8 allows the timestamp to be null, but version 7.4 doesn't.
Creates a mapping for date() to allow $timestamp to be null in PHP 8.
2021-08-04 15:07:45 -07:00
Bruce Weirdan
019b35850a
Merge pull request #6240 from orklah/arithmetics
2021-08-04 20:56:59 +03:00
orklah
c706497cbd
restrict types
2021-08-04 19:45:25 +02:00
orklah
0c75ac89d0
refactor arithmetics
2021-08-04 19:43:27 +02:00
Guillaume Messier
259277db3f
Remove xml.xsd from PHAR
2021-08-03 15:43:41 -04:00
Guillaume Messier
f24b6aba1d
Use anyAttribute to prevent xml:base attributes added by XInclude to break the schema validation
2021-08-03 15:39:41 -04:00
Alexandr Zolotukhin
6dd24285c5
Return Empty type if there's no intersection between existing and assertion type
2021-08-03 21:10:59 +03:00
Alexandr Zolotukhin
c51f0f4fbf
Add tests with needle/haystack value of union types which intersect partially
2021-08-03 21:09:59 +03:00
Bruce Weirdan
5f8d8f5bf5
Merge pull request #6239 from weirdan/drop-appveyor-reporter
...
Drop Appveyor reporter as we no longer use Appveyor
2021-08-03 19:50:47 +03:00
Bruce Weirdan
6540e28e5b
Drop Appveyor reporter as we no longer use Appveyor
2021-08-03 19:38:11 +03:00
Bruce Weirdan
2ecd1d8bd3
Merge pull request #6238 from orklah/unused-foreach-fixable
...
don't flag UnusedForeachValue as fixable
2021-08-03 19:37:07 +03:00
Alexandr Zolotukhin
586e8a157e
Fix tests with loose types. Fix return type in the reconciler.
2021-08-03 19:34:35 +03:00
orklah
006088d578
don't flag UnusedForeachValue as fixable
2021-08-03 18:24:53 +02:00
Alexandr Zolotukhin
097e88a7cb
Improved in_array assertion extraction
...
Extract non-literal type assertion from in_array
Extract false, true and null assertion
Fix assertion against arrays with union-typed values
Fix assertion against non-sealed arrays
2021-08-03 17:29:32 +03:00
Alexandr Zolotukhin
e278b4fd93
Add failing test cases
2021-08-03 17:29:28 +03:00