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

12736 Commits

Author SHA1 Message Date
Ulrich Eckhardt
4da0bede35 FFI Stubs: Extend FFI and FFI\CData definitions.
Both of these define "fuzzy" datatypes, which are mostly evaluated at runtime.
Currently, much of regular use of these will cause useless errors, so define
the stubs so that they simply support any kind of use that could happen.
2023-02-21 23:08:49 +01:00
Ulrich Eckhardt
056e1288eb FFI Stubs: Adjust FFI::new() stub. 2023-02-21 23:01:56 +01:00
Bruce Weirdan
5390c212ba
Merge pull request #9364 from Nicelocal/fix_9363 2023-02-21 12:02:51 -04:00
f665e719fb
Describe changes 2023-02-21 15:44:18 +01:00
575da79801 Fix #9363 2023-02-21 10:09:58 +01:00
Bruce Weirdan
c46eccda76
Merge pull request #9358 from weirdan/revert-8761 2023-02-21 02:57:53 -04:00
Bruce Weirdan
a24aa96cc1
Merge pull request #9360 from othercorey/fix-spl-callmap 2023-02-21 01:10:12 -04:00
Corey Taylor
c62465ceef Fix several spl callmap methods 2023-02-20 22:30:21 -06:00
Bruce Weirdan
01c19d94ba
Added a bunch of tests from referenced issues 2023-02-20 23:45:01 -04:00
Bruce Weirdan
8f4ceda8ce
Update baseline 2023-02-20 23:13:03 -04:00
Bruce Weirdan
ac86981a79
Revert "#7387 Add asserting non-empty-string by strlen"
This reverts commit 0ef7ec100a.
2023-02-20 23:07:22 -04:00
Bruce Weirdan
28db105f73
Merge pull request #9356 from edsrzf/setrawcookie-impure 2023-02-20 21:38:26 -04:00
Evan Shaw
a03299f3d0 Include setrawcookie as an impure function 2023-02-21 14:24:05 +13:00
Bruce Weirdan
471a8c6a1d
Merge pull request #9354 from othercorey/fix-php74 2023-02-20 18:34:36 -04:00
Bruce Weirdan
9e0dd5ab59
Merge pull request #9351 from Nicelocal/fix_9350 2023-02-20 18:10:09 -04:00
Corey Taylor
c23de496cf Replace use of DOMParentNode::append() with appendChild() 2023-02-20 14:45:04 -06:00
484043a5a1 Enable JIT 2023-02-20 13:55:06 +01:00
a01c634878 Run tests with opcache 2023-02-20 13:50:12 +01:00
88a3d288de Workaround arm64 opcache bug (fixes #9350) 2023-02-20 12:49:59 +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