1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-15 10:57:08 +01:00
Commit Graph

8623 Commits

Author SHA1 Message Date
Matthew Brown
d883d73991 Fix template bound terminology
I had this flipped by mistake
2021-07-10 14:08:09 -04:00
Bruce Weirdan
5b36803f26
Merge pull request #6070 from weirdan/use-endtoend-test-psl
Switch PSL test to Psalm's fork
2021-07-10 00:13:29 +03:00
Bruce Weirdan
4794da0fa0
Switched PSL test to Psalm's fork 2021-07-09 23:58:37 +03:00
Bruce Weirdan
f381fba070
Merge pull request #6069 from elnoro/str-word-count-stub 2021-07-09 23:47:43 +03:00
elnoro
ec7aaa4a47
Update stubs/CoreGenericFunctions.phpstub
Co-authored-by: Bruce Weirdan <weirdan@gmail.com>
2021-07-09 23:25:12 +05:00
Ruslan Karimov
b373c0c7f9 added str_word_count to the stub file (fix #6016) 2021-07-09 21:45:18 +05:00
Bruce Weirdan
f94f3b8691
Merge pull request #6054 from caugner/6050-FunctionLikeAnalyzer-extract-setParams-addParam 2021-07-09 08:21:36 +03:00
Claas Augner
9a78b2fbc8
Mark FunctionLikeStorage::setParams()/addParam() as internal 2021-07-09 00:58:29 +02:00
Bruce Weirdan
04c9d60371
Merge pull request #6064 from ElisDN/negative-numbers
Negative number literals
2021-07-08 20:50:21 +03:00
ElisDN
61b78e117f Fix negative numbers 2021-07-08 19:17:31 +03:00
Bruce Weirdan
bbbfa69378
Merge pull request #6062 from simPod/skip-config-path
Skip argv when --config file.xml is passed
2021-07-08 11:54:05 +03:00
Simon Podlipsky
8568798747
Skip argv when --config file.xml is passed 2021-07-08 10:19:58 +02:00
Bruce Weirdan
0257752b3a
Merge pull request #6059 from turnabout/split-config-files-subdirectories-support
Allow xml:base attribute in configuration elements
2021-07-08 08:44:30 +03:00
Kevin Pageau
bd3fd93db2 Allow xml:base attribute
Allows including xml:base attribute in configuration elements. This
makes it possible to include split configuration located in a
subdirectory.
2021-07-07 15:46:38 -04:00
Bruce Weirdan
d505a692e1
Merge pull request #6055 from tm1000/patch-1
didChangeWatchedFiles should continue not return
2021-07-07 06:03:39 +03:00
Andrew Nagy
81bd44b714
didChangeWatchedFiles should continue not return
didChangeWatchedFiles should continue not return per each watched file in the $changes array
2021-07-06 16:52:46 -07:00
Claas Augner
b91e00b03f Always keep FunctionLikeStorage->param_lookup in sync 2021-07-06 11:58:58 +02:00
Claas Augner
601a981898 Extract FunctionLikeStorage::setParams()/addParam() 2021-07-06 11:52:42 +02:00
Bruce Weirdan
9acbb6061e
Merge pull request #6051 from vimeo/revert-5961-fix-baseline-generation-crash 2021-07-06 10:20:57 +03:00
Bruce Weirdan
e8f1acb9b6 Revert "Don't attempt to read baseline before it was generated (#5961)"
This reverts commit 52d2692497.
2021-07-06 09:54:00 +03:00
Bruce Weirdan
bee4e83eca
Merge pull request #6047 from simonhammes/docs-assert-method-return-values
Docs: Add example for method call assertions (#6035)
2021-07-05 08:44:03 +03:00
Bruce Weirdan
c9c3a082ee
Merge pull request #6048 from DannyJJK/patch-1
Update Sublime LSP to match latest version
2021-07-05 08:43:38 +03:00
Danny Kirkham
fb1dd4c4b4
Update Sublime LSP to match latest version
I noticed the current config didn't work on the Sublime Text LSP plugin, I've updated it to the latest version of the config for the plugin
2021-07-04 21:46:15 +01:00
Simon
f80ea4a623 Docs: Add example for method call assertions 2021-07-04 21:34:22 +02:00
Bruce Weirdan
3abea66639
Merge pull request #6045 from weirdan/use-endtoend-test-phpunit
Use psalm/endtoend-test-phpunit
2021-07-04 21:40:55 +03:00
Bruce Weirdan
5e5c956b7a
Fetch entire Psl repo 2021-07-04 21:26:05 +03:00
Bruce Weirdan
040d528d59
Use psalm/endtoend-test-phpunit
Fixes vimeo/psalm#6044
2021-07-04 20:40:50 +03:00
Bruce Weirdan
c27b51b91f
Merge pull request #6040 from j4nr6n/update_datetime_format 2021-07-04 08:54:58 +03:00
Bruce Weirdan
1466c3a3fc
Merge pull request #6041 from orklah/magicConstantsResolution
Improve resolution of __METHOD__ and __FUNCTION__
2021-07-04 04:09:47 +03:00
Justin
780c0307e7
Test should fail on 8.0, but not on 7.4 2021-07-03 05:01:10 -04:00
Justin
f7a2aaef6e
Update DateTime and DateTimeImmutable signatures
`DateTime::format` and `DateTimeImmutable::format` will always
return a string starting in PHP 8.0.
2021-07-03 04:29:54 -04:00
orklah
f8644fb508 Improve resolution of __METHOD__ and __FUNCTION__ 2021-07-03 10:01:53 +02:00
Bruce Weirdan
4cb1e2b77d
Merge pull request #6039 from weirdan/array-map-on-shape-generic-hybrid
Keep generic part of shape on array_map return type
2021-07-03 07:04:09 +03:00
Bruce Weirdan
6db79be207
Keep generic part of shape on array_map return type
Fixes vimeo/psalm#6038
2021-07-03 06:33:37 +03:00
Bruce Weirdan
78f3e81b58
Merge pull request #6036 from mpesari/mbstring
Update mbstring signatures for PHP 8
2021-07-03 05:45:17 +03:00
Bruce Weirdan
dfe31c626b
Merge pull request #6030 from weirdan/drop-FakeFileProvider-from-tests-folder
Drop FakeFileProvider from tests folder
2021-07-03 05:40:37 +03:00
Mikko Pesari
8443cd8d24 Update mbstring signatures for PHP 8 2021-07-02 16:12:43 +03:00
Bruce Weirdan
2111916203
Merge pull request #6033 from antonioeatgoat/patch-1
Fix typo in `ConfigIssue.md`
2021-07-02 14:35:05 +03:00
Antonio Mangiacapra
3bc519512c
Fix typo in ConfigIssue.md
"future versions" instead of "feature versions"
2021-07-02 11:59:26 +02:00
Bruce Weirdan
76be96ce53
Drop FakeFileProvider from tests folder
And use Psalm\Internal\Provider\FakeFileProvider
2021-07-02 03:57:57 +03:00
Bruce Weirdan
ef0009ca46
Merge pull request #6031 from weirdan/separate-memory-units-decoding
Separate memory limit formatting from retrieval
2021-07-02 03:16:43 +03:00
Bruce Weirdan
4b31058234
Separate memory limit formatting from retrieval
This addresses https://github.com/vimeo/psalm/pull/6030#issuecomment-872611832

Previously PHP would allow to set memory limit to be below current
memory usage, and the test changed in this PR abused that. As we
actually don't need to test `ini_get()` value decoding was split into
its own method, and we're testing that decoding instead.
2021-07-02 02:59:43 +03:00
Bruce Weirdan
b6a228fd27
Merge pull request #6029 from weirdan/ship-FakeFileProvider 2021-07-02 00:50:07 +03:00
Bruce Weirdan
248a07fd35
Ship FakeFileProvider even with dist dev releases
Refs psalm/psalm.dev#60
2021-07-02 00:26:20 +03:00
Matt Brown
667dcc2e49 No false-positives for tainting through array keys 2021-06-29 17:05:39 -04:00
Bruce Weirdan
c06f1cd2c6
Merge pull request #6019 from elnoro/array-reduce-static
Possible implementation for ArrayReduceReturnTypeProvider support array callables with self and static
2021-06-29 21:03:05 +03:00
Ruslan Karimov
79b61c3b61 Added support for self & static keywords in array_reduce callables 2021-06-29 22:27:50 +05:00
Bruce Weirdan
0196afc758
Merge pull request #6014 from tm1000/feature/6013-1 2021-06-29 05:39:16 +03:00
Andrew Nagy
468e474f44
Update src/Psalm/Internal/LanguageServer/Server/Workspace.php
Co-authored-by: Bruce Weirdan <weirdan@gmail.com>
2021-06-28 19:08:02 -07:00
Bruce Weirdan
5ea98d6324
Merge pull request #6010 from tm1000/feature/6008 2021-06-29 04:40:00 +03:00