Bruce Weirdan
|
783dc610df
|
Merge pull request #6172 from Jack97/malformed-parentheses
|
2021-07-25 13:08:23 +03:00 |
|
Jack Robertson
|
ce6642d1aa
|
Handle malformed parentheses
|
2021-07-25 10:43:34 +01:00 |
|
Bruce Weirdan
|
aa23aa5387
|
Merge pull request #6166 from orklah/StringIncrementOnNumericString
|
2021-07-24 23:27:17 +03:00 |
|
orklah
|
f63f1b5d2a
|
use is_numeric for checking if a Literal is numeric
|
2021-07-24 21:44:12 +02:00 |
|
orklah
|
9189fa1745
|
add tests and code for handling LiteralString that are Numeric
|
2021-07-24 21:21:50 +02:00 |
|
orklah
|
b48a42ffab
|
don't try to handle preinc/postinc
|
2021-07-24 21:18:11 +02:00 |
|
Jack Robertson
|
1c0de36795
|
Support array_slice template parameter return type inference
|
2021-07-24 16:09:29 +01:00 |
|
Bruce Weirdan
|
3caceb7131
|
Merge pull request #6169 from orklah/numeric-strictBinaryOperands
|
2021-07-24 15:45:42 +03:00 |
|
orklah
|
1a41ee4dd4
|
keep wording consistency
|
2021-07-24 11:18:50 +02:00 |
|
orklah
|
7146c646e3
|
Trigger InvalidOperand when processing two numeric types in strict operands mode
|
2021-07-24 11:04:09 +02:00 |
|
orklah
|
4b660aa941
|
handle every increment/decrement
|
2021-07-24 10:51:10 +02:00 |
|
orklah
|
c8ee73ce30
|
Allow increment on numeric-string
|
2021-07-23 21:10:29 +02:00 |
|
Bruce Weirdan
|
198fdf876e
|
Merge pull request #6142 from orklah/trigger_error
|
2021-07-23 09:22:55 +03:00 |
|
Matthew Brown
|
43cff22b25
|
Add support for native PHP readonly
|
2021-07-21 13:29:07 -04:00 |
|
Bruce Weirdan
|
052c7478cc
|
Unary plus and minus mark operand as used
Fixes vimeo/psalm#6145
|
2021-07-21 01:15:51 +03:00 |
|
orklah
|
58dd3f6f94
|
change wording
|
2021-07-20 23:53:04 +02:00 |
|
orklah
|
9ff0fceb71
|
CS changes
|
2021-07-20 23:41:11 +02:00 |
|
orklah
|
9160a4e8a6
|
review
|
2021-07-20 23:37:34 +02:00 |
|
orklah
|
acfdb82856
|
Basic implementation
|
2021-07-20 23:34:38 +02:00 |
|
Bruce Weirdan
|
7bcefb783a
|
Simplify InstancePropertyAssignmentAnalyzer::analyzeAtomicAssignment()
... to fix build issues.
|
2021-07-20 00:08:49 +03:00 |
|
Bruce Weirdan
|
0317f1dbec
|
Merge pull request #6130 from weirdan/forbid-dynamic-access-to-static-props
|
2021-07-19 16:11:29 +03:00 |
|
Bruce Weirdan
|
d992331125
|
Expand magic properties
Fixes vimeo/psalm#4344
Fixes vimeo/psalm#5663
Fixes vimeo/psalm#5639
Fixes vimeo/psalm#5955
Fixes vimeo/psalm#3272
|
2021-07-18 23:43:33 +03:00 |
|
Bruce Weirdan
|
b589525eb1
|
Merge pull request #6131 from orklah/bindtextdomain
makes bindtextdomain impure
|
2021-07-18 16:53:59 +03:00 |
|
Bruce Weirdan
|
7418e6e167
|
grammar
|
2021-07-18 16:52:00 +03:00 |
|
orklah
|
f1269d2425
|
makesbindtextdomain impure
|
2021-07-18 14:24:43 +02:00 |
|
Bruce Weirdan
|
a180dc6099
|
Flag staticness mismatch
This handles two new cases:
1. Accessing static property with `->` (produces notices and warnings: https://3v4l.org/TiGan)
2. Accessing non-static property with `::` (causes fatal error: https://3v4l.org/IdYSh)
Fixes vimeo/psalm#6117
|
2021-07-18 02:51:33 +03:00 |
|
Bruce Weirdan
|
53ae7764e9
|
Merge pull request #6129 from orklah/unused-global
|
2021-07-18 02:33:50 +03:00 |
|
orklah
|
79d0647d19
|
fix issue when setting a value to a global is considered unused
|
2021-07-17 22:00:54 +02:00 |
|
Bruce Weirdan
|
2127da387b
|
Merge pull request #3903 from greg0ire/redundant-not-identical-with-false
Add negated identity with false case
|
2021-07-17 04:07:40 +03:00 |
|
Grégoire Paris
|
26f8e5b333
|
Add negated identity with false case
This is the opposite of === true and works the same.
|
2021-07-17 03:20:23 +03:00 |
|
Yuta Nagamiya
|
bcd5fc4b6a
|
Add the environment variable for using Shepherd
|
2021-07-17 02:26:13 +03:00 |
|
Bruce Weirdan
|
c9f52c449b
|
Merge pull request #6127 from weirdan/deprecated-properties
Check deprecated properties on $this->prop reads
|
2021-07-17 01:43:08 +03:00 |
|
Matthew Brown
|
88c4e2468e
|
Support interface-string<Foo> as temporary alias of class-string<Foo> (#6106)
|
2021-07-16 18:38:39 -04:00 |
|
Bruce Weirdan
|
af5cdb4dd4
|
Check deprecated properties on $this->prop reads
Fixes vimeo/psalm#6118
|
2021-07-17 01:20:35 +03:00 |
|
Bruce Weirdan
|
4a516005a3
|
Allow 0 for all bitmask types
Fixes vimeo/psalm#6119
|
2021-07-16 23:20:33 +03:00 |
|
orklah
|
0bd8b03f7a
|
Fix usage of gettype in a switch with closed resource
|
2021-07-14 12:49:46 +02:00 |
|
Bruce Weirdan
|
601c8cac5b
|
Merge pull request #6086 from orklah/cleanup
|
2021-07-14 09:08:18 +03:00 |
|
orklah
|
c3a4e513f9
|
add more detailed phpdoc for $conditional and remove unused code
|
2021-07-14 00:02:36 +02:00 |
|
orklah
|
bcd22335b6
|
add some detailed phpdoc for $conditional
|
2021-07-13 22:35:57 +02:00 |
|
orklah
|
874b8ed7ae
|
fix doc
|
2021-07-13 22:29:27 +02:00 |
|
orklah
|
647b9b78dc
|
cleanup and refactor AssertionFinder
|
2021-07-13 20:54:47 +02:00 |
|
Ruslan Karimov
|
8a08489dcc
|
Merge branch 'master' into fix-5957
# Conflicts:
# tests/UnusedVariableTest.php
|
2021-07-13 10:15:35 +05:00 |
|
Ruslan Karimov
|
cfaca07c6d
|
added dataflow to stringy bitwise op, bitwise not op (fix 5957)
|
2021-07-13 10:05:21 +05:00 |
|
Bruce Weirdan
|
6729f4db01
|
Merge pull request #6083 from orklah/falsable-argument
|
2021-07-13 02:13:39 +03: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 |
|
Matthew Brown
|
f2bc6913db
|
Fix #6061 — delay analysis of array value except when unpacking (#6081)
|
2021-07-12 17:05:33 -04: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 |
|