Nathan Dench
ca2c125218
fix: Handle DataFlowNodeData in XmlReport
2021-07-20 21:39:09 +10:00
Bruce Weirdan
d8cddd64c0
Merge pull request #6141 from weirdan/simplify-analyzeAtomicAssignment
...
Simplify `InstancePropertyAssignmentAnalyzer::analyzeAtomicAssignment()`
2021-07-20 01:04:24 +03: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
bd3bbf4f98
Merge pull request #6133 from weirdan/expand-magic-properties
...
Expand magic properties
2021-07-19 16:10:57 +03:00
Bruce Weirdan
99bafa68d8
Merge pull request #6132 from orklah/CI
2021-07-19 01:04:59 +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
orklah
545ff4648f
persist worspace for other jobs
2021-07-18 20:01:38 +02:00
orklah
8d6360c47a
reintroduce composer cache
2021-07-18 20:00:12 +02:00
orklah
cd6586e723
remove attached workspace
2021-07-18 17:46:44 +02:00
orklah
172faad609
report needed command on next job
2021-07-18 16:23:50 +02:00
orklah
ab78e62e0e
fix syntax
2021-07-18 16:21:06 +02:00
orklah
7b024aa2d6
remove self analyse from CI jobs
2021-07-18 16:16:52 +02: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
d1a4975e3d
remove test no longer applicable
2021-07-17 23:20:13 +02:00
Bruce Weirdan
381ea8da56
Merge pull request #6099 from aboks/xmlwriter-callmap
2021-07-17 23:59:42 +03:00
Bruce Weirdan
a29cbd3c95
More callmap fixes
...
* `writeDtdEntity()`/`xmlwriter_write_dtd_entity()` has optional params
* `xmlwriter_write_attribute_ns` has `$namespace` param as nullable, not
`$content`
* `xmlwriter_write_element()`/`xmlwriter_write_element_ns()` has
`$content` param as optional
2021-07-17 23:37:32 +03:00
orklah
fcbd443bc8
initialize array
2021-07-17 22:04:22 +02:00
orklah
79d0647d19
fix issue when setting a value to a global is considered unused
2021-07-17 22:00:54 +02:00
Arnout Boks
08a80dd238
Fix main callmap should contain newest signatures
...
https://github.com/vimeo/psalm/pull/6099#discussion_r671556027
2021-07-17 22:29:56 +03:00
Arnout Boks
f90e366398
Fix incorrect signature for XMLWriter::writeAttributeNs()
...
https://github.com/vimeo/psalm/pull/6099#discussion_r670604872
2021-07-17 22:29:56 +03:00
Arnout Boks
f304408662
Fix incorrect signature for xmlwriter_start_dtd
2021-07-17 22:29:56 +03:00
Arnout Boks
184505733d
Correct callmap entries for XMLWriter
...
Checked and fixed the following, based on the current
documentation in the PHP manual:
* capitalization in method names
* parameter names
* parameter types (especially for nullable params)
* return types (especially for '|false'-types)
* differences between pre- and post-8.0.0-signatures
Fixes #6091
2021-07-17 22:29:52 +03: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
Bruce Weirdan
4c197afc09
Merge pull request #5512 from ngmy/shepherd-envvar
...
Add the environment variable for using Shepherd
2021-07-17 02:50:15 +03:00
Bruce Weirdan
26859d3188
Merge pull request #3421 from JoshuaBehrens/patch-1
...
Use same working directory for preparing cache directory as it used in running analysis
2021-07-17 02:36:25 +03:00
Yuta Nagamiya
bcd5fc4b6a
Add the environment variable for using Shepherd
2021-07-17 02:26:13 +03:00
Joshua Behrens
0c6031f7f2
Use same working directory for preparing cache directory as it used in running analysis
2021-07-17 01:55:41 +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
a6a261b537
Merge pull request #6123 from caugner/codeclimate-relative-paths
...
fix(CodeClimateReport): use relative path
2021-07-17 01:29:26 +03:00
Bruce Weirdan
90687d7a9e
Merge pull request #6121 from weirdan/fix-6119
...
Allow 0 for all bitmask types
2021-07-17 01:23:01 +03:00
Bruce Weirdan
af5cdb4dd4
Check deprecated properties on $this->prop reads
...
Fixes vimeo/psalm#6118
2021-07-17 01:20:35 +03:00
Claas Augner
d0df69afb5
Fix CodeClimateReport to use relative paths
...
Both GitLab and the Code Climate Engine Specification require the code
climate report to contain the *relative* path to the source code file.
2021-07-16 22:39:47 +02:00
Bruce Weirdan
4a516005a3
Allow 0 for all bitmask types
...
Fixes vimeo/psalm#6119
2021-07-16 23:20:33 +03:00
Bruce Weirdan
f015c30a43
Merge pull request #6107 from orklah/get_defined_constants
2021-07-16 12:28:45 +03:00
Bruce Weirdan
d087058501
Merge pull request #6116 from fkooman/radius
...
radius_send_request returns int|false
2021-07-16 12:26:15 +03:00
François Kooman
fc641de85c
radius_send_request returns int|false
...
https://github.com/LawnGnome/php-radius/blob/master/radius.c#L533
2021-07-16 09:07:29 +02:00
orklah
45d2aede3c
fix syntax
2021-07-15 23:47:00 +02:00
orklah
38767166cf
stub get_defined_constants with parameter
2021-07-15 23:39:16 +02:00
Bruce Weirdan
c5190f0771
Merge pull request #6104 from staabm/patch-3
2021-07-15 23:27:25 +03:00
Markus Staab
e037c4496a
Utilize non-falsy-string
2021-07-15 20:40:18 +02:00
Markus Staab
2671ea78da
Detailed return type for strtoupper
2021-07-15 20:15:08 +02:00
Bruce Weirdan
35b6a9325d
Merge pull request #6094 from weirdan/str_pad-str_repeat-conditional-returns
...
Detailed return types for `str_pad()` and `str_repeat()`
2021-07-15 02:38:46 +03:00
Bruce Weirdan
3d1d51dcb3
Merge pull request #6092 from weirdan/portable-test-with-real-projects
...
Portable bin/test-with-real-projects.sh
2021-07-15 02:06:29 +03:00