1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-15 02:47:02 +01:00
Commit Graph

8865 Commits

Author SHA1 Message Date
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
Bruce Weirdan
a5a2377dcf
Detailed return types for str_pad() and str_repeat()
Fixes vimeo/psalm#6049
2021-07-15 01:54:03 +03:00
Bruce Weirdan
7bca90e7bf
Portable bin/test-with-real-projects.sh
This replaces hardcoded paths to Psalm with dynamically built ones and
thus allows to run `bin/test-with-real-projects.sh` locally.
2021-07-15 00:43:45 +03:00
Bruce Weirdan
09b01677c0
Merge pull request #6089 from orklah/getTypeResourceClosed
Fix usage of gettype in a switch with closed resource
2021-07-14 17:13:00 +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
Bruce Weirdan
be73f74b7e
Merge pull request #6084 from elnoro/fix-5957 2021-07-13 23:14:05 +03: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
Bruce Weirdan
bbea459226
Merge pull request #6082 from weirdan/update-join-signature
Update `join` signature to match `implode`
2021-07-13 00:25:42 +03: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
f93d925bdc
Updated join signature to match implode
Fixes vimeo/psalm#6080
2021-07-12 23:59:34 +03: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
Vincent Langlet
3339ce1379 Use stmt instead of args 2021-07-11 11:22:13 +02:00
Bruce Weirdan
83bf9b8ed9
Merge pull request #5608 from paxal/patch/preg_replace_callback
Allow to use string key for preg_replace_callback callable argument
2021-07-11 04:55:03 +03:00
Bruce Weirdan
d1f894a5a0
Merge pull request #6068 from caugner/make-ClassLikeNodeScanner-resilient-against-missing-class-storage
Make ClassLikeNodeScanner resilient against missing class storage
2021-07-11 03:18:31 +03:00
Bruce Weirdan
ad3d46c66d
Merge pull request #5584 from franmomu/add_reflection_property
Add ReflectionProperty::getType() and hasType()
2021-07-11 02:54:06 +03:00
Matthew Brown
d883d73991 Fix template bound terminology
I had this flipped by mistake
2021-07-10 14:08:09 -04:00
Fran Moreno
decb397b8e
Add ReflectionProperty::getType() and hasType() 2021-07-10 13:05:57 +02:00
Bruce Weirdan
5b36803f26
Merge pull request #6070 from weirdan/use-endtoend-test-psl
Switch PSL test to Psalm's fork
2021-07-10 00:13:29 +03:00
Bruce Weirdan
4794da0fa0
Switched PSL test to Psalm's fork 2021-07-09 23:58:37 +03:00
Bruce Weirdan
f381fba070
Merge pull request #6069 from elnoro/str-word-count-stub 2021-07-09 23:47:43 +03:00
elnoro
ec7aaa4a47
Update stubs/CoreGenericFunctions.phpstub
Co-authored-by: Bruce Weirdan <weirdan@gmail.com>
2021-07-09 23:25:12 +05:00
Ruslan Karimov
b373c0c7f9 added str_word_count to the stub file (fix #6016) 2021-07-09 21:45:18 +05:00
Claas Augner
c6ccf61a5c Make ClassLikeNodeScanner resilient against missing class storage 2021-07-09 16:56:45 +02:00
Bruce Weirdan
f94f3b8691
Merge pull request #6054 from caugner/6050-FunctionLikeAnalyzer-extract-setParams-addParam 2021-07-09 08:21:36 +03:00
Claas Augner
9a78b2fbc8
Mark FunctionLikeStorage::setParams()/addParam() as internal 2021-07-09 00:58:29 +02:00
Bruce Weirdan
04c9d60371
Merge pull request #6064 from ElisDN/negative-numbers
Negative number literals
2021-07-08 20:50:21 +03:00
ElisDN
61b78e117f Fix negative numbers 2021-07-08 19:17:31 +03:00
Bruce Weirdan
bbbfa69378
Merge pull request #6062 from simPod/skip-config-path
Skip argv when --config file.xml is passed
2021-07-08 11:54:05 +03:00