1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-15 02:47:02 +01:00
Commit Graph

9511 Commits

Author SHA1 Message Date
orklah
a1df08f718 fix an old test 2021-10-09 18:18:15 +02:00
orklah
d44d00fb6d fix two more cases 2021-10-09 18:10:49 +02:00
orklah
4137cabaed add test 2021-10-09 17:59:41 +02:00
orklah
a2f415e2e0 fix @return 0 2021-10-09 17:58:06 +02:00
orklah
950b21d10a
Merge pull request #6621 from orklah/incompatible-types-found-for-T
add a little details to the Incompatible types found for T error
2021-10-09 15:10:27 +02:00
orklah
b1f20dffa0 fix brackets 2021-10-09 15:02:49 +02:00
orklah
e9f3e8795f add a little details to the Incompatible types found for T error 2021-10-09 15:01:13 +02:00
orklah
3f6ba705f2
Merge pull request #6614 from ishanvyas22/fiber-stubs
feat: Add Fiber stubs
2021-10-09 10:00:09 +02:00
Ishan Vyas
bdb494563e
chore: remove FiberExit class from Fiber stubs
Signed-off-by: Ishan Vyas <isvyas@gmail.com>
2021-10-09 12:31:52 +05:30
Ishan Vyas
b69e670060
chore: remove FiberExit class 2021-10-09 09:34:39 +05:30
orklah
49abfcb71b
Merge pull request #6617 from orklah/nonspecific-literal-int
allow any integer range to be satisfied by TNonspecificLiteralInt
2021-10-09 01:12:46 +02:00
orklah
874a67a1b0 allow any integer range to be satisfied by TNonspecificLiteralInt 2021-10-09 01:04:31 +02:00
Ishan Vyas
e917546801
feat: Add Fiber stubs
Signed-off-by: Ishan Vyas <isvyas@gmail.com>
2021-10-08 23:27:48 +05:30
orklah
d40335ff37
Merge pull request #6612 from orklah/empty-array_is_list
array_is_list on empty array returns true
2021-10-08 17:16:35 +02:00
orklah
682784c886 array_is_list on empty array returns true 2021-10-08 17:05:35 +02:00
orklah
f35df421e2
Merge pull request #6604 from orklah/array-unshift-on-empty-array
Array unshift on empty array
2021-10-07 23:04:10 +02:00
orklah
87a5df6043 only put offset to 0 when there's only one argument 2021-10-07 20:38:10 +02:00
orklah
71798b4ba6
Merge pull request #6610 from Dgame/feature/fix-trim-stub
Fixed trim-stub
2021-10-07 20:23:04 +02:00
orklah
49bb065dc7
Merge pull request #6608 from orklah/foreach-on-list
foreach on list gives a positive|0 offset
2021-10-07 20:16:11 +02:00
Dgame
a8ce748d1b Fixed trim-stub 2021-10-07 20:10:36 +02:00
orklah
3fc716ec3b fix CS 2021-10-07 19:39:45 +02:00
orklah
a7c4f0052b foreach on list gives a positive|0 offset 2021-10-07 19:32:25 +02:00
orklah
e53827e8c5
Merge pull request #6599 from sasezaki/cleanup_infection
cleanup - Remove not used infection.json.dist
2021-10-07 16:46:03 +02:00
orklah
5aa16960f2
Merge pull request #6587 from sasezaki/more_lint
Lint all *.php files, not only src
2021-10-07 16:45:05 +02:00
orklah
aff08fe1d3
Merge pull request #6595 from vaceletm/reflection-class-constants
php 8.0 introduced visibility constants on ReflectionClassConstant
2021-10-07 16:33:51 +02:00
orklah
22fb4b5d19 add test 2021-10-07 11:04:51 +02:00
orklah
973da0a91a allow considering a NonEmptyArray where the only offset value is 0 to be contained in a NonEmptyList 2021-10-07 11:04:46 +02:00
orklah
3a2eddf2d7 pass the method_id to be able to set the new offset type to 0 for array_unshift 2021-10-07 09:46:49 +02:00
orklah
6627055f3b make TypeCombiner override empty-array 2021-10-07 09:46:17 +02:00
Manuel VACELET
40cdb2f912 php 8.0 introduced visibility constants on ReflectionClassConstant
Spotted in issue #6588
2021-10-06 08:58:53 +02:00
sasezaki
b63129b0dd Remove not used infection.json.dist, and also delete from .gitattributes.
also delete changelog.md, .travis.yml line.
2021-10-06 09:38:35 +09:00
orklah
e04673259c
Merge pull request #6591 from vaceletm/fix-6588-reflection
ReflectionClass::getReflectionConstants has a filter parameter
2021-10-05 20:51:17 +02:00
orklah
4ca171001c
Merge pull request #6598 from orklah/fix-error
fix error
2021-10-05 20:50:47 +02:00
orklah
ad6229fe67 fix error 2021-10-05 20:27:13 +02:00
orklah
0f275cb25a
Merge pull request #6594 from orklah/falsable-returns
Falsable returns
2021-10-05 20:15:25 +02:00
orklah
ecb541ea51 add test 2021-10-05 19:49:05 +02:00
orklah
77c70c0ad2 allow |false in unions as long as it's not alone and not with null 2021-10-05 19:49:05 +02:00
orklah
d8f42d7281
Merge pull request #6597 from orklah/fix-errors
revert confusing change
2021-10-05 19:47:57 +02:00
orklah
433474260c revert confusing change 2021-10-05 19:27:07 +02:00
orklah
d0df1a61ba
Merge pull request #6592 from sasezaki/stub_spl_abstract_cannot_contain
Fix invalid class/method declaration in stub
2021-10-05 16:19:32 +02:00
Manuel VACELET
fffe2b23d6 Remove sample test case
As spotted by @orklah (thanks to them) the test was not
specifying the targeted php version (8.0) so fail was
expected.
2021-10-05 15:17:39 +02:00
Manuel VACELET
1a3d360b14 Add test to verify that CallMap is OK 2021-10-05 15:04:42 +02:00
sasezaki
014543b0ec Fix invalid class/method declaration in stub 2021-10-05 21:41:27 +09:00
Manuel VACELET
d561b29e4d ReflectionClass::getReflectionConstants has a filter parameter
It was introduced in php 8.0.

Fixes #6588
2021-10-05 14:15:28 +02:00
orklah
1a2ac657f8
Merge pull request #6590 from orklah/redundant-return-type
Redundant return type
2021-10-05 13:52:22 +02:00
orklah
dbc70900ff fix tests 2021-10-05 13:41:40 +02:00
orklah
13c2ba61ea fix tests 2021-10-05 13:41:20 +02:00
orklah
7321eed89d don't add return type if it's the same than signature unless there is a description 2021-10-05 13:41:20 +02:00
orklah
902206b3ee
Merge pull request #6578 from orklah/psalter-psalm-param
Psalter psalm-param
2021-10-05 12:51:52 +02:00
orklah
295622088f
Merge pull request #6585 from orklah/truthy
fix isAlwaysTruthy: TNonEmptyString can be falsy (with '0')
2021-10-05 12:49:09 +02:00