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

10733 Commits

Author SHA1 Message Date
orklah
f5a093d015
Merge pull request #7460 from orklah/7453
handle two more cases of firstClassCallable
2022-01-22 18:30:57 +01:00
orklah
73af019110 fix a weird case 2022-01-22 17:45:40 +01:00
orklah
997d5d5f5f handle two more cases of firstClassCallable 2022-01-22 17:37:35 +01:00
orklah
491213976b
Merge pull request #7301 from swiffer/4.x
change nullable for array signature to be equal to param signature
2022-01-22 16:28:33 +01:00
Matthias Wirtz
5b23a0c51e
in array form all attributes are nullable since PHP 7.3 2022-01-22 15:34:16 +01:00
Matthias Wirtz
bb577ec271
change nullable for array signature to be equal to param signature 2022-01-22 15:26:26 +01:00
Oliver Hader
cad72004ab
Add deprecated method invocations to psalm-baseline.xml 2022-01-21 21:52:22 +01:00
Oliver Hader
c34e32f60e
!!! Deprecate \Psalm\Plugin\RegistrationInterface methods
Following \Psalm\Plugin\RegistrationInterface methods are deprecated
+ addFileTypeScanner
+ addFileTypeAnalyzer

Following \Psalm\PluginRegistrationSocket methods are deprecated
+ addFileTypeScanner
+ getAdditionalFileTypeScanners
+ addFileTypeAnalyzer
+ getAdditionalFileTypeAnalyzers
+ getAdditionalFileExtensions
+ addFileExtension

Mentioned methods will be removed in Psalm v5.0, corresponding
functionality will be provided by following new interfaces and classes
+ \Psalm\Plugin\FileExtensionsInterface
+ \Psalm\PluginFileExtensionsSocket

Related: #6788
2022-01-21 14:51:36 +01:00
orklah
f9ea2756f9
Merge pull request #7443 from brainlock/fix-proc-open-stub
fix proc_open stub for php >= 8.0
2022-01-21 13:00:39 +01:00
Alberto Piai
d39ccb50bf
unify argument names in historical and current CallMap for proc_open
Since before 8.0 the named arguments were not part of the interface, we
don't care about the intermediate steps of the proc_open definition. For
consistency, this makes the definition the same across all versions.

This also fixes the type for the `options` argument already in
CallMap_historical to be nullable.

The names of the arguments are now consistent across versions, while the
delta for 7.4 reflects the change of the `command` argument from
`string` to `string|array`.
2022-01-21 09:45:28 +01:00
Alberto Piai
9b22d63c5b
fix proc_open stub for php >= 8.0
The argument names are defined here:

