tuqqu
09fbe99f5b
Check for declare strict types block mode
2023-09-26 20:59:06 +02:00
orklah
a70b2c0fbf
Merge pull request #10214 from kkmuffme/filter-var-sanitize-url
...
add FILTER_SANITIZE_URL filter to filter_var
2023-09-26 16:20:53 +02:00
ging-dev
45807e27b8
feat(LSP): Improve the autocomplete for nested array shape
2023-09-26 01:52:23 +07:00
kkmuffme
c6648aff87
add FILTER_SANITIZE_URL filter to filter_var
2023-09-18 14:51:20 +02:00
Rudolph Gottesheim
3b775f4617
Allow class-string<T> where T is a union
2023-09-18 12:13:34 +02:00
orklah
7d8d74d32a
Merge pull request #10210 from robchett/add_impure_openssl_functions
...
Add openssl_*_export_to_file to impure functions
2023-09-17 16:06:40 +02:00
robchett
b96d5a3eba
Add openssl_*_export_to_file to impure functions
2023-09-17 11:37:52 +01:00
orklah
ab470b41bd
Merge pull request #10209 from robchett/array_binary_ops
...
Only the binary op 'plus' works with two arrays
2023-09-16 20:05:05 +02:00
robchett
03e8d19eec
Only the binary op 'plus' works with two arrays
...
Treat the result of any other operation as int|float
Fixes #2123
2023-09-16 15:55:59 +01:00
Maximilian Bösing
3e100b15d9
bugfix: allow object assertions for mixed
...
Signed-off-by: Maximilian Bösing <2189546+boesing@users.noreply.github.com>
2023-09-15 20:19:54 +02:00
Guillaume Messier
bb364a23ad
Fix Code Style
2023-09-13 16:44:53 -04:00
Guillaume Messier
ae427fd60e
Add 'safe' methods to prevent overriding issueHandlers already defined in the configuration
2023-09-13 16:30:33 -04:00
Bruce Weirdan
13ea0c241d
Merge pull request #10192 from vimeo/dependabot/github_actions/actions/checkout-4
2023-09-11 14:12:27 +03:00
Maximilian Bösing
eda55a2d27
qa: make assertions more strict as we do want exact matches
...
Signed-off-by: Maximilian Bösing <2189546+boesing@users.noreply.github.com>
2023-09-11 11:14:12 +02:00
dependabot[bot]
49492235fe
Bump actions/checkout from 3 to 4
...
Bumps [actions/checkout](https://github.com/actions/checkout ) from 3 to 4.
- [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/v3...v4 )
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-09-11 07:29:32 +00:00
Maximilian Bösing
7c8a5e8b09
bugfix: resolve recursive conditional return types containing templates
...
Signed-off-by: Maximilian Bösing <2189546+boesing@users.noreply.github.com>
2023-09-11 00:04:01 +02:00
Maximilian Bösing
3dc00518c6
qa: add test for inherited conditional templated return types
...
Signed-off-by: Maximilian Bösing <2189546+boesing@users.noreply.github.com>
2023-09-10 23:57:02 +02:00
Maximilian Bösing
56b719b1e6
qa: remove unnecessary lines from tests
...
Signed-off-by: Maximilian Bösing <2189546+boesing@users.noreply.github.com>
2023-09-10 22:17:30 +02:00
Maximilian Bösing
e3920e6f4d
qa: remove unnecessary type juggling regarding inherited assertions
...
Signed-off-by: Maximilian Bösing <2189546+boesing@users.noreply.github.com>
2023-09-10 22:17:30 +02:00
Maximilian Bösing
ad463f38e9
bugfix: always gather class templates
...
No clue why there are conditions on when templates are allowed to get picked up. I've removed this check which actually solves a problem in inherited assertions.
Signed-off-by: Maximilian Bösing <2189546+boesing@users.noreply.github.com>
2023-09-10 22:17:30 +02:00
Maximilian Bösing
f6f7c20f36
qa: extend inherited assertion test
...
Signed-off-by: Maximilian Bösing <2189546+boesing@users.noreply.github.com>
2023-09-10 22:17:29 +02:00
Bruce Weirdan
ea1664f30b
Merge pull request #10190 from boesing/feature/array-object-array-key
2023-09-10 20:09:10 +03:00
Bruce Weirdan
5b54bd8171
Merge pull request #10187 from gsteel/date-time-zone-name-is-non-empty
2023-09-10 18:39:22 +03:00
Maximilian Bösing
7f8ec79243
qa: modify tests since array keys are not mixed for ArrayObject
...
Signed-off-by: Maximilian Bösing <2189546+boesing@users.noreply.github.com>
2023-09-10 16:06:56 +02:00
Maximilian Bösing
e77a4bcbbe
feature: narrow key template for ArrayObject
to array-key
...
This aligns behavior with PHPStan: ab154e1da5/stubs/ArrayObject.stub (L38)
Signed-off-by: Maximilian Bösing <2189546+boesing@users.noreply.github.com>
2023-09-10 15:54:08 +02:00
George Steel
6cd4c48e0b
date_default_timezone_(get|set)
return|accept non-empty-string
...
Signed-off-by: George Steel <george@net-glue.co.uk>
2023-09-10 10:26:53 +01:00
George Steel
e98ed16577
DateTimeZone::getName()
always returns non-empty-string
and cannot be constructed with an empty string
...
Signed-off-by: George Steel <george@net-glue.co.uk>
2023-09-09 23:48:49 +01:00
Bruce Weirdan
f782767438
Merge pull request #10186 from tscni/fix/referenced-function-ns
2023-09-09 16:55:23 +03:00
Tinjo Schöni
8fbe14a34b
Restore support for namespaced functions in referencedFunction config
2023-09-09 01:47:09 +02:00
Bruce Weirdan
8362cc6900
Merge pull request #10161 from weirdan/composer.json-tweaks
2023-09-03 23:06:57 +02:00
Bruce Weirdan
d7ba2cc5ee
Merge pull request #10176 from weirdan/flag-invalid-declares
2023-09-03 00:06:39 +02:00
Bruce Weirdan
cd8fc46554
Flag invalid declares
2023-09-02 23:41:50 +02:00
Bruce Weirdan
c0599975c6
Merge pull request #10169 from robchett/fix_InheritorViolation
2023-08-31 23:34:29 +02:00
robchett
d0c4d170b0
Apply psalm-inheritors to interfaces too
2023-08-31 23:12:10 +02:00
robchett
e23971ca29
InheritorViolation was only being triggered on grand-childen classes
...
Fixes #10167
2023-08-31 23:12:07 +02:00
Bruce Weirdan
ca967bc162
Added support links
2023-08-30 07:45:16 +02:00
Bruce Weirdan
791e5d65b5
composer.json
tweaks
...
Psalm is not a library.
Also updated `composer lint` description.
2023-08-30 07:37:29 +02:00
Bruce Weirdan
cc7ed9586e
Merge pull request #10156 from boesing/bugfix/prevent-infinite-loop-in-type-parser
2023-08-28 12:06:45 +02:00
Bruce Weirdan
3814fbb231
Merge pull request #10157 from boesing/bugfix/assertions-from-inherited-docblock
2023-08-28 12:04:47 +02:00
Maximilian Bösing
66c01813c1
refactor: move assertion detection based on inherited classes/interfaces into internal resolver
...
This also enables `ExistingAtomicStaticCallAnalyzer` to detect those inherited assertions.
Signed-off-by: Maximilian Bösing <2189546+boesing@users.noreply.github.com>
2023-08-28 11:09:23 +02:00
Bruce Weirdan
b29ea52dd9
Merge pull request #10159 from vimeo/fix-crash-on-property-access-with-missing-dependency
2023-08-28 02:10:39 +02:00
Bruce Weirdan
b3150d451a
Fix crash on property access to undefined property on a class with a missing dependncy
2023-08-28 01:58:02 +02:00
Maximilian Bösing
2a0ce2fecc
qa: add newlines to prevent exceeding 120 character line-length limit
...
Signed-off-by: Maximilian Bösing <2189546+boesing@users.noreply.github.com>
2023-08-28 01:15:49 +02:00
Maximilian Bösing
5e520e6bff
bugfix: properly inherit assertions from parents or implemented interfaces
...
Signed-off-by: Maximilian Bösing <2189546+boesing@users.noreply.github.com>
2023-08-28 01:12:28 +02:00
Maximilian Bösing
3fa5710400
qa: preserve already detected modifications
...
Signed-off-by: Maximilian Bösing <2189546+boesing@users.noreply.github.com>
2023-08-27 22:38:43 +02:00
Maximilian Bösing
d9ebab6b75
bugfix: prevent infinite-loop when resolving type-aliases
...
The type-expander returns the same `intersection_type` in case something is not properly expandable. To avoid infinite-loop, we do explicitly verify that the expanded alias is actually resolved
Signed-off-by: Maximilian Bösing <2189546+boesing@users.noreply.github.com>
2023-08-27 17:08:55 +02:00
Bruce Weirdan
77436b1339
Merge pull request #10154 from cgocast/5.x
2023-08-27 05:27:41 +02:00
Bruce Weirdan
55fb26951a
Merge pull request #10155 from weirdan/update-mysqli-stub
2023-08-27 04:37:25 +02:00
Bruce Weirdan
23ad49cbe4
Update mysqli
stub
...
Refs vimeo/psalm#9851
2023-08-27 04:17:23 +02:00
cgocast
bb902990f8
Sink for ReflectionFunction::__construct()
2023-08-26 22:09:27 +02:00