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

10057 Commits

Author SHA1 Message Date
orklah
a7e9eea0ca
flag usage of get_class outside class without args (#7043) 2021-12-02 00:38:45 +02:00
rarila
bc11b10d9b
Beautified phpcs.xml (#7041)
Co-authored-by: ralila <>
2021-12-01 23:46:10 +02:00
Kamil Tekiela
19062e56a3 get_class does not return false
Technically all functions could return false or null when a wrong parameter is provided, but that was undefined behavour in PHP <8 and should not be relied upon.
2021-12-01 21:36:13 +00:00
orklah
e90a4b4468
Merge pull request #7040 from orklah/docs-issuebuffer
document the behavior of methods in IssueBuffer
2021-12-01 21:10:08 +01:00
orklah
fab3c94ef6 document the behavior of methods in IssueBuffer 2021-12-01 21:04:49 +01:00
Bruce Weirdan
7e7b595d22
Merge pull request #7036 from kamil-tekiela/Add-exception 2021-12-01 21:44:44 +02:00
orklah
d7d4b37ac1 year in getdate can be before 1970 for negative timestamps 2021-12-01 20:18:25 +01:00
Kamil Tekiela
5d99109ba9 Throw exception when baseline file is empty 2021-12-01 18:09:30 +00:00
Bruce Weirdan
b8e34edd0d
Merge pull request #7029 from rarila/composer-scripts 2021-12-01 01:02:03 +02:00
ralila
2ff739be4f Replace all-tests with tests 2021-11-30 22:43:54 +01:00
ralila
4c6f913d38 Make parallel unit tests standard 2021-11-30 22:41:39 +01:00
Bruce Weirdan
28c4f86993
Merge pull request #7027 from rarila/issue-6914 2021-11-30 23:34:00 +02:00
ralila
9389f98997 Add lint to the tests 2021-11-30 22:31:16 +01:00
orklah
295d5d91f9
Merge pull request #7032 from orklah/getdate
refine getdate array structure
2021-11-30 21:33:10 +01:00
Gabriel Ostrolucký
7b78a7e64c
Fix RedisCluster::getOption() and RedisCluster::setOption argument types
See aac42cd335/redis_cluster.stub.php (L122)

Related https://github.com/vimeo/psalm/pull/6853
2021-11-30 21:22:48 +01:00
orklah
ea03410645 refine getdate array structure 2021-11-30 21:18:10 +01:00
orklah
b70466ce0c
Merge pull request #7033 from orklah/phpparser4132
ignore irrelevant errors for php-parser 4.13.2
2021-11-30 21:17:43 +01:00
orklah
15bc0fac1f ignore irrelevant errors 2021-11-30 21:17:27 +01:00
Bruce Weirdan
812d62d1ce
Merge pull request #7031 from weirdan/suppress-void-progress-output 2021-11-30 21:39:24 +02:00
Bruce Weirdan
2706645126
Prevent VoidProgress from outputting anything
Fixes vimeo/psalm#7028
2021-11-30 21:21:38 +02:00
orklah
2c6ea7c551
Merge pull request #7022 from orklah/7007
remove the remaining dynamic property assignment
2021-11-30 19:41:42 +01:00
ralila
ec02cf18a8 Use references in combined tests 2021-11-30 18:01:22 +01:00
ralila
87f1eadcd0 Sort scripts alphabetically 2021-11-30 17:53:23 +01:00
ralila
89c8ce7c94 Add parallel phpunit run to scripts 2021-11-30 17:50:48 +01:00
ralila
b946f2235f Add scripts descriptions 2021-11-30 17:17:53 +01:00
ralila
b4bdb69012 Add phpunit to composer scripts 2021-11-30 17:07:09 +01:00
ralila
98b0b052ce Remove some now superfluous casts 2021-11-30 05:08:56 +01:00
ralila
9a7d0809d2 Restrict tests with PREG_UNMATCHED_AS_NULL to PHP >= 7.2 2021-11-30 03:29:41 +01:00
ralila
fef41461ed Allow skipping tests for PHP <= 7.2 2021-11-30 03:25:39 +01:00
ralila
c29e943244 Add some tests 2021-11-30 03:19:27 +01:00
orklah
466137a4c4
Merge pull request #7025 from orklah/6256
flag DeprecatedProperty on static fetch
2021-11-29 23:46:25 +01:00
orklah
328dcb093b fix variable name 2021-11-29 23:41:47 +01:00
orklah
9de9c12851 flag DeprecatedProperty on static fetch 2021-11-29 23:32:27 +01:00
orklah
978a0449cf
Merge pull request #7024 from DaveLiddament/patch-6
Add --php-version to CLI help
2021-11-29 21:29:00 +01:00
Dave Liddament
1879713dbb
Add --php-version to CLI help
As documented here: https://psalm.dev/docs/running_psalm/configuration/#phpversion
2021-11-29 20:21:33 +00:00
orklah
02b35ccada
Merge pull request #7023 from orklah/abs
refine abs return type
2021-11-29 21:20:26 +01:00
orklah
9f918a8314 refine abs return type 2021-11-29 21:16:51 +01:00
Matthew Brown
175ba83332
Migrate most IssueBuffer::accepts calls to IssueBuffer::maybeAdd (#7020) 2021-11-29 14:54:17 -05:00
orklah
8ca0fc209a remove the remaining dynamic property assignment 2021-11-29 20:12:59 +01:00
orklah
e29571dd2c
Merge pull request #7021 from pawel-slowik/unresolvable-include-tests
Add tests for UnresolvableInclude
2021-11-29 19:55:10 +01:00
Paweł Słowik
18b6fbc907 Add tests for UnresolvableInclude 2021-11-29 18:37:14 +01:00
ralila
e5c1a35e31 Adjust tests 2021-11-29 14:24:15 +01:00
ralila
2c94ce0185 Adjust callmaps 2021-11-29 14:23:57 +01:00
ralila
15eb8127ee Reverse parameter list vor preg_match 2021-11-29 14:23:33 +01:00
ralila
d57c246c93 Add stub for preg_match 2021-11-29 14:21:58 +01:00
Bruce Weirdan
ad23ab3405
Merge pull request #7017 from weirdan/disable-xdebug 2021-11-29 08:19:54 +02:00
Bruce Weirdan
5197a68192
Merge pull request #6987 from pilif/fix-openssl-open-callmap 2021-11-29 08:13:23 +02:00
Bruce Weirdan
d99485671b
Disable coverage (and xdebug) on CI
I'd expect to see some performance gains here.
2021-11-29 08:07:14 +02:00
Philip Hofstetter
323b74b8d8
fix all openssl_* signatures for PHP >= 8.0
while some signatures were already updated in the past, many others were
not.

This commits fixes all signatures to match what the PHP manual
specifies.
2021-11-29 06:21:42 +01:00
Bruce Weirdan
b606087bda
Merge pull request #7016 from weirdan/escape-gh-actions-output 2021-11-29 05:46:05 +02:00