orklah
e0b2cb5028
consistency
2021-10-02 10:02:24 +02:00
orklah
ee4dbafca9
fix test
2021-10-02 10:02:24 +02:00
orklah
0b8681c8bf
check namespace before adding assertions
2021-10-02 10:02:24 +02:00
orklah
fa9990ae55
fix wrong method name
2021-10-02 10:02:24 +02:00
orklah
e02eec932e
refactor Assertions for is_ functions
2021-10-02 10:02:24 +02:00
orklah
f641d9e95a
assert that some type is a list
2021-10-02 10:02:22 +02:00
orklah
28edc25f65
fix doc
2021-10-02 10:01:05 +02:00
orklah
b14fccb654
refine types in Always methods
2021-10-02 10:01:05 +02:00
orklah
2df1f9d42e
add resource to truthy types
2021-10-02 10:01:05 +02:00
orklah
532aa9058b
add and fix tests
2021-10-02 10:01:05 +02:00
orklah
f8628ef68c
fix errors
2021-10-02 10:01:05 +02:00
orklah
0f6d271dde
possibly undefined unions can't be truthy
2021-10-02 10:01:05 +02:00
orklah
b9e65f066a
refactor paradoxical conditions
2021-10-02 10:01:04 +02:00
orklah
85f16e9710
handle the case where analysis failed
2021-10-02 10:01:04 +02:00
orklah
597e9a99d7
Makes BooleanNot smarter
2021-10-02 10:01:04 +02:00
orklah
dd5c2904d8
fix error on continue
2021-10-02 10:01:04 +02:00
orklah
f8c2a89f23
use Int ranges to describe offset after array_fill when both args are known ints
2021-10-02 09:54:02 +02:00
orklah
b9f14f8687
improve min/max inference, add a return type provider for rand, mt_rand and random_int
2021-10-02 09:53:58 +02:00
orklah
7e1c66d837
add limit to the number of clauses simplifyCNF can handle
2021-10-02 09:52:19 +02:00
orklah
7f0d25374f
add comment
2021-10-02 09:52:19 +02:00
orklah
83ad836e88
assert both sides of an equality
2021-10-02 09:52:19 +02:00
Bruce Weirdan
2e7e343ef8
Merge pull request #6423 from orklah/count-equal-0-negated-assertion
2021-10-02 00:53:03 +03:00
Bruce Weirdan
97a3d673f4
Merge pull request #5091 from ohader/namespace-resolver
2021-10-01 02:00:33 +03:00
Bruce Weirdan
377d3bddf0
Merge pull request #6552 from orklah/manipulator
2021-09-30 21:54:55 +03:00
Bruce Weirdan
d232cc0d02
Merge pull request #6553 from orklah/exec-leak
2021-09-30 21:32:55 +03:00
Bruce Weirdan
f94be52190
Merge pull request #6560 from NikolayZhebet/fix-codebase-pls-undefined-offset-6559
2021-09-30 20:53:36 +03:00
NikolayZhebet
843f14d069
fix 'Undefined offset: 1' in CodeBase::getTypeContextAtPosition issue ( #6559 )
2021-09-30 20:09:15 +03:00
orklah
10f1af1af0
Merge pull request #6557 from vjik/fix
...
Allow `null` for argument `context` in `fopen()`
2021-09-30 18:35:09 +02:00
Sergei Predvoditelev
31763b3628
Fix fopen
2021-09-30 17:12:54 +03:00
orklah
02ef33c4ac
Merge pull request #6554 from simPod/use-a
...
Use correct English articles
2021-09-30 09:37:56 +02:00
Simon Podlipsky
4f5e30fd30
Use correct English articles
2021-09-30 09:19:08 +02:00
orklah
4c6f43884c
fix test
2021-09-29 22:55:01 +02:00
orklah
3133cd159a
fix NPE
2021-09-29 22:30:38 +02:00
orklah
2a2e7c5e32
prevent object leaking that lead to changes in callmap
2021-09-29 22:27:34 +02:00
orklah
5a99c9be94
offset the starting position of the function in case of attributes
2021-09-29 21:19:04 +02:00
orklah
5ac21dd4cf
Merge pull request #6545 from pawel-slowik/update-xlswriter-signatures
...
Update xlswriter signatures
2021-09-28 20:24:03 +02:00
Paweł Słowik
096a6dbe5c
Remove undocumented / untested XlsWriter methods
2021-09-28 17:56:20 +02:00
Paweł Słowik
e1727ffe22
Update XlsWriter signatures
2021-09-28 17:56:20 +02:00
orklah
9d9dba156c
Merge pull request #6538 from orklah/taint-windows
...
enable test on taint
2021-09-27 20:37:27 +02:00
orklah
caf4d57438
enable test on taint
2021-09-27 20:16:50 +02:00
orklah
ef82910de3
Merge pull request #6537 from mmcev106/master
...
Prevent unnecessary filter_var() warnings on primitive types
2021-09-27 20:15:01 +02:00
Mark McEver
79340b4a6f
Prevent unnecessary filter_var() warnings
2021-09-27 18:46:01 +01:00
Mark McEver
76dade477d
Prevent unnecessary filter_var() warning
2021-09-27 18:34:58 +01:00
Oliver Hader
51333e8f6e
[TASK] Resolve namespace of class related AST statements
...
This change allows using `Class_` namespaces like in
PhpParser's original `NameResolver` implementation.
```
if ($node instanceof \PhpParser\Node\Stmt\Class_) {
$fqcn = (string)($node->namespacedName ?? $node->name);
$extents = (string)($node->extends->getAttribute('resolvedName'));
}
```
Corresponding parts have been duplicated and modified from
https://github.com/nikic/PHP-Parser/blob/v4.10.4/lib/PhpParser/NodeVisitor/NameResolver.php#L69-L81
2021-09-27 11:19:24 +02:00
orklah
b29737f2b1
Merge pull request #6536 from orklah/cleanup2
...
Cleanup
2021-09-26 23:48:50 +02:00
orklah
ab6efe49b2
fix CS
2021-09-26 23:41:26 +02:00
orklah
38dac34846
unnecessary null initialization
2021-09-26 23:34:32 +02:00
orklah
db395d5605
unnecessary cast
2021-09-26 23:34:32 +02:00
orklah
5d6d3df4cf
unnecessary identical child method
2021-09-26 23:34:32 +02:00
orklah
4577a11a2f
imports
2021-09-26 23:34:32 +02:00