147129345e
Add failing test
2023-12-01 17:23:35 +01:00
ead2908464
Fixup tests
2023-12-01 17:05:23 +01:00
f652cf09d8
Merge branch 'fix_array_key_exists_negation' into fix_literal_union_key
2023-12-01 16:31:24 +01:00
1a4656564a
Cleanup
2023-12-01 16:31:01 +01:00
ab3a17b7b0
Fix
2023-12-01 16:11:14 +01:00
2e249ab3fa
Create keyed arrays when assigning literal union keys
2023-12-01 16:03:08 +01:00
ef169893aa
cs-fix
2023-12-01 15:07:55 +01:00
cab7cf0330
Fix
2023-12-01 15:03:24 +01:00
edf2d1e4b6
Fix
2023-12-01 15:03:17 +01:00
7e948419cd
Fix array_key_exists negation
2023-12-01 13:37:28 +01:00
461cd184e5
cs-fix
2023-12-01 12:25:30 +01:00
8111319fc3
Fix
2023-12-01 12:25:04 +01:00
eabb57ff02
Use correct file path while adding unused suppressions for virtual __constructs
2023-12-01 12:03:24 +01:00
Tinjo Schöni
4f458b46bc
Fix static magic method pureness not being inherited from traits
...
https://github.com/vimeo/psalm/pull/10385 "broke" this by propagating pseudo static methods from traits to using classes.
`AtomicStaticCallAnalyzer` was then not capable of dealing with this, because now these static pseudo methods actually exist.
As long as the methods from traits aren't actually transferred to the using class, it seems right that the logic in `AtomicStaticCallAnalyzer` uses `::getDeclaringMethodId()` instead of `::getAppearingMethodId()` for this purpose.
2023-11-29 23:22:14 +01:00
orklah
f9f8bacdf1
Merge pull request #10424 from kkmuffme/use-pr-branch-name-for-randomization-of-tests
...
use branch name to randomize tests to ensure test dependencies will error
2023-11-29 18:22:33 +01:00
orklah
47d0df1c71
Merge pull request #10423 from kkmuffme/update-define-constant-types
...
update define types to be correct
2023-11-29 18:21:39 +01:00
kkmuffme
2c5645c466
use branch name to randomize tests to ensure test dependencies will error
2023-11-29 08:56:31 +01:00
kkmuffme
4f25ccee40
update define types to be correct
2023-11-29 08:51:15 +01:00
Tinjo Schöni
d91aab15be
Restore support for null coalesce on match expressions
...
https://github.com/vimeo/psalm/pull/10068 added isset restrictions that didn't consider null coalesces on match expressions.
This restores that support by converting the match expression to a virtual variable for the isset analysis, similar to other incompatible expressions.
2023-11-29 02:08:23 +01:00
orklah
982f95c87e
Merge pull request #10408 from tm1000/patch-2
...
Declare we do not support document highlighting
2023-11-26 21:36:07 +01:00
orklah
61405e485a
Merge pull request #10409 from nicelocal/fix_backtick_analysis
...
Fix backtick analysis
2023-11-26 20:04:51 +01:00
73a340fde8
Cleanup
2023-11-26 19:46:45 +01:00
1e2e2248d9
Fix wrong type
2023-11-26 19:34:49 +01:00
e386b072f3
Fix
2023-11-26 13:33:25 +01:00
35f194e9e8
Fix backtick analysis
2023-11-26 13:12:11 +01:00
Andrew Nagy
461ff956c5
Fixes #10397
...
Explicitly state that we do not support document highlighting.
2023-11-25 15:20:44 -08:00
orklah
b654545aa0
Merge pull request #10402 from alcaeus/mongodb-stubs
...
Update MongoDB stubs for 1.17
2023-11-23 19:03:48 +01:00
Andreas Braun
acf92537c1
Update MongoDB stubs for 1.17
2023-11-23 10:52:24 +01:00
orklah
2897ba6365
Merge pull request #10396 from danog/fix_circleci
...
Fix circleci builds
2023-11-22 21:38:47 +01:00
orklah
d92523d305
Merge pull request #10399 from niconoe-/fix-10398
...
Fix #10398 : add missing methods of ReflectionProperty class in CallMap and CallMap deltas.
2023-11-22 21:22:39 +01:00
orklah
579cc084cc
Merge pull request #10370 from kkmuffme/fix-misc-callable-bugs
...
Fix misc callable bugs
2023-11-22 21:19:56 +01:00
Nicolas Giraud
ed1ea524c9
Fix #10398 : add missing methods of ReflectionProperty class in CallMap and CallMap deltas.
2023-11-22 17:19:22 +01:00
29ac774b01
Fix
2023-11-22 15:35:48 +01:00
645e9afba2
Fix circleCI builds
2023-11-22 15:27:19 +01:00
orklah
07acefd0b6
Merge pull request #10388 from kkmuffme/temp-empty-reconciliations-failing-tests
...
Fix redundant condition mixed type escape hatch & loose comparison int type shouldnt be mixed
2023-11-21 18:02:53 +01:00
kkmuffme
0d7c5a2d8e
Fix docblock mixed escape hatch
...
revert https://github.com/vimeo/psalm/pull/7663 including previous from_docblock Mixed assignments, as the tests required 2 suppressions and created an escape hatch via mixed on higher psalm error levels, where mixed isn't reported, thus hiding potentially fatal bugs.
It's still possible to run the validation of docblock docs though: a @var declaration that contains both possible types, to ensure later code won't escape any checks (and no @psalm-suppress needed at all)
This is also a required preparation to fix some isset issues of https://github.com/vimeo/psalm/issues/9759
2023-11-21 13:01:55 +01:00
kkmuffme
d94f7bd553
loose comparisons of int with string shouldn't change change the int to empty-mixed
2023-11-21 13:01:15 +01:00
orklah
5f0332b678
Merge pull request #10391 from tscni/fix/phar-build-failure
...
Fix Phar build failure
2023-11-21 07:21:25 +01:00
Tinjo Schöni
466bda088b
Fix Phar build failure
...
The issue was likely caused by Composer 2.6.4 making the autoloader generation (more) reproducible (composer/composer#11663 )
We can either try to change the generated autoloader with an autoloader suffix, or just change the Psalm root directory for the smoke test. The latter approach seems easier. :P
2023-11-21 01:22:02 +01:00
orklah
577808b12d
Merge pull request #10389 from kkmuffme/fix-ci-tests-chunks
...
fix CI "split" unevenly splits the number of tests
2023-11-18 14:34:44 +01:00
kkmuffme
2c6aa77baf
fix CI "split" unevenly splits the number of tests
2023-11-18 13:31:37 +01:00
orklah
98851b590c
Merge pull request #10379 from kkmuffme/update-decimal-stubs
...
update decimal stubs from documented URL
2023-11-18 10:04:03 +01:00
kkmuffme
00bed512af
suppress false positive
2023-11-18 08:55:20 +01:00
kkmuffme
fd2f876574
Remove tests for partially stubbed classes introduced in https://github.com/vimeo/psalm/issues/849 , as this didn't work correctly and lead to errors not being reported at all in many cases (since the error was reported for the stubs file and therefore suppressed)
...
With the previous commit "Fix for classes what https://github.com/vimeo/psalm/pull/8503 fixed for functions", the stubs of classes where the actual file is in the analyzed files are ignored completely.
2023-11-18 08:55:20 +01:00
kkmuffme
3299689d99
revert 804087b
of https://github.com/vimeo/psalm/issues/10026
2023-11-18 08:55:20 +01:00
kkmuffme
be6028d7d4
Fix potential cache race conditions/cache not deleted with non-lowercase file paths and add missing docs
2023-11-18 08:55:20 +01:00
kkmuffme
adb8677f20
Fix optional args not enforced in callable (fix for non-closure/arrow functions of https://github.com/vimeo/psalm/issues/8438 ) Fix array callables not treated as callable https://psalm.dev/r/23f3787207 (this is needed to fix the optional args enforcement for array callables too)
2023-11-18 08:55:20 +01:00
kkmuffme
0ca2d4f597
Fix https://github.com/vimeo/psalm/issues/6085
2023-11-18 08:55:20 +01:00
kkmuffme
cea98fffa0
Fix for classes what https://github.com/vimeo/psalm/pull/8503 fixed for functions (as some issues didn't report for other reasons, which were solved since then)
2023-11-18 08:55:20 +01:00
kkmuffme
92bcc5cfe0
Fix that files passed via CLI but are not in projectFiles reported only a limited, random selection of errors instead of all - treat all files passed as CLI args as if they were in projectFiles
2023-11-18 08:55:20 +01:00