Farhad Safarov
1978edad3f
static analysis plugin itself with lowest & highest deps ( #94 )
...
* static analysis plugin itself with lowest & highest deps
* no message
* no message
* no message
* no message
* no message
2020-10-13 16:52:11 +03:00
Farhad Safarov
5cd3df193f
[console] nullable & bool default values ( #92 )
...
* [console] nullable & bool default values
* no message
2020-09-26 13:40:51 +03:00
Matthew Brown
fcef6b8f59
Merge pull request #88 from adrienlucas/twig-analyzer
...
Refactor twig analyzer
2020-09-24 14:12:24 -04:00
Adrien LUCAS
4a523e7aba
Refactor twig analyzer
2020-09-24 19:43:50 +02:00
Farhad Safarov
ac32e62977
[console] argument return type infer improvements ( #87 )
2020-09-24 13:37:51 +03:00
Maarten de Boer
c1535e05e1
Detect return type for denormalize and deserialize for the Serializer component ( #83 )
...
* Detect return type for denormalize and deserialize
* Fix typo
* Remove empty docblock
2020-09-21 09:08:39 +03:00
Farhad Safarov
cb7eb847bb
psalm update fixes ( #85 )
2020-09-18 08:52:49 +03:00
Adrien LUCAS
0240845744
Use the assert-package-constraint step provided by third party ( #79 )
2020-09-14 11:17:23 +03:00
Farhad Safarov
dd0f54f41b
Testing no service naming convention violation when using FQCN ( #78 )
2020-09-14 08:06:07 +03:00
Wouter J
00bae73943
Added stub for PropertyAccessorInterface::setValue() ( #76 )
...
* Added stub for PropertyAccessorInterface::setValue()
* Update src/Stubs/common/PropertyAccessorInterface.stubphp
Co-authored-by: Farhad Safarov <farhad.safarov@gmail.com>
2020-09-13 20:03:33 +03:00
Adrien LUCAS
4eb4dae6ea
Tainting twig ( #61 )
...
* Taint Request::get and Response::__construct
* Taint Request::request, Request::query & Request::cookies
* Taint Request::headers (only for the user-agent header)
* Taint HeaderBag::__toString (and a fix of psalm taint api usage)
* Taint InputBag::all
* Fix type resolving
* Bump psalm requirement
* refactoring first scenario outline
* Refactor RequestTaint
* no message
* Taint HeaderBag using the MethodReturnTypeProviderInterface
* Skip tests when dependencies too low
* Taint Request::get and Response::__construct
* Taint Request::headers (only for the user-agent header)
* wip
* Try using MethodReturnTypeProviderInterface
* Compiling templates
* Make it work using fake call
* Explicitely load compliled twig files
* wip
* Add more direct way of tainting output
* wip
* Add real twig template analyzer
* Refactor
* Little fixes
* Change namespace from Taint to Twig
* Refactoring
* Some type fixing
* Fix CS
* Guess template-to-cache mapping instead of using the twig env.
* Fix typing
* Last minutes changes
* Change test group
* Update README
* fix TemplateFileAnalyzer path in readme
Co-authored-by: Farhad Safarov <farhad.safarov@gmail.com>
Co-authored-by: Brown <github@muglug.com>
2020-09-13 19:37:26 +03:00
Damien Debin
b1bfd5fac1
Better null
handling for getOption
. ( #75 )
2020-08-24 09:57:30 +03:00
Adrien LUCAS
51d363960f
Taint analysis ( #54 )
...
* Taint Request::get and Response::__construct
* Taint Request::request, Request::query & Request::cookies
* Taint Request::headers (only for the user-agent header)
* Taint HeaderBag::__toString (and a fix of psalm taint api usage)
* Taint InputBag::all
* Fix type resolving
* Bump psalm requirement
* refactoring first scenario outline
* Refactor RequestTaint
* no message
* Taint HeaderBag using the MethodReturnTypeProviderInterface
* Skip tests when dependencies too low
* Fix CS
Co-authored-by: Farhad Safarov <farhad.safarov@gmail.com>
2020-08-22 21:04:30 +03:00
Valentin Udaltsov
9fb76499f9
Added CacheInterface.stubphp from symfony contracts ( #74 )
2020-08-18 14:38:35 +03:00
Valentin Udaltsov
898d580c13
Added Guard AuthenticatorInterface.stubphp ( #72 )
2020-08-18 13:18:10 +03:00
Valentin Udaltsov
da8d170c78
Made Messenger Envelope aware of the message class ( #71 )
2020-08-18 09:24:21 +03:00
Valentin Udaltsov
d27cd2fc1b
Added LockableTrait.stubphp ( #70 )
2020-08-18 09:06:54 +03:00
Valentin Udaltsov
942397d1b5
Fixed named arguments in ContainerHandler.php for Psalm 3.14 ( #73 )
2020-08-18 09:02:44 +03:00
Farhad Safarov
798b72f40c
InputBag get stub for return type ( #69 )
2020-08-04 07:14:56 +03:00
Farhad Safarov
9e7968cb57
Add PHP CS fixer check ( #67 )
2020-08-03 17:25:34 +03:00
Farhad Safarov
37912ba88f
test container support ( #66 )
...
* test container support
* no message
* no message
2020-08-03 17:14:55 +03:00
Farhad Safarov
25c91fd99a
PropertyNotSetInConstructor error is not raised when class is an Annotation ( #65 )
2020-08-01 18:07:39 +03:00
Farhad Safarov
750e7b9e8f
PropertyNotSetInConstructor error about $context is not raised in ConstraintValidator ( #63 )
2020-07-30 16:07:38 +03:00
Farhad Safarov
d13b6aa27a
Default service visibility for different Symfony versions ( #62 )
...
* Default service visibility for different Symfony versions
* no message
* test fix
2020-07-28 21:21:03 +03:00
Anton Zagorskii
c8cea86f11
test symfony version typo fix ( #58 )
...
Co-authored-by: Anton Zagorskii <anton@paytronix.io>
2020-07-20 10:09:39 +03:00
Anton Zagorskii
1c68a1529a
Suppress PropertyNotSetInConstructor error in AbstractController::$container (managed by Symfony DI) ( #57 )
...
Co-authored-by: Anton Zagorskii <anton@paytronix.io>
2020-07-20 06:40:55 +03:00
Anton Zagorskii
7fb4a082cf
totallyTyped is deprecated, changed to errorLevel="1" ( #56 )
...
Co-authored-by: Anton Zagorskii <anton@paytronix.io>
2020-07-19 11:28:57 +03:00
Anton Zagorskii
5d46b7a221
removed .gitkeep & unblocked testing on symfony 5.* ( #55 )
...
Co-authored-by: Anton Zagorskii <anton@paytronix.io>
2020-07-19 11:27:05 +03:00
Michel Hunziker
e6ae163a54
Add envelope stub to provide the correct argument and return types ( #53 )
...
* Add envelope stub to provide the correct argument and return types
* Use a custom test stamp
2020-07-06 06:29:10 +03:00
Adrien LUCAS
4b826dc432
Taint Request::get and Response::__construct ( #50 )
...
* Taint Request::get and Response::__construct
* no message
Co-authored-by: Farhad Safarov <farhad.safarov@gmail.com>
2020-07-02 14:27:48 +03:00
Farhad Safarov
fb2eb766e4
naming convention for parameters ( #52 )
2020-06-28 09:04:40 +03:00
Farhad Safarov
ec7545a086
[psalm] detect dead code & unused suppresses ( #51 )
2020-06-27 22:35:28 +03:00
Farhad Safarov
b9f4745e28
HeaderBag get default value return type ( #49 )
2020-06-26 14:58:43 +03:00
Farhad Safarov
3b5b7016fc
container dependency handler attribute fix ( #48 )
...
* container dependency handler attribute fix
* no message
* no message
* no message
2020-06-23 23:42:21 +03:00
Farhad Safarov
8d062cf97d
cleanup & inline suppressible plugin issue ( #46 )
...
* cleanup & inline suppressible plugin issue
* no message
2020-06-22 11:15:12 +03:00
Farhad Safarov
76ff9a0f8e
[container] multiple container xml file support ( #45 )
2020-06-19 16:18:31 +03:00
Farhad Safarov
7769787a86
[console] input definition ( #44 )
...
* [console] input definition
* no message
2020-06-19 14:19:17 +03:00
Farhad Safarov
e6e9a42b48
doctrine repository handler ( #40 )
2020-06-16 04:17:22 +03:00
Farhad Safarov
fa0ac3a728
issues extends PluginIssue ( #38 )
2020-06-12 07:06:17 +03:00
Farhad Safarov
f0b6ffab06
[console] argument and option name using const ( #36 )
...
* [console] argument and option name using const
* no message
2020-06-09 12:15:09 +03:00
Farhad Safarov
8abc28c3a3
Suggest Doctrine plugin
2020-05-27 17:08:01 +03:00
Farhad Safarov
d1f2fbab84
fix crash when using self::class in container get ( #34 )
...
* fix crash when using self::class in container get
* no message
* no message
2020-05-27 16:58:32 +03:00
Farhad Safarov
7a628c6fda
[RepositoryStringShortcut] complain when argument is string only ( #33 )
2020-05-26 18:53:50 +03:00
Farhad Safarov
55aa860581
Detect naming violations & container handler refactor ( #29 )
...
* refactor container handler
* readme
2020-05-16 06:06:51 +03:00
Brown
08ac379ad9
Only added container-loadable classes to specific symfony loaders
2020-05-15 10:01:05 -04:00
Farhad Safarov
95e6128cfa
[console] skip dynamic argument and option names ( #27 )
2020-04-27 08:38:20 +03:00
Matthew Brown
131c7a04f5
Remove unncessary arg
2020-04-19 22:55:47 -04:00
Matthew Brown
50601143b7
Add more accurate type
2020-04-19 22:52:57 -04:00
Matthew Brown
fcc034ee13
Merge pull request #16 from bendavies/github-actions-psalm-cache
...
cache psalm cache in ci to allow --diff --diff-methods
2020-04-19 22:49:26 -04:00
Matthew Brown
eb0bc207df
Add null check
2020-04-19 22:48:59 -04:00