Bruce Weirdan
|
7aa5564047
|
Merge pull request #6192 from orklah/array_replace_not_nullable
make array_replace and array_replace_recursive not nullable
|
2021-07-28 00:20:46 +03:00 |
|
orklah
|
d9df3211c5
|
make array_replace and array_replace_recursive not nullable
|
2021-07-27 23:02:41 +02:00 |
|
orklah
|
2259113727
|
fix wrong wording
|
2021-07-26 21:09:12 +02:00 |
|
orklah
|
52033f4b69
|
fix condition when scalar is allowed
|
2021-07-13 00:34:22 +02:00 |
|
orklah
|
1fc8982ca9
|
fix condition when bool is allowed
|
2021-07-13 00:19:13 +02:00 |
|
orklah
|
688367de38
|
Always emit InvalidArgument when the parameter is always false and not accepted
|
2021-07-13 00:06:36 +02:00 |
|
Bruce Weirdan
|
e93b37a225
|
Merge pull request #6060 from VincentLanglet/statement
|
2021-07-11 22:12:10 +03:00 |
|
Matthew Brown
|
acc7ee261c
|
Fix #6066 - introduce more robust system for capturing template constraints (#6072)
* Fix #6066 - add better system for capturing template constraints
* Fix comment
|
2021-07-11 12:03:21 -04:00 |
|
Vincent Langlet
|
3339ce1379
|
Use stmt instead of args
|
2021-07-11 11:22:13 +02:00 |
|
Matthew Brown
|
d883d73991
|
Fix template bound terminology
I had this flipped by mistake
|
2021-07-10 14:08:09 -04:00 |
|
Vincent Langlet
|
49ed7b045f
|
Pass statement to MethodReturnTypeProviderEvent
|
2021-07-08 00:02:36 +02:00 |
|
Matt Brown
|
19cc4cb4ee
|
Simplify lots of usage checks
|
2021-06-25 10:14:49 -04:00 |
|
Matt Brown
|
67d68a5dc0
|
Use more accurate variable name
|
2021-06-25 09:54:39 -04:00 |
|
Bruce Weirdan
|
6d4262edbd
|
Mark return values in as throw argument as used (#5989)
Fixes vimeo/psalm#5975
|
2021-06-25 09:11:27 -04:00 |
|
Matthew Brown
|
c2f7422e80
|
Prevent crash with non-UTF-8 string
Fixes #5945
|
2021-06-17 12:26:18 -04:00 |
|
Matt Brown
|
47bf5ed567
|
Fix #5918 - add new issue to detect unquoted strings
|
2021-06-10 17:43:04 -04:00 |
|
Matthew Brown
|
6d09418a23
|
Detect unused return values (#5917)
* Detect unused return values
* Allow static-returning instance methods (presumed to be fluent)
* Make $is_used the default for Codebase::methodExists
|
2021-06-10 14:18:15 -04:00 |
|
Bruce Weirdan
|
6abce3525a
|
Enforce use sort (#5900)
|
2021-06-07 22:55:21 -04:00 |
|
Matt Brown
|
f3fc112bae
|
Fix #4523 - fix short-circuiting for properties and method calls
|
2021-06-01 16:06:12 -04:00 |
|
Bruce Weirdan
|
0c77ccc238
|
Check whether constructor is internal on new call (#5843)
Fixes vimeo/psalm#5841
|
2021-05-28 09:44:07 -04:00 |
|
Matt Brown
|
38c452ae58
|
Add example given in ticket and ensure that works too
|
2021-05-24 00:09:51 -04:00 |
|
Matt Brown
|
7354ec9903
|
Fix #5298 - improve handling of method that may write properties
|
2021-05-23 16:22:52 -04:00 |
|
Matt Brown
|
6a61298074
|
Fix #5810 - detect properties that are never read
|
2021-05-21 09:25:57 -04:00 |
|
Matt Brown
|
4f9067f5c8
|
Fix unused properties in Psalm’s own codebase
|
2021-05-21 09:15:23 -04:00 |
|
Matt Brown
|
4b17cc9a4b
|
Fix #5809 - remove unnecessary issue suppression
|
2021-05-21 07:35:01 -04:00 |
|
Matt Brown
|
1195335078
|
Fix #5768 - call methods with proper params
|
2021-05-14 22:50:11 -04:00 |
|
Matt Brown
|
5f780e7ef7
|
Improve count inference
|
2021-05-14 20:12:28 -04:00 |
|
Matt Brown
|
c4aea7c82c
|
Fix #5434 - prevent crash with class-string-map
|
2021-05-14 19:44:11 -04:00 |
|
Matthew Brown
|
cc7ff94f7c
|
Prevent crash when method being called does not exist in reflection
Crash seen when running this test in PHP 7.4 because the method does not exist, but the call map includes it in 8.0
|
2021-05-13 12:40:39 -04:00 |
|
Matthew Brown
|
859b4a2caa
|
Fix #5725 – don’t transform non-docblock types unnecessarily
|
2021-05-09 12:03:42 -04:00 |
|
Matthew Brown
|
832a190dd4
|
Support enums (#5699)
* Add initial enum preparation
* Support cases method
* Ignore bad use error
cc @weirdan
* Fix type
|
2021-05-03 17:54:09 -04:00 |
|
Bruce Weirdan
|
105c6f3a1c
|
Remove (and prevent) unused uses (#5704)
* Updates `slevomat/coding-standard`
* Removes unused uses
* Prevents unused uses
* Fixes a number of symbol case mismatches
|
2021-05-03 17:22:15 -04:00 |
|
Matt Brown
|
0f5b117534
|
Migrate ClassLikeName options to object
|
2021-04-30 15:01:33 -04:00 |
|
Matt Brown
|
2fa55d147a
|
Allow parent class to call child protected method
|
2021-04-25 12:44:53 -04:00 |
|
Matt Brown
|
419114e1f0
|
Fix #5662 — prevent crash when reporting mixed issue on virtual arg
|
2021-04-23 15:34:35 -04:00 |
|
Matthew Brown
|
e505cd58b4
|
Add use
|
2021-04-12 23:52:50 -04:00 |
|
Matt Brown
|
b7f122425f
|
Use proper variable
|
2021-04-10 21:48:50 -04:00 |
|
Matt Brown
|
012dafad79
|
Fix #5383 - prevent unsound use of new static for generics
|
2021-04-10 13:16:19 -04:00 |
|
AndrolGenhald
|
870c433dc2
|
Check oldest ancestor for protected method visibility (fixes #5595) (#5597)
|
2021-04-07 22:01:41 -04:00 |
|
Matt Brown
|
a469c82653
|
Fix #5587 - detect final class calls when routed through parent
|
2021-04-06 12:35:09 -04:00 |
|
Matt Brown
|
517b2030c9
|
Fix #5545 - throwing uses method
|
2021-04-04 21:17:12 -04:00 |
|
Matt Brown
|
150dd00060
|
Fix #5540 - function is used inside throw expression
|
2021-03-31 10:03:25 -04:00 |
|
Matt Brown
|
9a714b759e
|
Fix #5496 - ensure params extended in properties are properly fleshed out
|
2021-03-28 23:10:38 -04:00 |
|
Matt Brown
|
93743d1465
|
Also add better message for MixedArgumentTypeCoercion
|
2021-03-28 11:32:38 -04:00 |
|
Saif Eddin Gmati
|
9f74676524
|
allow dismissing return value of pure functions with by-reference arguments (#5463)
|
2021-03-25 09:05:59 -04:00 |
|
Jean-Nicolas
|
30f64b79de
|
Checks the intersection type if the magic method does not exist (#5473)
|
2021-03-24 15:34:05 -04:00 |
|
Matt Brown
|
efa9b136d3
|
Fix linting issues
|
2021-03-23 19:42:56 -04:00 |
|
Saif Eddin Gmati
|
477ae33cd6
|
allow dismissing return value of no-return pure functions (#5461)
|
2021-03-23 19:34:12 -04:00 |
|
Matt Brown
|
a96645d2e3
|
Fix many uses of offsets
|
2021-03-23 01:30:51 -04:00 |
|
Matt Brown
|
bf578d1024
|
Fix potential crash when calling magic setter
|
2021-03-22 23:08:38 -04:00 |
|