1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-26 12:24:49 +01:00
Commit Graph

12719 Commits

Author SHA1 Message Date
ccc7116fc4 cs-fix 2023-02-20 17:50:37 +01:00
79646304be Load opcache extension if it is loadable 2023-02-20 17:41:38 +01:00
Bruce Weirdan
589fee7b22
Merge pull request #9172 from DaDeather/fix-datetime-issue 2023-02-20 04:03:47 -04:00
Ismail Turan
bec8ddf525 fix (DateTime|DateTimeImmutable)::modify() return types
vimeo#9042 caused issues to any called method on an instance
of DateTime|DateTimeImmutable after calling the modify
method.

This fixes vimeo#9171
2023-02-20 08:47:05 +01:00
Bruce Weirdan
8e0fd88014
Merge pull request #9347 from weirdan/fix-restarter-restart-signature 2023-02-19 20:48:41 -04:00
Bruce Weirdan
1b0f322bc7
Fix PsalmRestarter::restart() signature
XdebugHandler v2 did not have the param type hint

Fixes vimeo/psalm#9345
2023-02-19 20:38:03 -04:00
Bruce Weirdan
fbef36a248
Merge pull request #9342 from danog/fix_9340
Always use 0x7FFEBFFF opcache optimization level (fixes #9340)
2023-02-19 16:23:55 -04:00
5df21fe448 Always use 0x7FFEBFFF opcache optimization level (fixes #9340) 2023-02-19 16:57:23 +01:00
Bruce Weirdan
d934875532
Merge pull request #9339 from edsrzf/is-numeric-negated 2023-02-19 06:11:10 -04:00
Bruce Weirdan
38cc316ce9
Update tests/TypeReconciliation/ConditionalTest.php 2023-02-19 06:02:12 -04:00
Evan Shaw
a25fe35584 Negated is_numeric narrows scalar type 2023-02-19 22:38:34 +13:00
Bruce Weirdan
863f15ab15
Merge pull request #9337 from weirdan/validate-test-environment 2023-02-19 04:35:11 -04:00
Bruce Weirdan
538b4c80ed
Merge pull request #9338 from weirdan/forbid-first-class-callables-in-new 2023-02-19 04:34:56 -04:00
Bruce Weirdan
73bad8967d
Forbid first-class callables in new
It's an invalid construct in PHP, not rejected by PHPParser for some
reaason.

Fixes vimeo/psalm#9335
2023-02-19 04:18:32 -04:00
Bruce Weirdan
075e97ae93
Merge pull request #9336 from edsrzf/ls-closure-fixes 2023-02-19 03:56:03 -04:00
Bruce Weirdan
236c1a8ae5
Added the test to validate test environment itself
We should make sure that the environment the tests are run is as strict
as possible. For example, zend.assertions should be enabled.
2023-02-19 03:52:12 -04:00
Evan Shaw
d4a57c863c Enable store_node_types for all test cases 2023-02-19 19:52:45 +13:00
Evan Shaw
c8393bd50d Fix language server first-class callable crashes 2023-02-19 14:18:17 +13:00
Bruce Weirdan
5fe902bde5
Merge pull request #9326 from vimeo/prevent-jit-warnings 2023-02-18 18:22:59 -04:00
Bruce Weirdan
95877a07d3
Merge pull request #9331 from gharlan/arraytoxml 2023-02-18 17:25:25 -04:00
Gregor Harlan
80e781315a
RedundantCast 2023-02-18 12:58:40 +01:00
Gregor Harlan
c05465eab4
Allow spatie/array-to-xml v3 2023-02-18 12:44:16 +01:00
Bruce Weirdan
18edbeb9f5
Merge pull request #9329 from weirdan/propagate-phantom-classes-to-closure-context 2023-02-18 02:20:56 -04:00
Bruce Weirdan
4f22c2e7c6
Propagate phantom classes to closure context
Fixes vimeo/psalm#9317
2023-02-18 01:52:10 -04:00
Bruce Weirdan
4d871fd241
Disable JIT-incompatible extensions to prevent warnings
This also enables JIT for `psalter` and syncs the list of disabled
extensions between `psalm`, `psalter` and `psalm-language-server`
2023-02-17 15:32:37 -04:00
Bruce Weirdan
d6c47ae473
Merge pull request #9318 from lptn/assert-on-ci 2023-02-17 03:42:08 -04:00
Bruce Weirdan
e4fa5b5212
Merge pull request #9325 from othercorey/skip-memcache-callmap 2023-02-17 03:41:03 -04:00
Corey Taylor
e813a54d03 Skip verifying memcache extension callmap 2023-02-17 01:27:37 -06:00
Bruce Weirdan
0a8d686fef
Merge pull request #9322 from othercorey/fix-strpos-stub 2023-02-16 16:32:40 -04:00
Bruce Weirdan
07445c9fc7
Merge pull request #9315 from weirdan/add-guide-on-adding-new-issues 2023-02-16 16:18:31 -04:00
Corey Taylor
3ddeecec1a Fix strpos stub return type 2023-02-16 13:34:39 -06:00
Alies Lapatsin
86fe34bb52 Run assertions on CI 2023-02-16 10:45:42 +01:00
Bruce Weirdan
485e7b711c
Merge pull request #9316 from weirdan/forbid-not-null-defaults-for-callable-parameters
Forbid non-null defaults for callable parameters
2023-02-16 01:46:02 -04:00
Bruce Weirdan
1c2bc49838
Forbid non-null defaults for callable parameters
Fixes vimeo/psalm#3284
2023-02-16 01:36:06 -04:00
Bruce Weirdan
eb63eddce1
Added a page explaining how to add a new issue type 2023-02-15 23:12:14 -04:00
Bruce Weirdan
f70f6517a7
Merge pull request #9314 from weirdan/flag-unused-docblock-params
Flag docblock parameters that have no counterparts in function signature
2023-02-15 22:31:41 -04:00
Bruce Weirdan
1e71da3799
Merge pull request #9309 from othercorey/fix-memcached-callmap 2023-02-15 22:24:39 -04:00
Bruce Weirdan
0e9f04c55d
Merge pull request #9313 from othercorey/allow-ignored-callmap 2023-02-15 22:23:02 -04:00
Bruce Weirdan
cd5b743d6b
Fix newly found issues 2023-02-15 22:18:30 -04:00
Bruce Weirdan
e6aa63731d
Flag docblock parameters that have no counterparts in function signature
Fixes vimeo/psalm#3166
2023-02-15 22:04:26 -04:00
Corey Taylor
0598402620 Skip verifying callmaps based on name pattern 2023-02-15 20:00:04 -06:00
Bruce Weirdan
33f18e8d2d
Merge pull request #9312 from weirdan/deprecate-functionlikestorage-unused_docblock_params 2023-02-15 21:46:39 -04:00
Bruce Weirdan
01911a06b7
Deprecate FunctionLikeStorage::$unused_docblock_params
Refs vimeo/psalm#3166
2023-02-15 21:29:20 -04:00
Bruce Weirdan
166e678768
Merge pull request #9311 from weirdan/flag-direct-constructor-calls
Flag direct constructor calls
2023-02-15 20:24:31 -04:00
Bruce Weirdan
ee823619b8
Flag direct constructor calls
Fixes vimeo/psalm#2975
2023-02-15 20:14:00 -04:00
Corey Taylor
ab77cfd490 Fix memcached extension callmap 2023-02-15 17:26:58 -06:00
Bruce Weirdan
c035db5f11
Merge pull request #9308 from weirdan/suggest-psalm-to-be-installed-in-require-dev
Suggest Psalm to be installed in require-dev section
2023-02-15 12:37:44 -04:00
Bruce Weirdan
faf4e8b282
Suggest Psalm to be installed in require-dev section
See composer/composer#10960
2023-02-15 12:27:14 -04:00
Bruce Weirdan
b71a8b7672
Merge pull request #9304 from weirdan/fix-8604 2023-02-15 04:07:40 -04:00
Bruce Weirdan
c28d96e25c
Fixed issue message for missing @psalm-external-mutation-free
Fixes vimeo/psalm#8604
2023-02-15 03:58:50 -04:00