robchett
68d6d9b70b
Trigger ImplementedParamTypeMismatch if concrete implementation of magic method does not match the magic method signature
...
Fixes #3871
2023-11-09 15:43:28 +00:00
robchett
44f9440664
Only inherit docblock param type if they type was not expanded
...
fixes this issue: https://psalm.dev/r/edaea88e00
2023-11-09 15:43:28 +00:00
robchett
61f02d8889
Detect magic method signature mismatch on interfaces
...
Fixes #5786
2023-11-09 14:20:01 +00:00
robchett
f4aef37ae5
A segment of progress was being output early as the startScanningFiles() method was not called before actually starting to scan files
2023-11-09 09:24:46 +00:00
orklah
0aa5050109
Merge pull request #10355 from greg0ire/allow-int
...
Allow int keys when calling Redis methods
2023-11-08 23:10:38 +01:00
Grégoire Paris
ba17015dfb
Allow int keys when calling Redis methods
...
In 5bfc0f960b
, risky casting was invoked
as a way to show there is an issue here. However, it is not always
possible to use a string. For instance, there is no such thing as this
in PHP: ["1" => "whatever"]. If you try to create such an array, you
will obtain [1 => "whatever"] instead.
Ironically, this was copied in jetbrains/phpstorm, which is used in
PHPStan, which exhibited that false positive.
See https://github.com/JetBrains/phpstorm-stubs/pull/1454
2023-11-08 22:15:44 +01:00
robchett
86f503ab82
Docblock psudo methods can be inherited via @mixin
...
Fixes #3556
2023-11-08 10:48:19 +00:00
robchett
3578b42e5c
Add stubs for rdKafka
...
Fixes #3406
2023-11-08 09:51:12 +00:00
orklah
5f0798844e
Merge pull request #10349 from ohader/docs/psalm-flow-5.x
...
Add documentation for @psalm-flow
2023-11-06 22:42:54 +01:00
Oliver Hader
e015b7f7de
Add documentation for @psalm-flow
2023-11-06 21:41:56 +01:00
orklah
b775d297bb
Merge pull request #10332 from braindawg/addZipExtensionStub
...
Stub constants for ZipArchive from ext-zip
2023-11-04 16:35:31 +01:00
orklah
7233f38805
Merge pull request #10263 from robchett/maintain_loop_start_val_after_increment
...
Maintain loop start val after increment/decrement
2023-11-04 09:59:05 +01:00
orklah
d041b652cd
Merge pull request #10344 from robchett/seal_method_seal_properties_without_prefix
...
Support @(no-)seal-(properties|methods) annotations without prefix
2023-11-04 09:57:52 +01:00
orklah
f147344741
Merge pull request #10341 from robchett/report_unused_issue_handler_suppressions
...
Report unused issue handler suppressions
2023-11-04 09:57:16 +01:00
orklah
be48d10ce0
Merge pull request #10340 from robchett/RecursiveArrayIterator_stub_correction
...
Fix stub for RecursiveArrayIterator::getChildren
2023-11-04 09:55:37 +01:00
orklah
302fb72bc8
Merge pull request #10326 from robchett/consistent_type_docblock_parsing
...
Consistent type docblock parsing
2023-11-04 09:54:58 +01:00
robchett
fecc4eb274
Rework test as it was a false negative
2023-11-03 21:42:17 +00:00
robchett
8414d70a77
Better reconciling of ++/-- operators in ints
2023-11-03 21:42:17 +00:00
robchett
d925bf5226
Correct decrement min/max ranges
2023-11-03 21:42:17 +00:00
robchett
ec5eae3347
Maintain loop start value after an increment
2023-11-03 21:42:17 +00:00
robchett
3cf93345a9
Sanitize docblocks for psalm-check-type
2023-11-03 21:41:48 +00:00
robchett
f507838ba8
Fix some stub docblocks that were thowing parse errors
2023-11-03 21:41:48 +00:00
robchett
70a83c8e2a
Skip inline docblocks like {@see ...}
2023-11-03 21:41:48 +00:00
robchett
e76db142f8
Suppress '@template T as' test failures
2023-11-03 21:41:48 +00:00
robchett
39ac69b643
Fix parsing of class-string-map<T of Foo, T>
2023-11-03 21:41:48 +00:00
robchett
934383e036
Fix for spaces after , in multiline docblock types
2023-11-03 21:41:48 +00:00
robchett
d05bd5430d
Use CommentAnalyzer::sanitizeDocblockType consistently
2023-11-03 21:41:48 +00:00
robchett
16c06b9dd4
Fix stub for RecursiveArrayIterator::getChildren
2023-11-03 21:41:28 +00:00
robchett
ccabf2144f
Remove unused suppressions
2023-11-03 21:41:06 +00:00
robchett
3448c47931
Warn when an issue handler suppression is unused
2023-11-03 21:41:06 +00:00
robchett
54999abc54
Allow (no-)seal-(properties|methods) without the psalm- prefix
2023-11-03 21:40:37 +00:00
orklah
e6564c6126
Merge pull request #10339 from robchett/global_const_as_enum_case
...
Allow enum cases to be global constants
2023-11-03 20:58:07 +01:00
orklah
7acc50eef0
Merge pull request #10318 from danog/finalize
...
Finalize all internal classes
2023-11-03 20:57:06 +01:00
orklah
41acef50a1
Merge pull request #10319 from danog/rm_73
...
Get rid of legacy 7.3 logic
2023-11-03 20:56:39 +01:00
orklah
b9c82d37be
Merge pull request #9787 from robchett/remove_non-empty-list_status_when_combining_with_empty
...
Incorrectly asserting non-empty-list after combining with empty list
2023-11-03 20:55:26 +01:00
orklah
722fe6c38c
Merge pull request #10320 from issidorov/completion-by-partial-property-or-method
...
Fix auto completion by partial property or method
2023-11-03 20:54:37 +01:00
orklah
65f7d7fb63
Merge pull request #10345 from robchett/scanner_progress
...
Add progress for scanning stage
2023-11-03 20:52:20 +01:00
orklah
4ce7f9f68b
Merge pull request #10333 from braindawg/addStubConstantsForSOAP
...
Add constants from SOAP extension to stub
2023-11-03 20:51:13 +01:00
orklah
b88033989c
Merge pull request #10343 from robchett/hotfix_shepard_build
...
Hotfix shepard build
2023-11-03 20:50:05 +01:00
robchett
f2343ed2e1
Add progress for scanning stage
2023-11-03 10:37:06 +00:00
robchett
c93fe1471d
Hotfix shepard build - see #10342
2023-11-03 07:52:42 +00:00
robchett
97a7cf8452
Allow enum cases to be global constants
2023-11-02 12:30:24 +00:00
Brian Dunne
cfe57e9dbe
Fix redundant PHP tag in SOAP stub
2023-11-01 15:01:48 -05:00
orklah
2e65d5fefa
Merge pull request #10335 from kbond/sf7
...
Allow Symfony 7
2023-10-31 17:30:13 +01:00
Kevin Bond
31928c11f3
allow symfony 7
2023-10-31 10:29:33 -04:00
Brian Dunne
349770f6d0
Add constants from SOAP extension to stub
...
The SOAP extension stub was missing some constants we used (really just
SOAP_1_1 and SOAP_1_2), so I thought I'd add the rest of the constants
declared by the extension to the stub. Values are all pulled straight
from the PHP docs.
2023-10-30 22:36:06 -05:00
Brian Dunne
d07b57576d
Stub constants for ZipArchive from ext-zip
...
This stubs out the class constants for ZipArchive, which I believe are
the only constants introduced by the `zip` extension. This should allow
Psalm to run over code utilizing any of these constants even if the
analyzing system doesn't have ext-zip installed/enabled (e.g. a GitHub
Actions container).
2023-10-30 21:46:40 -05:00
Ivan Sidorov
2f039f9072
Fix auto-completion with declared static method by DocBlock
2023-10-27 09:35:30 +00:00
Ivan Sidorov
d6faff2844
Fix auto comletion by partial property or method
2023-10-26 21:31:47 +00:00
07b45b8116
Get rid of legacy 7.3 logic
2023-10-26 17:18:33 +02:00