Andrew Nagy
|
b0705b4e29
|
fix tests
|
2022-11-30 18:14:06 +00:00 |
|
Andrew Nagy
|
da66665de9
|
Merge branch '4.x' into feature/upgrade-lsp
|
2022-11-30 17:59:23 +00:00 |
|
Vincent Langlet
|
6916d414e2
|
Add support for phpstan-param-out
|
2022-11-07 10:22:33 +01:00 |
|
Bruce Weirdan
|
81423dc12b
|
Remove argc and argv elements from $_ENV
Fixes vimeo/psalm#8662
|
2022-11-05 15:19:21 -04:00 |
|
orklah
|
3daad0c32d
|
Merge pull request #8652 from VincentLanglet/improveSerializeSupport
serialize is not pure for array of object
|
2022-11-03 20:29:09 +01:00 |
|
Vincent Langlet
|
c02ed9da0a
|
Fix cs
|
2022-11-03 20:24:15 +01:00 |
|
Vincent Langlet
|
fbaf6afb30
|
Try
|
2022-11-03 18:11:01 +01:00 |
|
Vincent Langlet
|
dc977964c6
|
Refacto
|
2022-11-03 16:05:40 +01:00 |
|
Vincent Langlet
|
6382af1c97
|
Add support for phpstan assertions
|
2022-11-03 14:26:27 +01:00 |
|
Vincent Langlet
|
4a27322144
|
serialize is not pure for array of object
|
2022-11-03 11:48:33 +01:00 |
|
Vincent Langlet
|
0bdfc4b60b
|
Mark serialize as impure only for object
|
2022-11-02 23:08:03 +01:00 |
|
Vincent Langlet
|
ef0a17ee11
|
Do not report serialize as unused
|
2022-11-02 22:52:42 +01:00 |
|
Fran Moreno
|
933caa8f69
|
Allow to set PHP 8.2
|
2022-11-01 16:25:03 +01:00 |
|
Alies Lapatsin
|
855eef9205
|
Increment PHP_MINOR_VERSION (to load delta for PHP 8.2)
|
2022-10-31 12:44:34 +03:00 |
|
orklah
|
b739b67080
|
Merge pull request #8594 from kkmuffme/callable-invalidargument-required-param-mismatch-missing-error
ensure callbacks have the required number of params
|
2022-10-22 12:20:29 +02:00 |
|
kkmuffme
|
edeff148b4
|
handle variadic
|
2022-10-22 08:28:56 +02:00 |
|
orklah
|
48b8efde99
|
Merge pull request #8584 from boesing/feature/8521
Enhance type detection for internal php functions `key`, `current`, `end` and `reset`
|
2022-10-18 00:07:13 +02:00 |
|
kkmuffme
|
41fbb14586
|
fix wrong php version id in $_FILES
|
2022-10-17 23:05:50 +02:00 |
|
Maximilian Bösing
|
7f35bff0d9
|
feature: enhance type detection for internal php functions key , current , end and reset
Signed-off-by: Maximilian Bösing <2189546+boesing@users.noreply.github.com>
|
2022-10-17 20:24:40 +02:00 |
|
kkmuffme
|
25b01ce3a3
|
ensure callbacks have the required number of params
Fix https://github.com/vimeo/psalm/issues/8593
|
2022-10-17 16:03:55 +02:00 |
|
Greg Hargreaves
|
b89ff32b7a
|
Remove duplicated numeric type declaration
|
2022-10-14 02:00:25 +01:00 |
|
Greg Hargreaves
|
06581ce4b0
|
Add additional checks for concat of non-empty strings to return non-falsy
|
2022-10-14 01:54:06 +01:00 |
|
Steven Dickinson
|
68f6ba873e
|
Fix MinMaxReturnTypeProvider when handling TDependentListKeys
|
2022-10-11 14:13:40 +01:00 |
|
orklah
|
60129819f5
|
add import
|
2022-10-10 18:10:49 +02:00 |
|
orklah
|
0f6891c757
|
fix typo
|
2022-10-10 18:07:26 +02:00 |
|
kkmuffme
|
3a420f4f7a
|
phpunit bool|string
|
2022-10-10 17:06:00 +02:00 |
|
kkmuffme
|
0da493b5bb
|
fix docs to match example
|
2022-10-10 16:28:46 +02:00 |
|
kkmuffme
|
1e6019ddde
|
size and error in $_FILES more specific
|
2022-10-10 16:18:27 +02:00 |
|
kkmuffme
|
fa53050483
|
fix $_FILES
|
2022-10-10 16:07:14 +02:00 |
|
kkmuffme
|
b5f6da7285
|
add common phpunit $_SERVER values bool
Fix https://github.com/vimeo/psalm/issues/8556
|
2022-10-10 14:31:35 +02:00 |
|
Gregory Hargreaves
|
41a6afda32
|
Add check for const with reserved word class
|
2022-10-07 09:44:10 +01:00 |
|
orklah
|
313ebf428b
|
Merge pull request #8502 from kkmuffme/option-to-only-report-errors-for-passed-file
add hideAllErrorsExceptPassedFiles config option
|
2022-09-25 13:02:00 +02:00 |
|
kkmuffme
|
b1c0c2d8a1
|
add hideAllErrorsExceptPassedFiles config option
for files only (not directories, since that wouldn't make practical sense)
|
2022-09-24 10:44:01 +02:00 |
|
kkmuffme
|
e803af4cd4
|
use cache for declared function when available before falling back to stubs
fixes return type issues reported for the wrong file
|
2022-09-22 02:10:51 +02:00 |
|
kkmuffme
|
d69be4b9a2
|
objects even with __toString methods cannot be cast to int/float
|
2022-09-19 21:54:16 +02:00 |
|
Ricardo Boss
|
bf1c0320fd
|
Cherry-pick: Try to provide literal int types when possible (fixes #6966) (#7071)
* Fixed vimeo/psalm#6966
* Only accept >= 0 values for mode argument in round()
* Made round() only return float or literal float values and remove unneeded test
* Registered RoundReturnTypeProvider
* Updated cast analyzer to handle single string literal int values as literal ints
* Fixed psalm errors
* Fix invalid property accesses
* Addressed comments
* Added Tests
* Marked RoundReturnTypeProvider as internal
* Fixed CS
|
2022-09-19 21:54:16 +02:00 |
|
kkmuffme
|
da68e9d739
|
fix psalm-internal risky casts
|
2022-09-19 21:54:16 +02:00 |
|
kkmuffme
|
7cdad99645
|
add RiskyCast
|
2022-09-19 21:54:16 +02:00 |
|
kkmuffme
|
c3eebe2579
|
be less strict for generic string type
|
2022-09-19 21:54:16 +02:00 |
|
kkmuffme
|
d32efb0619
|
float/int always 1 on "error", no PossiblyInvalidCasts by default
|
2022-09-19 21:54:16 +02:00 |
|
kkmuffme
|
39ec75523e
|
same for float
|
2022-09-19 21:54:16 +02:00 |
|
kkmuffme
|
3bec76acb8
|
fix invalid casts for int
https://psalm.dev/r/0d284c6f48
|
2022-09-19 21:54:16 +02:00 |
|
kkmuffme
|
e4b7cdf26f
|
fix type for (string) true
|
2022-09-19 21:54:16 +02:00 |
|
dennis
|
ab690df4da
|
Improved class name generation for @throws annotation
|
2022-09-19 21:09:45 +02:00 |
|
dennis
|
844d7999c5
|
Ensure @throws annotations reference valid Exception classes
|
2022-09-19 21:09:45 +02:00 |
|
orklah
|
3b7e508c78
|
Merge pull request #8473 from kkmuffme/detailed-superglobal-types
make superglobals more specific
|
2022-09-19 10:48:44 +02:00 |
|
kkmuffme
|
e2e6265ba1
|
ignore nullable issues for $argv/$argc
|
2022-09-19 09:45:55 +02:00 |
|
orklah
|
5db59910bd
|
Merge pull request #8491 from HypeMC/array-column-fix
Fix array_column with object and column name null
|
2022-09-18 11:25:42 +02:00 |
|
HypeMC
|
602e26edd4
|
Fix array_column with object and column name null
|
2022-09-17 21:21:33 +02:00 |
|
hirokinoue
|
9071e877a8
|
fix according to psalm analysis
|
2022-09-18 01:15:09 +09:00 |
|