1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-11 16:59:45 +01:00
Commit Graph

13666 Commits

Author SHA1 Message Date
orklah
5b2efad55b
Merge pull request #9846 from lptn/use-consts-for-issue-severity
Introduce and use `IssueData` constants for severity levels
2023-05-31 23:04:13 +02:00
orklah
6b94453bea
Merge pull request #9848 from lptn/phpstorm-output-format-on-jetbrains-terminal
Use PHPStorm output format by default on JetBrains terminals
2023-05-31 20:29:58 +02:00
Alies Lapatsin
bf1a7365d2 Use PHPStorm output format by default on JetBrains terminals 2023-05-31 13:30:52 +02:00
Alies Lapatsin
3700ab6c61 Fix RedundantConditionGivenDocblockType issues 2023-05-31 13:11:54 +02:00
Alies Lapatsin
67648ac248 Use new IssueBuffer constants 2023-05-31 13:00:16 +02:00
Alies Lapatsin
174cd5c0fe Introduce and use IssueData constants for severity
they are not the same as Config::REPORT_* constants
2023-05-31 12:38:15 +02:00
Alies Lapatsin
2fa943a8a6 Shepherd: send a list of issues (instead of array with int keys)
as result Shepherd will send an array is issues instead of object with "random" numeric keys
2023-05-31 12:24:49 +02:00
kkmuffme
8606d5585f sprintf basic non-empty-string return type provider
Fix https://github.com/vimeo/psalm/issues/9819
This PR is a starting point for improving the sprintf return type and eventually validate the format, param types and param count.
(see https://github.com/vimeo/psalm/issues/9817, https://github.com/vimeo/psalm/issues/9818)
2023-05-30 22:11:17 +02:00
orklah
bebce06014
Merge pull request #9842 from kkmuffme/uniqid-wrong-return-type
uniqid return type non-empty-string inconsistent
2023-05-30 21:45:16 +02:00
kkmuffme
51d3276c03 Fix https://github.com/vimeo/psalm/issues/9839 2023-05-30 21:34:10 +02:00
orklah
88aae91e55
Merge pull request #9835 from staabm/patch-5
Fixed typo in ConstantTest
2023-05-30 21:08:47 +02:00
orklah
8cdb4b0024
Merge pull request #9837 from kkmuffme/dirname-return-type-non-empty-string
Dirname return type non empty string
2023-05-30 20:57:40 +02:00
kkmuffme
e3e7373e99 fix test string format 2023-05-30 16:55:13 +02:00
kkmuffme
c185437955 fix string format in test 2023-05-30 16:49:10 +02:00
kkmuffme
9d7d4bff28 non-empty-string always returs non-empty-string, fix tests 2023-05-30 16:44:23 +02:00
kkmuffme
25c7f37a44 add test, fix wrong test and fix shepherd 2023-05-30 16:29:47 +02:00
kkmuffme
a33c80d291 dirname level must be > 0 otherwise fatal 2023-05-30 16:10:08 +02:00
kkmuffme
f9f1cc244b dirname returns non-empty-string when a non-empty-string is passed and level is 1 2023-05-30 16:09:50 +02:00
Markus Staab
9af897f328
Fixed typo in ConstantTest 2023-05-30 08:43:54 +02:00
orklah
2bbfca6d9f
Merge pull request #9829 from klimick/map-closed-inheritance-to-union
Mapping closed inheritance to union during assertion
2023-05-29 20:14:31 +02:00
orklah
eedea6b61f
Merge pull request #9832 from kamil-tekiela/base64_decode
base64_decode returns false only in strict mode
2023-05-29 20:08:05 +02:00
Kamil Tekiela
c2bbc6239a Update CoreGenericFunctions.phpstub 2023-05-29 16:16:49 +01:00
orklah
106b9861c4
Merge pull request #9833 from ygottschalk/fix/9824-enum-const-str-concat
Fix #9824 const enum self reference
2023-05-28 23:40:16 +02:00
Yannick Gottschalk
a41eb35b24 Fix #9824 2023-05-28 17:37:16 +02:00
Kamil Tekiela
fa3f4d252c base64_decode returns false only in strict mode 2023-05-27 23:23:01 +01:00
klimick
38c93db889 More closed inheritance assertion tests 2023-05-27 18:55:27 +03:00
klimick
b7b20771c0 Add closed inheritance assertion tests 2023-05-27 13:40:23 +03:00
klimick
56d7b3793e Map closed inheritance to union 2023-05-27 13:39:56 +03:00
orklah
d788bcdc98
Merge pull request #9828 from jack-worman/GH-9825
GH-9825
2023-05-27 00:23:09 +02:00
Jack Worman
f279c39503 GH-9825 2023-05-26 18:03:05 -04:00
orklah
b99857cb9c
Merge pull request #9813 from 2e3s/recursive-glob
Add a support for multilevel glob wildcards
2023-05-24 21:38:22 +02:00
Demmie
72b4ab9310 Use preg_split instead of explode
This also accounts for Windows dir separators
and duplicated wildcards.
2023-05-24 15:28:41 -04:00
Demmie
116795abc4 Fix reported type issues 2023-05-24 14:06:53 -04:00
orklah
8e8a11d6a9
Merge pull request #9814 from Hanmac/master
glob: allow empty string for pattern
2023-05-24 13:25:22 +02:00
Hans Mackowiak
7a03f2390d
glob: allow empty string for pattern 2023-05-24 11:14:20 +02:00
Demmie
317c683644 Return file_exists to glob files 2023-05-24 01:27:48 -04:00
Demmie
cab10721e6 Add a support for multilevel glob wildcards
This works just like in Python with "**".
2023-05-24 01:13:26 -04:00
orklah
f90118cdea
Merge pull request #9805 from orklah/memory-psalter
allow using more than 8G of memory in psalter
2023-05-22 23:19:03 +02:00
orklah
f65d53f32e fix CS 2023-05-22 23:16:17 +02:00
orklah
d23616cafa allow using more than 8G of memory in psalter 2023-05-22 23:06:02 +02:00
orklah
cb34901246
Merge pull request #9803 from orklah/zefzef
fix offset for type param changes
2023-05-21 19:12:32 +02:00
orklah
ed94de5146 fix offset for type param changes 2023-05-21 18:56:54 +02:00
orklah
22fd6fb9db
Merge pull request #9788 from robchett/strpos_stripos_assert_non_empty
Narrow the type of $haystack when strpos(...) !== false
2023-05-21 11:42:18 +02:00
RobChett
bd0ba6ee95 Narrow the type of haystack when strpos != false 2023-05-21 10:35:19 +01:00
orklah
0221ff1836
Merge pull request #9796 from kkmuffme/get_class_methods-vars-non-empty-string
methods and vars cannot be falsy
2023-05-18 19:26:05 +02:00
kkmuffme
e23db18f6b methods and vars cannot be falsy 2023-05-17 22:09:37 +02:00
orklah
69589ebe83
Merge pull request #9795 from robchett/powReturnTypeProvider
Improve return types of pow()
2023-05-16 20:48:25 +02:00
RobChett
100907b61f Improve return types of pow() 2023-05-15 01:22:45 +01:00
orklah
5370492f97
Merge pull request #9784 from robchett/document_unsealed_arrays
Document array shape unsealing syntax
2023-05-14 11:44:54 +02:00
RobChett
f491a53ff0 Document advanced array shape unsealing syntax 2023-05-14 10:15:34 +01:00