Brown
|
29c869ed67
|
Ignore nullable issues on just-coerced types
|
2019-05-21 12:59:06 -04:00 |
|
Brown
|
034ea725e8
|
Coerce generic types from empty
|
2019-05-21 12:12:13 -04:00 |
|
Brown
|
4ecf370900
|
Coerce mixed values when passed as arguments
|
2019-05-21 11:51:41 -04:00 |
|
Matthew Brown
|
ea930b8875
|
Fix interface_exists after class_exists check
|
2019-05-20 20:57:59 -04:00 |
|
Matthew Brown
|
1e853800a3
|
Fix #1657 - allow interface_exists to generate class-string assertion
|
2019-05-19 15:56:04 -04:00 |
|
Brown
|
963d5bb901
|
Fix #1656 - allow chained call completion
|
2019-05-17 12:38:29 -04:00 |
|
Brown
|
9a93525d33
|
Emit undefined docblock class error where appropriate on property fetcthes
|
2019-05-16 15:07:07 -04:00 |
|
Brown
|
4a434d9a2f
|
Add separate issue for undefined classes in docblocks
|
2019-05-15 18:41:26 -04:00 |
|
Barney Laurance
|
6fbe2b0837
|
Extract function NamespaceAnalyzer::nameSpaceRootsMatch
|
2019-05-14 18:54:16 -04:00 |
|
Barney Laurance
|
14843ed58a
|
psalm-internal - extract function NamespaceAnalyzer::isWithin
Also adjust behaviour so things can be internal to classes, not just to
namespace, and namespace comparision is case insensitive
|
2019-05-14 18:54:16 -04:00 |
|
Barney Laurance
|
cd673538f1
|
psalm-internal - refactor - use snake_case not camelCase
|
2019-05-14 18:54:16 -04:00 |
|
Barney Laurance
|
cd16dc7ac3
|
psalm-internal - PHPBCBF fixes
|
2019-05-14 18:54:16 -04:00 |
|
Barney Laurance
|
7b7683bdaf
|
psalm-internal - prevent setting internal property from other namespace
|
2019-05-14 18:54:16 -04:00 |
|
Barney Laurance
|
ce5d307f83
|
psalm-internal - present fetching internal property from other namespace
|
2019-05-14 18:54:16 -04:00 |
|
Barney Laurance
|
0ebcba3e02
|
psalm-internal - prevent instantiation of class from other namespace
|
2019-05-14 18:54:16 -04:00 |
|
Barney Laurance
|
059d1ef177
|
psalm-internal - prevent static call to psalm-internal class from other namespace
|
2019-05-14 18:54:16 -04:00 |
|
Tyson Andre
|
d4f1a4a75f
|
Remove unused variables/comment params
|
2019-05-11 22:11:38 -04:00 |
|
Brown
|
9b75683796
|
Search better, and avoid fatal error
|
2019-05-09 19:34:38 -04:00 |
|
Brown
|
d7ee952084
|
Infer closure param type for array_filter/array_map
Fixes #664
|
2019-05-07 16:27:25 -04:00 |
|
Matthew Brown
|
4f8d6a50d8
|
Don’t emit MissingClosureReturnType when inside call and type can be inferred
|
2019-05-06 20:47:55 -04:00 |
|
Brown
|
fec1a60e90
|
Ref #1600 - partial fix inferring param types when none is available
|
2019-05-06 18:44:10 -04:00 |
|
Brown
|
640c1d13a6
|
Fix unused variables now found in Psalm’s code
|
2019-05-02 17:21:23 -04:00 |
|
Brown
|
86bf159bd0
|
Avoid false positive for param
|
2019-05-02 15:33:47 -04:00 |
|
Brown
|
4f26c8d749
|
Fix #1597 - ternary else should only know about first conditional expression
|
2019-05-02 13:43:18 -04:00 |
|
Matthew Brown
|
ae531506de
|
Fix #1591 - allow variable typed to string to be compared to literal in reverse order
|
2019-05-02 00:50:35 -04:00 |
|
Matthew Brown
|
e08944cae0
|
Allow diff mode with --find-dead-code
|
2019-04-27 17:38:24 -04:00 |
|
Matthew Brown
|
59e53acd56
|
Fix new template class array key coercion to mixed - when we don’t know, assume bottom type
|
2019-04-26 07:54:21 -04:00 |
|
Tyson Andre
|
dbcedd300b
|
Fix error messages for $boolVar !== null
Seen for this example:
$b = rand() % 2 > 0;
if ($b !== null) { ... }
|
2019-04-26 00:19:46 -04:00 |
|
Brown
|
0e4c8ce482
|
Split apart TypeCoercion issues, allowing more granular issue filtering
|
2019-04-25 18:02:19 -04:00 |
|
Matthew Brown
|
3681762a9b
|
Add detection for callable variable use
|
2019-04-23 22:31:38 -04:00 |
|
Matthew Brown
|
9be8013633
|
Add a way to ignore variable method & property calls
|
2019-04-20 17:49:49 -04:00 |
|
Brown
|
205fa36fb7
|
Add better error messages to unused code issues
|
2019-04-19 11:45:22 -04:00 |
|
Brown
|
d6de6ca5d5
|
Prevent removing properties on classes with variable assignment
|
2019-04-18 14:47:58 -04:00 |
|
Brown
|
4807ebe04a
|
Always evaluate static calls when method call cannot
|
2019-04-18 13:51:34 -04:00 |
|
Brown
|
d51475bc03
|
Register magic property get/set propertyExists calls
|
2019-04-18 10:41:46 -04:00 |
|
Brown
|
a529f74473
|
Add support for tracking callables
|
2019-04-17 15:45:40 -04:00 |
|
Brown
|
80e28d6a4a
|
Add support for unused method & property automated removal
|
2019-04-17 11:12:18 -04:00 |
|
Brown
|
ff14f671b1
|
Add hopefully-more-portable method for evaluating method/property usage
|
2019-04-16 16:07:48 -04:00 |
|
Bruce Weirdan
|
8dda8a0ee4
|
cs fix
|
2019-04-13 12:35:49 -04:00 |
|
Bruce Weirdan
|
4daf94ca1d
|
Case-insensitive checks for var_dump and shell_exec
Fixes vimeo/psalm#1547
|
2019-04-13 12:35:49 -04:00 |
|
Brown
|
26e2de93c7
|
Prepare to enable paralellised use of --find-dead-code
References #1548
|
2019-04-12 18:28:07 -04:00 |
|
Brown
|
b6d0ee0777
|
Prevent impossible === false comparison
|
2019-04-12 10:30:56 -04:00 |
|
Matthew Brown
|
39af691d2f
|
Fix #1546 - catch impossible assertions to true
|
2019-04-12 09:38:56 -04:00 |
|
Matthew Brown
|
ea20a2bd04
|
Fix #1540 - use correct comparison for callable param types
|
2019-04-12 00:44:10 -04:00 |
|
Brown
|
be5a262deb
|
Add better handling for non-edge-case function calls
|
2019-04-11 14:53:21 -04:00 |
|
Brown
|
8f1dbc072d
|
Allow empty offset sets on arrayaccess objects
|
2019-04-10 17:25:25 -04:00 |
|
Brown
|
7f8b47c5cf
|
Fix buggy behaviour around callable tests
|
2019-04-09 18:09:57 -04:00 |
|
Brown
|
808522c36f
|
Add workaround SoapFault::__construct, fixing #1535
|
2019-04-09 15:06:10 -04:00 |
|
Brown
|
1348d634ed
|
Improve handling of variadic parameters
|
2019-04-09 13:58:49 -04:00 |
|
Brown
|
9447cd2d98
|
Prevent scalar property assertion error
|
2019-04-03 10:59:27 -04:00 |
|