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
Bruce Weirdan
f7508a9874
Merge pull request #8752 from orklah/8747
2022-11-25 03:51:05 -04:00
orklah
74d37452ee
Test CI on 8.2
2022-11-25 03:43:24 -04:00
Bruce Weirdan
0b1af26011
Merge pull request #8755 from weirdan/switch-from-prophecy-to-mockery
2022-11-25 03:42:58 -04:00
Bruce Weirdan
c417af7d44
CS fix
2022-11-25 03:35:47 -04:00
Bruce Weirdan
6c77daf1f4
Upgrade mockery plugin
...
and other assorted fixes for PHP 8.2
2022-11-25 03:33:10 -04:00
Bruce Weirdan
1183476089
CS fix
2022-11-24 21:23:30 -04:00
Bruce Weirdan
42b71f5eae
Switch from phpspec/prophecy
to mockery/mockery
...
It provides similar functionality, but is a bit more alive and does not
prevent installation with PHP 8.2
2022-11-24 21:20:21 -04:00
orklah
763556745b
improve docs and phrasing about NoValue
2022-11-24 20:56:49 +01:00
orklah
b3fadbc5c1
improve docs and phrasing about NoValue
2022-11-24 20:52:49 +01:00
orklah
4d358c4be9
improve docs and phrasing about NoValue
2022-11-24 20:49:34 +01:00
orklah
583dabee99
Merge pull request #8753 from orklah/8745
...
Fix #8745
2022-11-24 20:21:28 +01:00
orklah
b53a9c322c
Fix test incompatible with PHP 7.4
2022-11-24 20:06:02 +01:00
orklah
ea4b099c66
Fix #8745
2022-11-24 20:02:04 +01:00
orklah
bca202bf5e
Merge pull request #8749 from Nicelocal/fix_8748
...
Fix #8748
2022-11-24 19:44:44 +01:00
5ac60ddea0
Add tests
2022-11-24 19:31:53 +01:00
orklah
40df3f39d0
Merge pull request #8751 from orklah/str_starts_with
...
Fix #8743
2022-11-24 19:27:10 +01:00
orklah
203d2c2b3d
Fix #8747
2022-11-24 19:17:23 +01:00
85071b61a3
Fix #8748
2022-11-24 11:28:00 +01:00
orklah
8f39de9001
Merge pull request #8739 from niconoe-/fix-8735
...
Fix #8735 : IntlDateFormatter CallMaps.
2022-11-23 18:57:53 +01:00
orklah
feb7cd6898
Merge pull request #8742 from weirdan/fix-7706
...
Correct `Clause::$hash` type
2022-11-23 18:24:04 +01:00
Bruce Weirdan
262c7ffa2b
Correct Clause::$hash
type
2022-11-23 12:59:13 -04:00
Nicolas Giraud
98c60f4276
Add missing CallMap on some IntlDateFormatter related to PHP 8.0.
2022-11-23 14:25:46 +01:00
Nicolas Giraud
208b745ec4
Remove IntlDateFormatter::setTimeZoneId from CallMap_historical as this method is removed since PHP 7.0.0.
2022-11-23 13:47:37 +01:00
Nicolas Giraud
9f4ba8d834
#8735 : Add missing updates of CallMap_historical regarding new changes of IntlDateFormatter.
2022-11-23 13:42:50 +01:00
Nicolas Giraud
18bd412dd5
Fix #8735 : IntlDateFormatter CallMaps.
2022-11-23 13:33:02 +01:00
orklah
e83ac65e79
Merge pull request #8729 from lptn/fix-dictionary-for-strip_tags-function
...
Fix dictionary for strip_tags
2022-11-23 13:28:48 +01:00
orklah
16ba29836b
Merge pull request #8736 from weirdan/simplify-issue-sorting
...
Simplify issue sorting
2022-11-23 06:58:52 +01:00
orklah
3b6faf9638
Merge pull request #8737 from weirdan/enforce-arrow-function-formatting
...
Enforce arrow function formatting
2022-11-23 06:58:34 +01:00
54db59682d
Allow parameter types to be contained by a class template type ( #8731 )
...
* Allow parameter types to be contained by a class template type in function calls
* Specify PHP version of tests
* Fix tests
2022-11-23 00:14:30 -05:00
Bruce Weirdan
026354a18e
Enforce arrow function formatting
2022-11-23 00:08:29 -04:00
Bruce Weirdan
8e941c1439
CS fix
2022-11-22 23:59:33 -04:00
Bruce Weirdan
45b49df92e
Simplify issue sorting
...
As we're on 7.4 now, we can use more concise constructs
2022-11-22 23:18:50 -04:00
Alies Lapatsin
7678b34945
Update CallMap to reflect the most up-to-date signature
2022-11-22 23:51:50 +01:00
orklah
f846906b29
Merge pull request #8730 from kamil-tekiela/curl_unescape
...
Argument 1 of curl_unescape
2022-11-22 19:07:39 +01:00
Alies Lapatsin
d33c338072
strip_tags: allow nullable allowed_tags
arguments from PHP80
2022-11-22 12:27:50 +01:00
Kamil Tekiela
810ef8b771
Argument 1 of curl_unescape
2022-11-21 22:59:22 +00:00
Alies Lapatsin
8dd76ded86
Fix dictionary for strip_tags
...
- allow null
- allow array from PHP 7.4 (see https://www.php.net/manual/en/function.strip-tags.php )
https://3v4l.org/VjbXO
https://3v4l.org/VWsPr
2022-11-21 23:33:25 +01:00
Bruce Weirdan
7869cb548a
Merge pull request #8724 from kkmuffme/include-cli-args-in-php-errors
2022-11-20 06:28:22 -04:00
kkmuffme
ce84a80c6d
include CLI args in PHP errors to more quickly identify run issues in CI
2022-11-20 11:15:45 +01:00
Bruce Weirdan
6d03c3209e
Merge pull request #8723 from weirdan/allow-new-on-objects
...
Fixes https://github.com/vimeo/psalm/issues/8355
2022-11-19 17:37:46 -04:00