Matthew Brown
|
f961da53b7
|
Fix typos
|
2019-05-30 08:53:20 -04:00 |
|
Matthew Brown
|
0555bd9ff6
|
Prevent InternalMethod at implicit __get
|
2019-05-30 08:50:50 -04:00 |
|
Brown
|
e85794038f
|
Fix #1704 - improve type coercion complaints
|
2019-05-29 14:22:15 -04:00 |
|
Matthew Brown
|
4f48c6388d
|
Fix #1700 - interpret false===($a || $b) correctly
|
2019-05-29 07:47:31 -04:00 |
|
Brown
|
602bae3bb3
|
Allow class_exists(..., false) to inform class-string type
|
2019-05-28 13:16:09 -04:00 |
|
Brown
|
0e6d07c4e9
|
Add ancillary var types
|
2019-05-28 11:58:15 -04:00 |
|
Matthew Brown
|
a001616753
|
Remove object-like array under falsy assertion when it contains a sure key
|
2019-05-28 00:32:27 -04:00 |
|
Brown
|
cf02e9c22c
|
Fix access on matched T[K]
|
2019-05-27 18:36:34 -04:00 |
|
Matthew Brown
|
4302596654
|
Revert "Implement better progress"
This reverts commit 042070d0fd .
|
2019-05-27 13:07:02 -04:00 |
|
Matthew Brown
|
5861476765
|
Don’t remove null after magic property fetch
|
2019-05-27 09:18:34 -04:00 |
|
Matthew Brown
|
c356c452ec
|
Fix #1692 - allow magic annotations on all interfaces without config flag
|
2019-05-26 23:35:03 -04:00 |
|
Ilija Tovilo
|
042070d0fd
|
Implement better progress
|
2019-05-26 23:18:48 -04:00 |
|
Matthew Brown
|
69150d503a
|
Fix #1682 - correct arg check
|
2019-05-26 16:26:47 -04:00 |
|
Matthew Brown
|
8b9de8bba6
|
class_esists check with false arg shouldn’t count
Fixes #1682
|
2019-05-26 13:16:44 -04:00 |
|
Matthew Brown
|
790bc53bfd
|
Fix #1681 - interpret parent annotation properly
|
2019-05-25 11:51:09 -04:00 |
|
Matthew Brown
|
9fb96793cd
|
Fix #1676 - don’t modify original param types with templated by-reference
|
2019-05-24 18:17:48 -04:00 |
|
Matthew Brown
|
569d82641d
|
Ignore PossiblyNullReference on synthetic method calls
|
2019-05-24 14:09:01 -04:00 |
|
Matthew Brown
|
7a48225184
|
Fix leaky template type
|
2019-05-24 13:35:14 -04:00 |
|
Matthew Brown
|
3e2b7163ca
|
Fix #1674 - treat intersections more equally regardless of order
|
2019-05-24 12:48:37 -04:00 |
|
Matthew Brown
|
13b9e133e4
|
Fix Psalm errors
|
2019-05-24 02:15:35 -04:00 |
|
Matthew Brown
|
c80f9d8ecd
|
Add class-based support for key-of
Ref #762
|
2019-05-24 02:12:58 -04:00 |
|
Matthew Brown
|
574545e149
|
Add initial support for key-of<T>
Ref #762
|
2019-05-23 23:53:48 -04:00 |
|
Brown
|
56daa390fc
|
Allow array access on @template T as array
Ref #1607
|
2019-05-23 18:06:22 -04:00 |
|
Brown
|
01dcf8f631
|
Fix erroneous update of existing variables
|
2019-05-23 18:04:12 -04:00 |
|
Brown
|
6ce5fefa4b
|
Fix #1664 - allow templated __get params
|
2019-05-23 12:59:09 -04:00 |
|
Brown
|
83fe545c94
|
Fix docblock
|
2019-05-22 18:09:36 -04:00 |
|
Brown
|
f728d797cf
|
Fix #1665 - allow -if-true & -if-false assertions on static methods
|
2019-05-22 17:49:38 -04:00 |
|
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 |
|
Brown
|
21b1c04c1d
|
Fix #1526 - ignore files if they weren’t picked up in scanning step
|
2019-04-03 10:43:48 -04:00 |
|
Matthew Brown
|
ef8292cfc7
|
Fix #1510 - analyse mixed array offsets
|
2019-03-31 15:42:15 -04:00 |
|
bugreportuser
|
1a4b9ab25f
|
Allow suppressing exception issues inline
|
2019-03-31 14:22:19 -04:00 |
|
bugreportuser
|
4fc7e4affc
|
Give errors for all uncaught exceptions
|
2019-03-31 14:22:19 -04:00 |
|
Brown
|
1ab6345bac
|
Fix treatment of PDOStatement::setFetchMode
Fixes #1496
|
2019-03-29 13:26:13 -04:00 |
|
Matthew Brown
|
230680fd1c
|
Fix #1513 - use correct param types when examining abstract trait methods
|
2019-03-28 22:47:17 -04:00 |
|
Brown
|
937eb42e8b
|
Do not override parent return type
|
2019-03-28 10:43:49 -04:00 |
|
Matthew Brown
|
bd6fea0d57
|
Fix #1514 - catch static interface call
|
2019-03-28 08:22:44 -04:00 |
|
Matthew Brown
|
e9afd3a6f3
|
Examine arrays in unknown function calls
|
2019-03-27 22:13:06 -04:00 |
|
Matthew Brown
|
63a0e768b3
|
Improve type coverage in both good and bad ways
|
2019-03-25 22:30:40 -04:00 |
|
Brown
|
783f028f70
|
Fix #1498 - use template types from parent function
|
2019-03-25 11:25:43 -04:00 |
|
bugreportuser
|
8b12751007
|
Keep track of throw code locations
|
2019-03-24 23:03:37 -04:00 |
|
Tyson Andre
|
2e6a2f14ed
|
Fix typos in psalm with codespell's dictionary
|
2019-03-24 23:01:20 -04:00 |
|
Tyson Andre
|
fc83f1c3ea
|
Fix typo: "Arithmentic" -> "Arithmetic"
|
2019-03-24 23:00:51 -04:00 |
|
Matthew Brown
|
6bcc3d0261
|
Don’t stop analysing on var_dump
|
2019-03-23 10:58:26 -04:00 |
|
Matthew Brown
|
ee56419fd6
|
Improve accuracy and durability of mixed counts
|
2019-03-23 09:50:47 -04:00 |
|
Brown
|
9cf78e9097
|
Remove unused var
|
2019-03-22 19:12:06 -04:00 |
|
Brown
|
c221eccbf5
|
Tidy up method call analyser
|
2019-03-22 18:02:33 -04:00 |
|
Brown
|
cacd5a1946
|
Cast null array key to empty string
Fixes #1487
|
2019-03-22 16:45:17 -04:00 |
|
Brown
|
cc568422d8
|
Fix #1488 - allow inheritance when dummy template exists
|
2019-03-22 16:29:30 -04:00 |
|
Brown
|
b9ba24929d
|
Refactor storage of template names to prevent clashes
|
2019-03-22 15:59:10 -04:00 |
|
Brown
|
ab6ca4dc35
|
Fix #1491 - allow comparison to typed value
|
2019-03-21 17:26:10 -04:00 |
|
Brown
|
8d06c6a700
|
Fix #1480 by remembering where a property was set
|
2019-03-19 19:43:18 -04:00 |
|