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

11856 Commits

Author SHA1 Message Date
Thomas Gerbet
62e92fb0cf Add stubs for ext-ffi
See #8612
2022-10-25 19:59:44 +02:00
orklah
aea40efb22
Merge pull request #8611 from mcaskill/feature/5.x/dirname-return-type-provider
Add dirname return type provider
2022-10-23 20:21:01 +02:00
Chauncey McAskill
0afd873787
Fix dirname return type provider
Changed:
- Replaced extraction of `$dir_level` literal value to be from the NodeTypeProvider instead of from the statement; based on similar logic in `RoundReturnTypeProvider`.
- Replaced `new` return type creation with `Type` method creation.
- Replaced `null` return with string type.

Fixed:
- Typo on variable name for extracted `StatementsSource`.
- Edge case where `$dir_level` is less than 1.
- Broken unit tests.
2022-10-23 12:11:58 -04:00
Chauncey McAskill
1dfadfa9ec
Add dirname return type provider 2022-10-23 11:56:02 -04:00
orklah
b0970a6994
Merge pull request #8586 from Nicelocal/fix_8560
Fix #8560
2022-10-19 22:06:00 +02:00
orklah
0b80db5cfc
Merge pull request #8605 from zenahirsch/patch-1
Fix typo
2022-10-19 22:02:58 +02:00
Zena Hirsch
459fdcd588
Fix typo: "unitialized" 2022-10-19 14:36:43 -04:00
orklah
347a1c21d4
Merge pull request #8601 from pchapl/fix-docs-syntax
Docs: Fix minor php syntax issues in code examples
2022-10-19 20:11:42 +02:00
34a0f2b0c7
Merge branch 'master' into fix_8560 2022-10-19 19:44:04 +02:00
orklah
e52b712bf0
Merge pull request #8525 from Nicelocal/immutable_readonly_3
Immutable readonly atomics
2022-10-19 18:57:31 +02:00
Pavel Chaplygin
48da8342ad Docs: Fix minor php syntax issues in code examples 2022-10-18 14:57:50 +03:00
03f234456d Fix 2022-10-17 20:31:11 +02:00
c9ff8c2c67 Prevent re-resolution of static 2022-10-17 20:31:11 +02:00
abb0e2e3f9 Fix #8560 2022-10-17 20:31:11 +02:00
orklah
212281dbcd
Merge pull request #8591 from Nicelocal/merge_4.x
Merge 4.x
2022-10-17 20:16:37 +02:00
3b3afd5369 Fixes 2022-10-17 13:10:12 +02:00
7b6e09afc9 Merge branch 'merge_4.x' into immutable_readonly_3 2022-10-17 12:58:41 +02:00
56805ab089 Fix 2022-10-17 12:54:46 +02:00
5427835fa5 Re-apply changes manually 2022-10-17 12:46:12 +02:00
15f5c593a7 Fix 2022-10-17 12:40:50 +02:00
1abade3c30 Skip 2022-10-17 12:14:07 +02:00
150be5ca22 Update 2022-10-17 10:45:18 +02:00
8d4d0c0e4a Fixes 2022-10-17 10:33:33 +02:00
53e3889745 Fixes 2022-10-17 10:21:26 +02:00
f816c06331 Fix 2022-10-16 14:39:34 +02:00
8518372cad Fixes 2022-10-16 14:23:31 +02:00
34000ca90d Fixes 2022-10-16 13:59:15 +02:00
cbd1a27ea7
Merge branch 'master' into merge_4.x 2022-10-16 13:49:21 +02:00
4912651a9a Fix 2022-10-16 13:48:45 +02:00
b79c43a288 Merge remote-tracking branch 'origin/4.x' into merge_4.x 2022-10-16 13:42:43 +02:00
748a74bb2c Merge remote-tracking branch 'origin/4.x' into HEAD 2022-10-16 13:41:27 +02:00
orklah
921801707d
Merge pull request #8583 from gphargreaves/#8484/fix-datetimeimmutable-sub
Correct return type of DateTimeImmutable sub method stub
2022-10-15 14:51:43 +02:00
orklah
dbb8815813
Merge pull request #8585 from gphargreaves/#8315/concat-non-empty-strings
Add additional checks for concat of non-empty strings to return non-falsy
2022-10-15 14:37:11 +02:00
orklah
61ef140e28
Merge pull request #8579 from ADmad/patch-2
Fix template param for SplDoublyLinkedList
2022-10-15 14:35:14 +02:00
ADmad
9bd4d7a740 Fix template param for SplDoublyLinkedList.
It's key is always an integer.
2022-10-14 11:54:53 +05:30
Greg Hargreaves
b89ff32b7a Remove duplicated numeric type declaration 2022-10-14 02:00:25 +01:00
Greg Hargreaves
06581ce4b0 Add additional checks for concat of non-empty strings to return non-falsy 2022-10-14 01:54:06 +01:00
Greg Hargreaves
8849e8ca38 Fix test for DateTimeImmutable sub method return type 2022-10-14 00:59:54 +01:00
Greg Hargreaves
ef0d2256a6 Remove link to php-src as was part of the documented reason for the return type false 2022-10-14 00:56:20 +01:00
Greg Hargreaves
f573ef5163 Correct return type of DateTimeImmutable sub method stub 2022-10-14 00:49:57 +01:00
orklah
e7f05c3f55
Merge pull request #8578 from Nicelocal/fix_6983_8564
Fix #6983 #8564
2022-10-13 21:57:12 +02:00
orklah
f8d1dd82c8
Merge pull request #8577 from cristianobaptista/fix/8576
fix mapped property type for DOMNode childNodes
2022-10-13 19:33:43 +02:00
a2b03e4f52 cs-fix 2022-10-13 13:54:18 +02:00
6e32dc02fc Improvements 2022-10-13 13:53:03 +02:00
8c9558c92b Fix #6983, #8564 2022-10-13 13:42:35 +02:00
Cristiano Baptista
f2ea9e5b3e fix mapped property type for DOMNode childNodes 2022-10-13 13:36:23 +02:00
orklah
bb9aabe5b1
Merge pull request #8570 from Nicelocal/fix_8569
Fix #8569
2022-10-12 20:59:04 +02:00
e43c6c1a13 cs-fix 2022-10-12 19:54:52 +02:00
orklah
8d874aa627
Merge pull request #8571 from Nicelocal/fix_8562
Fix #8562
2022-10-12 19:34:35 +02:00
a7af027645 Fix #8562 2022-10-12 11:40:29 +02:00