1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-27 04:45:20 +01:00
Commit Graph

10981 Commits

Author SHA1 Message Date
Matthew Brown
58cd0dae2e Bump test-with-real-projects PHP version 2022-02-08 11:53:51 -05:00
Matthew Brown
457abc6e13 Don’t subtract int from array-key if not equality 2022-02-08 11:24:05 -05:00
Matthew Brown
13824d5a33 Fix awkward workaround for loop assignment map 2022-02-08 10:59:29 -05:00
Matthew Brown
eda8e04a81 Narrow graph arrayfetch dataflow 2022-02-08 10:59:29 -05:00
Bruce Weirdan
faad966a9b
Merge pull request #7598 from weirdan/finalize-nodes 2022-02-07 09:09:07 +02:00
Bruce Weirdan
6c587c7a17
Update UPGRADING.md 2022-02-07 02:10:06 +02:00
Bruce Weirdan
b25a93e753
Finalize virtual nodes 2022-02-07 02:05:47 +02:00
Bruce Weirdan
0e5ad62d32
Merge pull request #7597 from weirdan/finalize-storages 2022-02-06 23:42:39 +02:00
Bruce Weirdan
bb72185f41
Update UPGRADING.md 2022-02-06 23:15:22 +02:00
Bruce Weirdan
958d1ca695
Finalize storages 2022-02-06 23:09:03 +02:00
Bruce Weirdan
7b8dc9989a
Merge pull request #7595 from weirdan/finalize-issues 2022-02-06 22:53:10 +02:00
Bruce Weirdan
aea950a10c
Update UPGRADING.md 2022-02-06 03:52:56 +02:00
orklah
3a2b4124e2
Merge pull request #7593 from orklah/docproperties
doc about property initialization
2022-02-06 00:22:09 +01:00
Bruce Weirdan
8a41d61925
Apply suggestions from code review
Co-authored-by: AndrolGenhald <AndrolGenhald@users.noreply.github.com>
2022-02-06 00:49:27 +02:00
Bruce Weirdan
a331ac0b21
Finalize issues 2022-02-06 00:27:18 +02:00
Bruce Weirdan
e00cbc71c3
Merge pull request #7578 from weirdan/finalize-more-classes 2022-02-06 00:02:27 +02:00
Bruce Weirdan
75c58712c1
Update UPGRADING.md 2022-02-05 23:51:06 +02:00
Bruce Weirdan
3e837cabd0
Finalize (and internalize) more classes 2022-02-05 23:51:03 +02:00
Bruce Weirdan
a83c717d43
Merge pull request #7594 from sasezaki/branch-alias-5 2022-02-05 23:50:06 +02:00
Bruce Weirdan
ead3c20d36
Merge pull request #7591 from weirdan/allow-mocking-final-classes 2022-02-05 23:48:22 +02:00
sasezaki
67bd9627b4 Fixed composer branch-alias 2022-02-05 21:07:41 +09:00
orklah
e40bcc2d29 doc about property initialization 2022-02-05 12:27:53 +01:00
Bruce Weirdan
788de797eb
Allow mocking final classes 2022-02-05 06:40:20 +02:00
Bruce Weirdan
b06fb932d4
Merge pull request #7585 from tomasz-kusy/magic-const-fix 2022-02-04 21:36:20 +02:00
Tomasz Kusy
124aa22fe9 Resolve __DIR__ / __FILE__ when const/variable is used for include CS fix fix fix :) 2022-02-04 20:27:45 +01:00
Tomasz Kusy
8da45aa7d8 Resolve __DIR__ / __FILE__ when const/variable is used for include CS fix fix 2022-02-04 20:26:06 +01:00
Tomasz Kusy
b73f2c96d8 Resolve __DIR__ / __FILE__ when const/variable is used for include CS fix 2022-02-04 19:43:55 +01:00
Tomasz Kusy
bcbfbed072 Resolve __DIR__ / __FILE__ when const/variable is used for include 2022-02-04 19:39:39 +01:00
Matthew Brown
3a298d028e Rename getArrayVarId to getExtendedVarId 2022-02-04 12:49:12 -05:00
Bruce Weirdan
333f148d1b
Merge pull request #7583 from AndrolGenhald/bugfix/7580 2022-02-04 16:41:03 +02:00
Bruce Weirdan
438a80d570
Merge pull request #7576 from weirdan/add-bcc 2022-02-04 16:36:13 +02:00
AndrolGenhald
5b469ca577 Fix crash when assigning reference to unknown array offset. 2022-02-04 08:32:35 -06:00
Bruce Weirdan
220d656706
Added backward compatibility check 2022-02-04 04:15:32 +02:00
orklah
c5722dd5e8
Merge pull request #7574 from AndrolGenhald/add-extensions-to-version-message
Fix extension capitalization issue, add extensions to version message.
2022-02-03 21:23:14 +01:00
AndrolGenhald
588d9e08bc Fix extension capitalization issue, add extensions to version message. 2022-02-03 11:34:50 -06:00
orklah
f82a70e7ed
Merge pull request #7573 from phptest2/4.x
improving error message for Could not resolve config path
2022-02-03 18:03:47 +01:00
phptest2
582624a932
improving error message for Could not resolve config path
$directory_path is false, so better use $prospective_directory_path in the error message.
2022-02-03 17:58:12 +01:00
orklah
cfce264bba
Merge pull request #7565 from AndrolGenhald/fix-docs-bullet-indentation
Fix bullet indentation in documentation
2022-02-02 22:27:05 +01:00
AndrolGenhald
94eda1a9f9 Fix bullet indentation in documentation. 2022-02-02 14:48:24 -06:00
orklah
0fe14498fc
Merge pull request #7564 from AndrolGenhald/fix-globals-documentation
Fix documentation for <globals> config.
2022-02-02 21:43:32 +01:00
AndrolGenhald
9429010fda Fix documentation for <globals> config. 2022-02-02 14:38:01 -06:00
Matthew Brown
8098755ce5 Remove comma 2022-02-02 11:29:31 -05:00
Matthew Brown
b382d7db3c Remove some unnecessary code around taint analysis 2022-02-02 11:25:03 -05:00
Matthew Brown
2b81990259 Simplify var naming 2022-02-02 11:25:02 -05:00
Bruce Weirdan
2128ab1d71
Merge pull request #7561 from b2pweb/clear-context-on-static-call 2022-02-02 17:30:14 +02:00
Vincent
3c3e692e7e AtomicStaticCallAnalyzer: clear tmp var from context (fix #7556) 2022-02-02 13:51:54 +01:00
orklah
ff2636eed8
Merge pull request #7558 from orklah/tweaksToArrays
sealed keyed arrays
2022-02-01 22:56:59 +01:00
orklah
1c2ffc81c2 tweaks 2022-02-01 22:49:20 +01:00
orklah
bd14653da5
Merge pull request #7554 from Ocramius/fix/#7478-trait_exists-always-returns-boolean
Ensure `trait_exists()` always returns `bool`
2022-02-01 17:48:27 +01:00
Marco Pivetta
fabcda16b4 Ensure trait_exists() always returns bool
Fixes #7478

As discussed in the upstream issue, `trait_exists()` always returns `bool`: while
it can return `null` when the arguments passed to it do not match (either no arguments, or
3 or more arguments), we do not support that scenario, as that already doesn't respect the
type signature of this function.

We cut to the point: always make it `bool`, which is the scenario that works under healthy
operational conditions.

Ref: https://github.com/Roave/BetterReflection/pull/983#discussion_r790908170
Ref: https://psalm.dev/r/c41a43805d
Ref: https://github.com/vimeo/psalm/issues/7478#issuecomment-1020330351
Ref: https://github.com/vimeo/psalm/issues/7478#issuecomment-1020337712
Ref: https://3v4l.org/XpHmh
2022-02-01 16:51:09 +01:00