orklah
63b389f54d
Merge pull request #8044 from AndrolGenhald/feature/improve-array-spreading
...
Fix various array spread issues.
2022-07-26 20:30:31 +02:00
AndrolGenhald
094621d5bb
Fix array-shape value type being mixed instead of single key being mixed.
2022-07-26 12:00:05 -05:00
AndrolGenhald
ee68184527
Fix key comparison when unpacking Traversables.
2022-07-26 12:00:05 -05:00
AndrolGenhald
2b389df270
Use count
instead of empty
.
2022-07-26 12:00:05 -05:00
AndrolGenhald
d54eebfe02
Fix various array spread issues.
...
- Correctly infer `array` and `list` instead of `non-empty-array` and `non-empty-list` (fixes #7296 )
- Add support for spreading string keys (fixes #7297 ).
- Show issue when trying to unpack non-iterable
- Show issue when trying to unpack iterable with non-array-key key
- Re-added invalid PHP 8.0 tests removed in #6613
- Unpacked lists with known keys will be inferred as eg `array{0: int, 1: int}<int<0, max>, int>` now but will still be treated as lists
- Unpacked arrays with known keys will now be inferred as eg `array{a: string, b: string}<int, int>` instead of `array<int|string, int|string>`
2022-07-26 12:00:03 -05:00
orklah
4b2935f800
Merge pull request #8282 from drupol/stub/fix-cachingiterator
...
Update `CachingIterator::getCache` stub.
2022-07-22 19:38:06 +02:00
Pol Dellaiera
63b64532d6
Update CachingIterator
, use int-mask-of
.
2022-07-22 18:38:12 +02:00
orklah
f6fb7155b7
Merge pull request #8306 from AndrolGenhald/pull/8290
...
Fix type reconciliation breaking Context::$references_in_scope (fixes #8289 ).
2022-07-21 21:48:40 +02:00
AndrolGenhald
ba6270c06a
Fix type reconciliation breaking Context::$references_in_scope ( fixes #8289 ).
2022-07-21 14:27:21 -05:00
Pol Dellaiera
3e0f0b6173
Update CachingIterator
, remove newly added @template
.
...
Also update `RecursiveCachingIterator`, remove extended methods and constructor that are the same.
2022-07-21 08:22:02 +02:00
Oliver Hader
98502d4613
Assert ReconcilerTest::arrayReferencesAreHandled reaches the end
2022-07-20 21:44:28 +02:00
Oliver Hader
6c5e5f77fa
Avoid cloning undefined array index
2022-07-20 21:36:49 +02:00
Oliver Hader
ac315fb0a3
Demonstrate flaw in type reconciliation on array references
2022-07-20 20:33:02 +02:00
orklah
85fe7e8bcf
Merge pull request #8283 from AndrolGenhald/feature/value-of-backed-enum
...
Allow `value-of` to work with backed enums (fixes #7874 ).
2022-07-20 18:03:58 +02:00
AndrolGenhald
66ebf4a55c
Rename TKeyOfArray to TKeyOf.
2022-07-18 14:44:29 -05:00
AndrolGenhald
6505d8e6d5
Fix trailing comma for PHP 7.4.
2022-07-18 14:19:34 -05:00
AndrolGenhald
b51b5ac903
Allow value-of
to work with backed enums ( fixes #7874 ).
2022-07-18 14:10:06 -05:00
orklah
33b553e7b1
Merge pull request #8273 from muglug/muglug-remove-special-elseif-handling
...
Remove special handling for elseifs that breaks for else if
2022-07-18 19:07:01 +02:00
Pol Dellaiera
f4da6aafaa
Update stub based on PR feedback.
2022-07-18 18:13:08 +02:00
Pol Dellaiera
2747f028c9
Update CachingIterator::getCache
stub.
2022-07-18 16:24:10 +02:00
Matthew Brown
e4f73beb08
Add comment for skipped test
2022-07-17 14:06:07 -04:00
Matt Brown
a32e63f131
Simplify context updates even more
2022-07-17 13:11:32 -04:00
Matt Brown
d7d9ddc653
Remove special handling for elseifs that breaks for else if
2022-07-17 12:51:17 -04:00
Matt Brown
8c716f8be7
Support taints in new $_GET["a"] calls
2022-07-15 22:17:59 -04:00
AndrolGenhald
2a72a24435
Merge pull request #8222 from AndrolGenhald/master
...
Merge 4.x to master.
2022-07-13 17:07:07 -05:00
AndrolGenhald
285740a753
Merge branch '4.x'
2022-07-07 15:01:38 -05:00
orklah
6d450036ad
Merge pull request #8000 from discordier/hotfix/update-property-map
...
update property map
2022-07-06 20:44:29 +02:00
orklah
6e27c236f3
Merge pull request #8219 from Tofandel/patch-2
...
fix: ltrim may return class-string #8218
2022-07-06 20:27:50 +02:00
orklah
65ffac249e
Merge pull request #8220 from othercorey/fix-codestyle
...
Fix codestyle errors in InternalCallMapHandlerTest
2022-07-06 20:24:00 +02:00
Corey Taylor
31bee0c845
Fix codestyle erors in InternalCallMapHandlerTest
2022-07-06 03:33:34 -05:00
Christian Schiffler
8ffab5eada
Remove now obsolete casts
2022-07-06 08:59:19 +02:00
Christian Schiffler
ea9903a2c6
Fix variable annotation
2022-07-06 08:59:07 +02:00
orklah
e28cd128db
Merge pull request #8217 from othercorey/fix-callmap-funcs
...
Fix several CallMap function signatures
2022-07-06 07:16:13 +02:00
orklah
38443effb5
Merge pull request #8166 from othercorey/func-return-signatures
...
Allow testing expected CallMap return types
2022-07-06 07:14:15 +02:00
Adrien Foulon
6c49dad38c
fix: ltrim may return class-string #8218
...
Fixes #8218
2022-07-06 02:36:20 +02:00
Corey Taylor
b1e3094bae
Allow testing expected CallMap return types and ignore functions that currently fail
2022-07-05 17:32:34 -05:00
Corey Taylor
e0ebfe19a2
Fix class functions CallMap signatures
2022-07-05 15:36:09 -05:00
Corey Taylor
2469b6222d
Fix extract() CallMap signature
2022-07-05 15:36:09 -05:00
Corey Taylor
c71dcd581e
Fix fputcsv() CallMap signature
2022-07-05 15:36:09 -05:00
Corey Taylor
d0dcd543e4
Fix count() CallMap signature
2022-07-05 15:36:06 -05:00
Christian Schiffler
8e05adb8d4
Regenerate property map file
2022-07-04 11:40:54 +02:00
Christian Schiffler
a8f2b2b85a
Skip sub directories when parsing stubs
...
We now have the extensions in a sub directory and therefore have to skip
that one.
2022-07-04 11:36:32 +02:00
Christian Schiffler
ce4ba69e70
Add missing properties to stubs/Reflection.phpstub
...
This should fix the now failing tests as the properties got removed from
the autogenerated property map.
2022-07-04 11:14:34 +02:00
orklah
b1568920ee
Merge pull request #8210 from vimeo/dependabot/github_actions/actions/checkout-3
...
build(deps): bump actions/checkout from 2 to 3
2022-06-30 19:30:34 +02:00
orklah
fdb664fe1b
Merge pull request #8209 from vimeo/dependabot/github_actions/actions/cache-3
...
build(deps): bump actions/cache from 2 to 3
2022-06-30 19:18:33 +02:00
orklah
cf8f0a0734
Merge pull request #8208 from vimeo/dependabot/github_actions/fkirc/skip-duplicate-actions-4.0.0
...
build(deps): bump fkirc/skip-duplicate-actions from 3.4.0 to 4.0.0
2022-06-30 19:18:13 +02:00
orklah
a129decea5
Merge pull request #8207 from vimeo/dependabot/github_actions/mheap/github-action-required-labels-2
...
build(deps): bump mheap/github-action-required-labels from 1 to 2
2022-06-30 19:18:03 +02:00
dependabot[bot]
005d3e2f50
build(deps): bump actions/checkout from 2 to 3
...
Bumps [actions/checkout](https://github.com/actions/checkout ) from 2 to 3.
- [Release notes](https://github.com/actions/checkout/releases )
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md )
- [Commits](https://github.com/actions/checkout/compare/v2...v3 )
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-06-30 17:05:08 +00:00
dependabot[bot]
236c24faea
build(deps): bump actions/cache from 2 to 3
...
Bumps [actions/cache](https://github.com/actions/cache ) from 2 to 3.
- [Release notes](https://github.com/actions/cache/releases )
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md )
- [Commits](https://github.com/actions/cache/compare/v2...v3 )
---
updated-dependencies:
- dependency-name: actions/cache
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-06-30 17:05:06 +00:00
dependabot[bot]
206a903e46
build(deps): bump fkirc/skip-duplicate-actions from 3.4.0 to 4.0.0
...
Bumps [fkirc/skip-duplicate-actions](https://github.com/fkirc/skip-duplicate-actions ) from 3.4.0 to 4.0.0.
- [Release notes](https://github.com/fkirc/skip-duplicate-actions/releases )
- [Commits](https://github.com/fkirc/skip-duplicate-actions/compare/v3.4.0...v4.0.0 )
---
updated-dependencies:
- dependency-name: fkirc/skip-duplicate-actions
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-06-30 17:05:02 +00:00