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

13049 Commits

Author SHA1 Message Date
Javier Sanahuja
4f83324a91 Support sizeof alias of count 2023-02-22 23:11:10 +01:00
orklah
b0e19045d8
Merge pull request #9296 from lptn/simplify-shepherd
[READY] Simplify and fix Shepherd to support custom endpoints for reporting
2023-02-22 18:38:01 +01:00
Alies Lapatsin
e6bcd054b1 Merge branch 'master' into simplify-shepherd 2023-02-22 02:55:40 +01:00
Bruce Weirdan
c8f7b7e2cf
Merge pull request #9369 from phansys/db2_objects 2023-02-21 21:18:15 -04:00
Javier Spagnoletti
1cd64fe6b8 Instances of object returned by db2_*() functions are always instances of stdClass 2023-02-21 20:24:06 -03:00
orklah
fc01b5ddb8
Merge pull request #9368 from UlrichEckhardt/feature/ffi-stubs-improvement
FFI stubs improvement
2023-02-21 23:35:58 +01:00
Ulrich Eckhardt
4596301290 FFI Stubs: Define a set of tests.
Mostly, those are derived from examples from the documentation.
2023-02-21 23:08:58 +01:00
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
Alies Lapatsin
f2c7ea6e4a Add json_validate to the main callmap 2023-02-21 13:49:29 +01:00
Alies Lapatsin
b7f8ea9d83 Update gc_status shape 2023-02-21 13:42:08 +01:00
Alies Lapatsin
2ca83dea5a Merge branch 'master' into php83-dic 2023-02-21 13:30:37 +01:00
Alies Lapatsin
df00fd17fc Fix coding style issues 2023-02-21 12:49:19 +01:00
Alies Lapatsin
609c426133 Add DeprecatedMethod suppression 2023-02-21 12:40:23 +01:00
Alies Lapatsin
46c486b271 Fix output formatting 2023-02-21 12:16:11 +01:00
Alies Lapatsin
124569c8ef Display debug info for all error responses 2023-02-21 12:13:52 +01:00
Alies Lapatsin
cabeb5b983 Bypass output overlap
like:

Shepherd error: https://custom-host.shepherd/hooks/psalm endpoint responded with 0 HTTP status code.
array (
Shepherd response: n/a
  'url' => 'https://custom-host.shepherd/hooks/psalm',
Please check shepherd endpoint — it should be a valid URL. cURL Debug info:
  'content_type' => NULL,

  'http_code' => 0,
  'header_size' => 0,
  'request_size' => 0,
  'filetime' => -1,
  'ssl_verify_result' => 0,
  'redirect_count' => 0,
  'total_time' => 0.025202,
  'namelookup_time' => 0.0,
  'connect_time' => 0.0,
  'pretransfer_time' => 0.0,
  'size_upload' => 0.0,
  'size_download' => 0.0,
  'speed_download' => 0.0,
  'speed_upload' => 0.0,
  'download_content_length' => -1.0,
  'upload_content_length' => -1.0,
  'starttransfer_time' => 0.0,
  'redirect_time' => 0.0,
  'redirect_url' => '',
  'primary_ip' => '',
  'certinfo' =>
  array (
  ),
  'primary_port' => 0,
  'local_ip' => '',
  'local_port' => 0,
  'http_version' => 0,
  'protocol' => 0,
  'ssl_verifyresult' => 0,
  'scheme' => '',
  'appconnect_time_us' => 0,
  'connect_time_us' => 0,
  'namelookup_time_us' => 0,
  'pretransfer_time_us' => 0,
  'redirect_time_us' => 0,
  'starttransfer_time_us' => 0,
  'total_time_us' => 25202,
  'effective_method' => 'POST',
)
2023-02-21 12:04:18 +01:00
Alies Lapatsin
6603d84dfb Display debuging info for a 0 cURL HTTP status response 2023-02-21 11:56:57 +01:00
Alies Lapatsin
66ce363431 Prepend URL scheme for th legacy host 2023-02-21 11:13:20 +01:00
Alies Lapatsin
b78472c752 Display $endpoint on error message (simplify debugging) 2023-02-21 10:59:31 +01:00
575da79801 Fix #9363 2023-02-21 10:09:58 +01:00
Alies Lapatsin
6ba9b1bb17 Merge branch 'master' into simplify-shepherd 2023-02-21 09:30:21 +01:00
Corey Taylor
4e46706800 Convert callmap associative-array types into proper array types 2023-02-21 01:28:16 -06: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
Alies Lapatsin
547dfb4237 Merge branch 'master' into simplify-shepherd 2023-02-20 10:52:02 +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