1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-11 16:59:45 +01:00
Commit Graph

9885 Commits

Author SHA1 Message Date
blackie
e96bb7823c fixup! Fixed callmap for function openssl_sign, it changed in PHP 8.0 (modified types for param private_key) #6842 2021-11-07 20:36:26 +01:00
blackie
159a42c581 fixup! RedisCluster::setOption() argument types incorrect #4708 2021-11-07 20:18:31 +01:00
Bruce Weirdan
7fc4ae3a50
Merge pull request #6852 from jirkace/reflectionclass_newinstanceargs_docblock_fix_php80 2021-11-07 18:59:38 +02:00
Bruce Weirdan
2be9be676e
Merge pull request #6851 from jirkace/domdocument_new_properties_php80 2021-11-07 18:56:55 +02:00
Bruce Weirdan
756be3b80c
Merge pull request #6843 from weirdan/enums-as-attributes 2021-11-07 17:53:19 +02:00
blackie
a6b91384c1 RedisCluster::setOption() argument types incorrect #4708 2021-11-07 16:45:28 +01:00
Bruce Weirdan
17ef25acd8
Merge pull request #6845 from sasezaki/cs_SelfMemberReference 2021-11-07 17:41:45 +02:00
blackie
cb9bf8b5af Fixed docblock for newInstanceArgs for PHP 8.0 #5136 2021-11-07 16:16:23 +01:00
orklah
a2d6861f12
Merge pull request #6847 from orklah/vprintf
add stub for taint detection on vprintf
2021-11-07 15:55:54 +01:00
orklah
4e6cb75094
Merge pull request #6848 from orklah/taint-comments
Taint comments
2021-11-07 15:55:37 +01:00
blackie
bf34a3b486 DOMParentNode and DOMChildNode stubs (php 8) are missing #6771 2021-11-07 15:54:54 +01:00
Gregor Harlan
ab0049d0ff
ConsoleReport: Add links to open file in editor 2021-11-07 15:04:14 +01:00
orklah
39dc7608ef ignore comments after taint-sink 2021-11-07 10:29:08 +01:00
orklah
3322801903 ignore comments after taint-sink 2021-11-07 10:17:25 +01:00
orklah
3ff3616ef4 add stub for taint detection on vprintf 2021-11-07 09:25:27 +01:00
sasezaki
5a01c8d601 Added phpcs SelfMemberReference rule, and applied 2021-11-07 15:47:39 +09:00
Bruce Weirdan
143964767d
Merge pull request #6844 from sasezaki/composer_suggest 2021-11-07 05:51:25 +02:00
sasezaki
6423d8e777 Added ext-curl to composer.json suggest property 2021-11-07 12:03:25 +09:00
blackie
d5a5db12a2 Fixed callmap for function openssl_sign, it changed in PHP 8.0 (modified types for param private_key) #6842 2021-11-07 01:44:00 +01:00
Bruce Weirdan
68495be147
Forbid declaring enums as attributes
This is in line with current Psalm behavior. We forbid non-instantiable
classlikes as attributes, including abstract classes and classes with
non-public constructors.

Refs vimeo/psalm#6841
2021-11-07 01:47:11 +02:00
Bruce Weirdan
652d4c39cd
Merge pull request #6840 from weirdan/forbid-enum-instantiation 2021-11-07 00:32:04 +02:00
Bruce Weirdan
9210bbcdd4
Forbid enum instantiation
Fixes vimeo/psalm#6837
2021-11-07 00:14:37 +02:00
Bruce Weirdan
59e63c3235
Merge pull request #6839 from weirdan/forbid-enum-properties 2021-11-06 23:15:09 +02:00
orklah
b08d39e567
Merge pull request #6834 from orklah/unused-in-assert
don't consider calls to methods with assertions as Unused
2021-11-06 22:05:34 +01:00
orklah
e28659eb6c
Merge pull request #6838 from orklah/value_and_name_enum
better understands value and name properties for enum
2021-11-06 22:05:04 +01:00
Bruce Weirdan
f0f085e084
Add test for NoEnumProperties
This was somehow missed from vimeo/psalm#6836
2021-11-06 22:52:17 +02:00
orklah
18677bb108 better understands value and name properties for enum 2021-11-06 21:49:42 +01:00
Bruce Weirdan
7b7f630f8f
Merge pull request #6836 from weirdan/forbid-enum-properties 2021-11-06 22:47:09 +02:00
Bruce Weirdan
b49c25ae76
Fixed tests
* Added new issue to the config.xsd
* Marked NoEnumProperties as PHP 8.1 issue
2021-11-06 22:22:38 +02:00
Bruce Weirdan
0f8ef45110
Forbid properties on enums
Fixes vimeo/psalm#6472
2021-11-06 21:57:49 +02:00
orklah
65c41e7543 don't consider calls to methods with assertions as Unused 2021-11-06 20:00:31 +01:00
orklah
9c9669ea44 don't consider calls to methods with assertions as Unused 2021-11-06 19:54:17 +01:00
orklah
e42bc4a23f
Merge pull request #6833 from orklah/psl-ci
add PSL back to CI
2021-11-06 11:31:17 +01:00
orklah
655d17ca53 add PSL back to CI 2021-11-06 11:27:26 +01:00
orklah
f327c986d0
Merge pull request #6766 from azjezz/chore/update-psl
chore(ci): update psl version used in e2e tests
2021-11-06 11:20:55 +01:00
azjezz
9bd6289ce5 chore(ci): update psl version used in e2e tests
Signed-off-by: azjezz <azjezz@protonmail.com>
2021-11-06 09:07:39 +01:00
orklah
aca8e12bf9
Merge pull request #6830 from orklah/isContainedBy
Mixed contain every types and Never is contained in every type
2021-11-05 22:05:32 +01:00
orklah
f4dcea3e57
Merge pull request #6829 from orklah/isType
only return true in Union::is*Type* if there is a single type
2021-11-05 22:05:17 +01:00
orklah
de9ad68ad0 Mixed contain every types and Never is contained in every type 2021-11-05 21:25:23 +01:00
orklah
728175f82d only return true in Union::is*Type* if there is a single type 2021-11-05 21:14:04 +01:00
orklah
e6c2313447
Merge pull request #6825 from orklah/tmp-var-coalesce
create a tmp fake var for ternaries inside coalesce
2021-11-05 20:14:09 +01:00
orklah
ad57516765 create a temporary var for coalescing ternaries 2021-11-05 20:07:35 +01:00
orklah
b7834689e5
Merge pull request #6824 from orklah/session
Makes $_SESSION possibly undefined at the source
2021-11-05 20:07:24 +01:00
orklah
603fa65e96
Merge pull request #6828 from orklah/function-un-unevaluated
allow declaring functions and classLikes after a never-returning call
2021-11-05 20:01:24 +01:00
orklah
f4f9bd6711 allow declaring functions and classLikes after a never-returning call 2021-11-05 18:34:59 +01:00
orklah
6e8bd2b207 allow declaring functions and classLikes after a never-returning call 2021-11-05 18:18:34 +01:00
orklah
33aab6cc40 allow declaring functions and classLikes after a never-returning call 2021-11-05 18:09:40 +01:00
Bruce Weirdan
9651daf705
Merge pull request #6663 from loic425/symfony-6-support 2021-11-05 17:21:38 +02:00
orklah
6e5f3db06c makes $_SESSION possibly undefined 2021-11-04 22:45:46 +01:00
orklah
fffef80ec1 makes $_SESSION possibly undefined 2021-11-04 22:38:31 +01:00