76458e0b50
Add test
2023-12-06 14:52:54 +01:00
d3b7f3f0b4
Fix
2023-12-06 14:47:24 +01:00
527b04dde6
Fix
2023-12-06 14:24:17 +01:00
4ed0fe934f
Fix shaped array class string key combination
2023-12-06 14:12:19 +01:00
orklah
c620f6e80d
Merge pull request #10439 from nicelocal/fix_literal_union_key
...
Use keyed arrays when assigning literal union keys & assertion fixes
2023-12-03 21:21:41 +01:00
390df68966
Merge branch '5.x' into fix_literal_union_key
2023-12-03 20:55:05 +01:00
orklah
1cca558a2b
Merge pull request #10419 from nicelocal/byref_closure_use
...
Implement by-ref closure use analysis
2023-12-03 20:53:55 +01:00
37cf82ea52
Merge branch '5.x' into fix_literal_union_key
2023-12-03 20:50:05 +01:00
75633cbc6d
Merge remote-tracking branch 'hub/5.x' into byref_closure_use
2023-12-03 20:47:51 +01:00
orklah
62f32f4d09
Merge pull request #10431 from nicelocal/fix_unused_psalm_suppress
...
Emit UnusedPsalmSuppress issues for suppressed issues already removed
2023-12-03 20:44:55 +01:00
a2d89d0990
Fixup
2023-12-03 15:32:20 +01:00
eb54624461
Fixup
2023-12-03 15:30:57 +01:00
18a6c0b6e9
Implement by-ref closure use analysis
2023-12-03 15:28:51 +01:00
de53638295
Fixes
2023-12-03 13:06:36 +01:00
ee5e4b800f
Update
2023-12-03 12:36:14 +01:00
b03b846682
Emit UnusedPsalmSuppress issues for suppressed issues already removed by plugins
2023-12-03 11:45:17 +01:00
orklah
bcb73f2c6f
Merge pull request #10441 from rarila/patch-1
...
Fix POSIX only detection of absolute paths
2023-12-03 00:16:21 +01:00
orklah
0659967d05
Merge pull request #10429 from tscni/fix/trait-call-static
...
Fix static magic method pureness not being inherited from traits
2023-12-02 14:30:49 +01:00
orklah
794bdaac4f
Merge pull request #10422 from tscni/fix/match-null-coalesce
...
Restore support for null coalesce on match expressions
2023-12-02 14:29:20 +01:00
orklah
fe34213267
Merge pull request #10434 from nicelocal/fix_virtual
...
Use correct file path while adding unused suppressions for virtual __…
2023-12-02 14:16:57 +01:00
orklah
8a180e6fc0
Merge pull request #10442 from kkmuffme/add-missing-r-to-args
...
Fix CLI -r error
2023-12-02 14:16:02 +01:00
orklah
f7df43a79e
Merge pull request #10443 from nielsdos/5.x
...
Fix return type of DOMXPath::query
2023-12-02 14:13:37 +01:00
Niels Dossche
6eba2f564c
Fix return type of DOMXPath::query
...
This can also return namespace nodes, which are not a child class of
DOMNode.
2023-12-02 12:02:56 +01:00
kkmuffme
c6bf949c71
Fix CLI -r error
...
Fix https://github.com/vimeo/psalm/issues/10418
2023-12-02 09:04:37 +01:00
rarila
59fd539ab9
Fix POSIX only detection of absolute paths
2023-12-01 18:01:57 +01:00
0aeb87c21c
Simplify
2023-12-01 17:57:50 +01:00
9119ce0541
Fixup
2023-12-01 17:48:47 +01:00
17bf9a45a6
Fixup
2023-12-01 17:46:24 +01:00
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