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

12870 Commits

Author SHA1 Message Date
Corey Taylor
ee77ca63e8 Fix remaining intl callmaps 2023-03-08 20:59:14 -06:00
orklah
3008d5591b
Merge pull request #9471 from pereorga/feature/ent-quotes-default-php81
Consider new HTML entity en/decode function defaults since PHP 8.1
2023-03-08 22:08:36 +01:00
Pere Orga
f70b375da3 Remove unused 'use function version_compare' 2023-03-08 20:35:43 +01:00
Pere Orga
187c214f58 Use analysis_php_version_id instead of config->getPhpVersion() 2023-03-08 20:33:55 +01:00
Pere Orga
17939eda04 consider new HTML entity en/decode functions defaults since PHP 8.1 2023-03-08 18:57:22 +01:00
Bruce Weirdan
222887acfe
Merge pull request #9466 from weirdan/unary-minus-overflow 2023-03-07 13:47:54 -04:00
Bruce Weirdan
193a0dbe0e
Don't crash on unary minus overflow
Fixes vimeo/psalm#9464
2023-03-07 12:29:40 -04:00
orklah
c82191ba13
Merge pull request #9460 from othercorey/dom-callmaps
Fix DOM callmaps
2023-03-06 18:50:08 +01:00
Corey Taylor
8bd2267060 Fix DOM callmaps 2023-03-06 04:33:59 -06:00
Bruce Weirdan
977c383eb0
Merge pull request #9459 from Jean85/drop-package-versions 2023-03-06 05:47:08 -04:00
Bruce Weirdan
91cd660286
Fix CS 2023-03-06 05:33:26 -04:00
Alessandro Lai
7f26a5b473
Replace requirement for package-versions with Composer 2 APIs 2023-03-06 09:21:44 +01:00
Bruce Weirdan
3a0adabf06
Merge pull request #9458 from pvandommelen/type_round_brackets 2023-03-05 20:30:41 -04:00
Peter van Dommelen
c72edefc9e Do not strip the last ) bracket when parsing phpdoc type aliases.
Fixes https://github.com/vimeo/psalm/issues/6782

Reworked the regex logic to not check each grouping character separately. Removed the `^` character from the character list, which was likely unintended.
2023-03-05 22:28:22 +01:00
Bruce Weirdan
dc4516b408
Merge pull request #9457 from weirdan/improve-enum-case-reconciliation 2023-03-05 16:58:27 -04:00
Bruce Weirdan
f801561ea7
Improce enum case reconciliation
Fixes vimeo/psalm#9456
2023-03-05 16:34:51 -04:00
Bruce Weirdan
3af9ccde91
Merge pull request #9445 from weirdan/8.2-attributes
PHP 8.2 attributes moved to 8.2 stub
2023-03-03 05:27:01 -04:00
Bruce Weirdan
9abd4285df
Use 8.2 in tests for 8.2 attributes 2023-03-03 04:39:04 -04:00
Bruce Weirdan
468dd1be4c
PHP 8.2 attributes moved to 8.2 stub 2023-03-03 04:28:37 -04:00
Bruce Weirdan
864b25150e
Merge pull request #9444 from weirdan/readonly-classes 2023-03-03 04:14:04 -04:00
Bruce Weirdan
36913b13d5
Support for readonly classes 2023-03-03 04:04:12 -04:00
Bruce Weirdan
b1b20106ad
Merge pull request #9443 from weirdan/require-php-tag-in-tests 2023-03-03 03:06:38 -04:00
Bruce Weirdan
7b8a0a61b9
Require <?php tag in tests
This had me puzzled for some time on several occasions
2023-03-03 02:50:11 -04:00
Bruce Weirdan
6975acfc4c
Merge pull request #9442 from weirdan/forbid-private-final-methods 2023-03-03 02:09:10 -04:00
Bruce Weirdan
98d96fbe9c
Forbid private final methods
Fixes vimeo/psalm#8374
2023-03-03 02:00:09 -04:00
Bruce Weirdan
e3078cdfa0
Merge pull request #9441 from aboyton/divide-zero 2023-03-02 17:50:30 -04:00
Andrew Boyton
e8bd52eba6 Merge param descriptions when adding or updating types 2023-03-03 08:32:24 +11:00
orklah
06266c220b
Merge pull request #9438 from othercorey/pack-return
Update pack() stub
2023-03-01 07:38:16 +01:00
Corey Taylor
615986ef10 Update pack() stub 2023-02-28 23:50:23 -06:00
Bruce Weirdan
839dc10da2
Merge pull request #9435 from vimeo/revert-9434-array_pop-is-impure 2023-03-01 01:48:26 -04:00
orklah
83051cfe87
Merge pull request #9291 from lptn/disableExtensions-hides-warnings
Do not display ext deprecation note when `disableExtensions` used
2023-03-01 00:06:59 +01:00
Bruce Weirdan
5130563d9f
Revert "array_pop is impure" 2023-02-28 19:06:07 -04:00
Bruce Weirdan
72e4e1dba7
Merge pull request #9434 from weirdan/array_pop-is-impure
`array_pop` is impure
2023-02-28 18:55:20 -04:00
Bruce Weirdan
007ffaecd8
array_pop is impure
Fixes vimeo/psalm#9429
2023-02-28 18:53:36 -04:00
Alies Lapatsin
fcb96f10c2 Fix default for ibm_db2 ext, add description 2023-02-28 23:05:47 +01:00
Alies Lapatsin
feb0cb8598 Merge branch 'master' into disableExtensions-hides-warnings
# Conflicts:
#	src/Psalm/Config.php
2023-02-28 22:51:43 +01:00
orklah
381a23bd4e
Merge pull request #9415 from ptomulik/issue-4460
An attempt to fix #4460
2023-02-28 19:48:08 +01:00
Paweł Tomulik
78e6545d7f
fix #4460 2023-02-28 11:38:47 +01:00
Paweł Tomulik
68fc72e139
add unit test for #4460 2023-02-28 11:38:44 +01:00
orklah
e212b06970
Merge pull request #9420 from othercorey/iterator-spl-callmap
Fix remaining spl and iterator callmaps
2023-02-27 22:32:32 +01:00
Corey Taylor
879d9cd788 Fix remaining spl and iterator callmaps 2023-02-27 15:23:48 -06:00
orklah
99b598716d
Merge pull request #9422 from EgorBakulin/#9411/concat-should-never-remove-non-empty-non-falsy-from-string
concat should never remove non empty non falsy from string #9411
2023-02-27 18:49:24 +01:00
ebakulin
67d26d3c51 added case with literal string 2023-02-28 00:22:34 +07:00
ebakulin
cf35b3ce0c reworked one known operand case 2023-02-28 00:12:18 +07:00
ebakulin
31fcbd5f69 added case with one null type 2023-02-27 22:03:01 +07:00
ebakulin
a9b9d386a9 added testcases with undefined constant concatination 2023-02-27 22:00:36 +07:00
orklah
5083e18bd8
Merge pull request #9418 from ptomulik/issue-9401
Fix #9401
2023-02-27 07:54:42 +01:00
Paweł Tomulik
69c5fd69f3
fixed #9401 2023-02-27 00:07:58 +01:00
Paweł Tomulik
ee032d4ca9
add unit tests for #9401 2023-02-27 00:07:00 +01:00
Bruce Weirdan
1a2909e07b
Merge pull request #9399 from weirdan/reorganize-pushes-to-psalm-phar
Reorganize pushes to `psalm/phar`
2023-02-26 15:58:13 -04:00