mirror of
https://github.com/danog/psalm-plugin-symfony.git
synced 2024-11-29 20:19:09 +01:00
Cleanup
This commit is contained in:
parent
96987686d7
commit
545ef865a9
@ -11,9 +11,11 @@ class Request
|
||||
*
|
||||
* @throws \LogicException
|
||||
*
|
||||
* @psalm-template TAsResource as bool
|
||||
* @psalm-param TAsResource $asResource
|
||||
* @psalm-return (TAsResource is true ? resource : string)
|
||||
* @psalm-return (
|
||||
* $asResource is true
|
||||
* ? resource
|
||||
* : string
|
||||
* )
|
||||
*/
|
||||
public function getContent($asResource = false) {}
|
||||
|
||||
|
@ -30,7 +30,7 @@ class TwigUtilsTest extends TestCase
|
||||
{
|
||||
$hasErrors = false;
|
||||
$code = '<?php'."\n".$expression;
|
||||
$statements = StatementsProvider::parseStatements($code, PHP_VERSION_ID, $hasErrors);
|
||||
$statements = StatementsProvider::parseStatements($code, 7_01_00, $hasErrors);
|
||||
|
||||
$assertionHook = new class() implements AfterEveryFunctionCallAnalysisInterface {
|
||||
public static function afterEveryFunctionCallAnalysis(AfterEveryFunctionCallAnalysisEvent $event): void
|
||||
@ -61,7 +61,7 @@ class TwigUtilsTest extends TestCase
|
||||
{
|
||||
$hasErrors = false;
|
||||
$code = '<?php'."\n".'dummy(123);';
|
||||
$statements = StatementsProvider::parseStatements($code, PHP_VERSION_ID, $hasErrors);
|
||||
$statements = StatementsProvider::parseStatements($code, 7_01_00, $hasErrors);
|
||||
|
||||
$assertionHook = new class() implements AfterEveryFunctionCallAnalysisInterface {
|
||||
public static function afterEveryFunctionCallAnalysis(AfterEveryFunctionCallAnalysisEvent $event): void
|
||||
|
Loading…
Reference in New Issue
Block a user