Matthew Brown
|
1d17c02fba
|
Fix #3442 - support broader type after initial array assignment
|
2020-05-23 23:23:50 -04:00 |
|
Matthew Brown
|
187b944680
|
Add faster taint analysis
|
2020-05-22 12:33:29 -04:00 |
|
Brown
|
5ee1487a01
|
Make ExpressionAnalyzer more beautiful
|
2020-05-18 15:13:27 -04:00 |
|
Brown
|
73f8f963fa
|
Expand out class constants as early as possible
Fixes #3128
|
2020-04-12 20:38:36 -04:00 |
|
Brown
|
9d2957d339
|
Fix a few more edge-cases
|
2020-04-12 01:26:11 -04:00 |
|
Brown
|
db7447abd7
|
Make array coercion-to--mixed rules a little more lenient
|
2020-04-10 16:21:48 -04:00 |
|
Brown
|
3a4dd70403
|
Prevent MixedMethodCall from generated array offsetGet calls
|
2020-04-09 11:45:15 -04:00 |
|
Brown
|
bd92ec6cd3
|
Detect nested issues
|
2020-04-09 10:42:54 -04:00 |
|
Brown
|
bd2104c5ba
|
Merge with mixed in nested arrays
|
2020-04-09 09:27:21 -04:00 |
|
Brown
|
d868710b2b
|
Fix handling of built arrays
|
2020-04-08 16:11:11 -04:00 |
|
Brown
|
067104e170
|
Fix #3084 - keep track of upper and lower bounds of inferred template types
|
2020-04-07 00:13:56 -04:00 |
|
Brown
|
fca6585f6e
|
Be more lenient when inside isset
|
2020-04-04 11:15:13 -04:00 |
|
Matthew Brown
|
6ad3d039df
|
Prevent more array<mixed,...> creation
|
2020-02-22 12:12:40 -05:00 |
|
Matthew Brown
|
db17c85dd6
|
Fix #2787 - make accessing undefined objectlike key an error
|
2020-02-22 00:29:59 -05:00 |
|
Brown
|
6e8088776d
|
Use better return type for SimpleXMLElement::offsetGet
|
2020-02-18 10:58:56 -05:00 |
|
Matthew Brown
|
653353709a
|
Use MethodIdentifier object instead of string
|
2020-02-14 20:54:26 -05:00 |
|
Brown
|
b87161785d
|
Be even more permissive
|
2020-02-13 17:58:15 -05:00 |
|
Brown
|
1c42875179
|
Support lowercase-string and warn about unnecessary calls to strtolower
|
2020-02-13 16:38:58 -05:00 |
|
Brown
|
3b6f53a356
|
Revert "Fix #2724 - make sure behaviour is not dependent on array type"
This reverts commit 1df03b0ff2 .
|
2020-01-31 17:25:15 -05:00 |
|
Brown
|
1df03b0ff2
|
Fix #2724 - make sure behaviour is not dependent on array type
|
2020-01-31 16:46:05 -05:00 |
|
Matthew Brown
|
5eb2ebc508
|
Add more type-system protections for bad array args
|
2020-01-29 23:41:17 -05:00 |
|
Matthew Brown
|
9fa2db1b6c
|
Move Union::getTypes to Union::getAtomicTypes
|
2020-01-04 12:20:26 -05:00 |
|
Matthew Brown
|
55c2f7faa2
|
Fix #2508 - don’t replace templated types with generic ones inside own function
|
2019-12-28 18:38:02 -05:00 |
|
Matthew Brown
|
068afa09d3
|
Add very basic implementation for class-string-map
Fixes #1969
|
2019-12-27 12:49:28 -05:00 |
|
Brown
|
e1dd22ef6c
|
Allow static::class to be used in array assertions
|
2019-12-04 12:23:26 -05:00 |
|
Brown
|
f97a8f0d5b
|
Use more accurate way to determine list size
|
2019-11-26 16:34:19 -05:00 |
|
Brown
|
0bcb7863f3
|
Use better system for storing inferred types and assertions
|
2019-11-25 11:44:54 -05:00 |
|
Brown
|
96586f16c0
|
Fix phpcs issues
|
2019-11-11 10:11:42 -05:00 |
|
Brown
|
af5f83602e
|
Break out more specific possibly defined offset errors
|
2019-11-11 09:59:56 -05:00 |
|
Matthew Brown
|
5910a362ea
|
Improve report output of taint analysis
|
2019-10-19 17:59:10 -04:00 |
|
Matthew Brown
|
e5623e9257
|
Fix function call
|
2019-10-11 23:33:36 -04:00 |
|
Matthew Brown
|
4478d31593
|
Taint arrays in creation
|
2019-10-11 23:28:17 -04:00 |
|
Matthew Brown
|
03c39cbe7c
|
Fix #2223 - make sure lists are handled in more places
|
2019-10-10 20:16:43 -04:00 |
|
Brown
|
b75720c32b
|
Add more list types
|
2019-10-09 10:04:34 -04:00 |
|
Brown
|
2d4a7fbe3e
|
Fix array fetch analysis offset
|
2019-10-08 19:01:00 -04:00 |
|
Brown
|
16c33d1565
|
Add support for list type
Fixes #2209
|
2019-10-08 18:44:46 -04:00 |
|
Brown
|
b0aaede9e1
|
Add support for checking integer array offsets
|
2019-10-04 11:08:08 -04:00 |
|
Matthew Brown
|
d85fbaec09
|
Add stricter checks after first isset
|
2019-10-03 21:34:56 -04:00 |
|
Brown
|
d225374d6d
|
Fix #2156 - do better inference after isset
|
2019-10-01 19:31:08 -04:00 |
|
Brown
|
a81c3067ad
|
Store the whole type
|
2019-10-01 17:09:32 -04:00 |
|
Brown
|
2c9a082b3e
|
Fix #2172 - only complain about missing offset if it’s really missing
|
2019-09-25 19:02:49 -04:00 |
|
Brown
|
648dda67ed
|
Fix Psalm issues
|
2019-09-25 13:12:29 -04:00 |
|
Brown
|
1a48be8e9c
|
Fix #2165 - coerce null array offset to zero
|
2019-09-25 12:17:37 -04:00 |
|
Brown
|
c68dcf2f74
|
Don’t coerce false to null when coming from ignore-false type
|
2019-09-20 15:30:29 -04:00 |
|
Brown
|
be4894c8e0
|
Fix #2155 - coerce false to 0, true to 1 in array offset
|
2019-09-20 15:21:38 -04:00 |
|
Matthew Brown
|
9ad6c36d9b
|
Conditionally verify that array offsets exist (#2147)
* Check array offsets idea
* Clean up some issues
* Add a few light fixes
* Add docs
|
2019-09-18 14:21:06 -04:00 |
|
Matthew Brown
|
d27935d109
|
Improve accuracy around array addition
|
2019-09-08 10:23:12 -04:00 |
|
Brown
|
aba3659311
|
Add more specific key coercion rules when assigning to arrays
|
2019-08-27 15:12:25 -04:00 |
|
Brown
|
4db8ca6a1d
|
Cleanup extra issues from recent fixes
|
2019-08-27 14:16:34 -04:00 |
|
Brown
|
3b865f6509
|
Fix #2048 - allow mixed array to be assigned specific string keys
|
2019-08-27 10:18:58 -04:00 |
|