https://github.com/php/php-src/blob/PHP-8.0.0/ext/standard/basic_functions_arginfo.h#L1773-L1780
2022-01-20 13:57:34 +01:00
Vincent Quatrevieux
c7bfc03a6b
Merge branch '4.x' into call-docblock-method-using-parent 2022-01-20 08:59:50 +01:00
orklah
5c4be6bc21
Merge pull request #7435 from orklah/old-phpunit
drop phpunit compatibility aliases
2022-01-19 20:36:44 +01:00
orklah
7d07f42790 fix CS 2022-01-19 20:36:09 +01:00
orklah
bbfdd57d5c
Merge pull request #7363 from zoonru/81_returntypewillchange
PHP 8.1: Report missing typehints in overridden native methods
2022-01-19 20:31:54 +01:00
orklah
52a7f0694e drop compatibility aliases 2022-01-19 19:29:16 +01:00
orklah
d274d5241e
Merge pull request #7430 from b2pweb/resolve-generics-on-inherited-pseudo-methods
Resolve generics of inherited pseudo methods
2022-01-19 19:22:08 +01:00
orklah
84a4cbd3cf
Merge pull request #7432 from RishiKumarRay/fix-md.split
Fix Incomplete return type for mb_split() function
2022-01-19 18:47:35 +01:00
Vincent
f7252417e4 Fix typing (ref #7430) 2022-01-19 13:49:41 +01:00
Rishi Kumar Ray
5e277d4060 Fix Incomplete return type for mb_split() function 2022-01-19 18:07:06 +05:30
4cfe1a0773
Add configuration option to disable @psalm-suppress all 2022-01-19 13:24:26 +01:00
1914be4ca1
Rollback 2022-01-19 12:44:55 +01:00
38945018f5
Run analysis on all PHP versions 2022-01-19 12:39:08 +01:00
78a125ab95
Fix 2022-01-19 12:33:16 +01:00
ef4dd656d0
Update 2022-01-19 12:29:49 +01:00
9021b13b65
Update 2022-01-19 12:29:44 +01:00
d970661182
Add separate issue 2022-01-19 12:20:50 +01:00
e54d666a2e
cs-fix 2022-01-19 12:06:38 +01:00
d8be15a83d
More legacy php changes 2022-01-19 12:06:38 +01:00
c98930d6ce
Fix syntax 2022-01-19 12:06:38 +01:00
cee9eb0ead
PHP 8.1: Report missing typehints in overridden native methods 2022-01-19 12:06:35 +01:00
Vincent
7b25ca75f4 Resolve generics of inherited pseudo methods (fix #7419) 2022-01-19 11:45:19 +01:00
orklah
7058b61daf
Merge pull request #7426 from zoonru/fix_kafka
Fix kafka stubs
2022-01-19 10:50:05 +01:00
5c3d9fd659
Fix kafka stubs 2022-01-19 10:14:09 +01:00
Vincent
33f0de073f Add test case for parent method call without declared pseudo method 2022-01-18 09:34:05 +01:00
orklah
a0f52eae2f
Merge pull request #7407 from villfa/fix/7039
Improve signature of DOMDocument::loadXML()
2022-01-18 00:01:00 +01:00
Fabien Villepinte
c9eafa15ad Improve signature of DOMDocument::loadXML() 2022-01-17 22:52:58 +00:00
Vincent
09fc43a4d8 Add support of docblock method using parent keyword (fix #7411) 2022-01-17 19:26:42 +01:00
orklah
c3745cd342
Merge pull request #7406 from villfa/fix/7389
Improve signature of random_bytes()
2022-01-16 15:30:21 +01:00
Fabien Villepinte
dd64326479 Update CallMap_historical too 2022-01-16 14:49:16 +01:00
Fabien Villepinte
642321ea70 Improve signature of random_bytes() 2022-01-16 14:47:42 +01:00
orklah
a99c433f3a
Merge pull request #7405 from klimick/fix-self-parsing-for-psalm-if-this-is
Fix `self` parsing for `psalm-if-this-is` and `psalm-self-out`
2022-01-16 14:31:45 +01:00
andrew
10012c9e09 Fix self parsing for psalm-if-this-is and psalm-self-out 2022-01-16 16:11:40 +03:00
orklah
de824d6724
Merge pull request #7403 from orklah/readonly_phpdoc_promoted
support @readonly for promoted properties
2022-01-16 09:38:37 +01:00
orklah
6578396afb add test 2022-01-16 09:31:58 +01:00
orklah
e26e022428 support @readonly for promoted properties 2022-01-16 09:31:58 +01:00
orklah
3c726e76df
Merge pull request #7401 from orklah/getObjectVarsNoValue
Psalm can't be sure get_object_vars will return an empty array unless object is known AND final
2022-01-15 23:27:33 +01:00
orklah
32c8e6358c
Merge pull request #7400 from orklah/combinePositiveAndRange
Combine positive int and range
2022-01-15 23:27:22 +01:00
orklah
3260b1ad74 make class final in test to revalidate what it's testing 2022-01-15 21:53:05 +01:00
orklah
0beb8e7a4e fix test 2022-01-15 21:39:29 +01:00