1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-02 17:52:45 +01:00
Commit Graph

12159 Commits

Author SHA1 Message Date
99bdc2faeb Cleanup 2022-11-26 18:21:36 +01:00
a342a26f0d Fix 2022-11-26 18:15:50 +01:00
156d629fbe Fix 2022-11-26 18:05:10 +01:00
34825fc0d3 Fix 2022-11-26 18:03:54 +01:00
582a7858f5 Fix 2022-11-26 18:02:14 +01:00
a9647155f2 Update 2022-11-26 17:53:51 +01:00
0f9936553f Cleanup 2022-11-26 17:44:30 +01:00
d0d7c46d26 Fix 2022-11-26 17:37:48 +01:00
45c26d0cbf Merge remote-tracking branch 'origin/master' into tnon_empty_list_refactoring 2022-11-26 17:30:48 +01:00
c823c87ab4 Cleanup 2022-11-26 17:27:40 +01:00
Matthew Brown
1819a2d880
Add diagnostic message when shape fields are missing (#8762)
* Add a simple diagnostic for missing array shape fields

* Fix dumb mistakes

* Allow nested shape extra keys to prompt warning too
2022-11-26 11:26:36 -05:00
1c32a22c2c Fix 2022-11-26 17:16:30 +01:00
700e066539 Fixes 2022-11-26 17:11:41 +01:00
51e6b1155d Cleanup 2022-11-26 17:06:12 +01:00
546f2b325b Cleanup 2022-11-26 16:27:32 +01:00
3f710a80af Cleanup 2022-11-26 16:23:22 +01:00
e2da9c9dc4 Cleanup 2022-11-26 16:21:27 +01:00
0a20c10e00 Refactoring 2022-11-26 15:54:46 +01:00
120ba1f64c Refactoring 2022-11-26 15:53:16 +01:00
864a76459e Cleanup 2022-11-26 15:47:24 +01:00
fca60dcae8 Cleanup 2022-11-26 15:45:01 +01:00
956fa4458e Cleanup 2022-11-26 15:11:43 +01:00
668afa9caf Cleanup 2022-11-26 15:04:13 +01:00
61cce1b854 Cleanup 2022-11-26 14:57:23 +01:00
415d10365f Cleanup 2022-11-26 14:52:50 +01:00
b43207e4cb Cleanup 2022-11-26 14:45:11 +01:00
5b1204279d Cleanup 2022-11-26 14:33:40 +01:00
ab1a901838 Cleanup 2022-11-26 14:24:55 +01:00
d2e0d3170d Cleanup 2022-11-26 14:23:23 +01:00
cf3a49a237 Cleanup 2022-11-26 14:18:08 +01:00
3154860a0e Cleanup 2022-11-26 13:49:49 +01:00
4ceb56269e Merge branch 'list_bc_break' into tnon_empty_list_refactoring 2022-11-26 13:17:58 +01:00
Bruce Weirdan
d1921b1abf
Merge pull request #8771 from weirdan/reenable-platform-check
Fixes https://github.com/vimeo/psalm/issues/7560
2022-11-26 04:09:57 -04:00
Bruce Weirdan
b8ca90c38e
Re-enable platform-check
This makes sure that we output sensible error (not very pretty, but
useful) when required extensions are missing.

Fixes vimeo/psalm#7560
2022-11-26 02:57:49 -04:00
Bruce Weirdan
074136c8ef
Merge pull request #8768 from orklah/composer-deps 2022-11-26 01:59:15 -04:00
Bruce Weirdan
d146411ae4
Merge pull request #8769 from weirdan/move-dev-plugins-to-require-dev 2022-11-26 01:57:03 -04:00
Bruce Weirdan
c3cc9062cb
Merge pull request #8770 from weirdan/upgrade-humbug-box
Fixes https://github.com/vimeo/psalm/issues/7606
Fixes https://github.com/vimeo/psalm/issues/5399
Fixes https://github.com/vimeo/psalm/issues/7314
2022-11-26 00:53:44 -04:00
Bruce Weirdan
5cbe241493
Disable parallel PHAR build
This is an attempt to fix CirleCI issue in this build:
https://app.circleci.com/pipelines/github/weirdan/psalm/666/workflows/33476cb1-d753-4e2d-b067-a5c92808d725/jobs/2457
2022-11-26 00:36:47 -04:00
Bruce Weirdan
ee34d15b4d
SA and CS fixes 2022-11-26 00:18:45 -04:00
Bruce Weirdan
683fe2f4c6
Bake version data into PHAR file
Compatibility between `ocramius/package-versions`,
`composer/package-versions-deprecated`, `composer-runtime-api` and
`humbug/box` (with `humbug/scoper` further complicating things)has been
always a problematic area. So instead of trying to keep up with all the
changes in all of those packages, we will now bake the version data (for
the packages we need) into the PHAR file itself.

Fixes vimeo/psalm#7606
Fixes vimeo/psalm#5399
2022-11-26 00:00:43 -04:00
Bruce Weirdan
369ba0635e
Update humbug/box
It updates humbug/scoper as well, so some changes to scoper
configuration are required.

`PSALM_VERSION` and `PHP_PARSER_VERSION` constants are made unscoped to
prevent various issues.
2022-11-25 23:58:41 -04:00
Bruce Weirdan
1555554d9f
Centralize version data access
Obtaining package version data from within a scoped PHAR file is a
complicated topic, and it's been alternatively broken and fixed multiple
times.

This change moves version data access to a single class, so that we can
fix it there should we need to.

The rest of the code can just rely on PSALM_VERSION constant (which will
be made unscoped in a further commit) or call `VersionUtils` methods.
2022-11-25 23:48:54 -04:00
Bruce Weirdan
3ad90fa0fb
Move mockery plugin to require-dev 2022-11-25 20:15:54 -04:00
orklah
2c5052c509 bump lower dependencies 2022-11-26 00:19:55 +01:00
orklah
45ed177693
Merge pull request #8766 from Chi-teck/regexp-validation
Suppress errors when validation regexps
2022-11-25 20:20:15 +01:00
orklah
b9a532db26
Merge pull request #8754 from orklah/#8041
improve docs and phrasing about NoValue
2022-11-25 20:18:40 +01:00
orklah
2856ab1cdc
typo
Co-authored-by: Bruce Weirdan <weirdan@gmail.com>
2022-11-25 20:18:27 +01:00
Ivan
ae285a3f9b Suppress errors when validation regexps 2022-11-25 17:54:44 +00:00
Matthew Brown
a0e4468a9a
Simplify assertions generated by an array_key_exists check (#8763) 2022-11-25 12:16:37 -05:00
Bruce Weirdan
255a15286a
Ignore phpenv file 2022-11-25 05:31:44 -04:00