This commit is contained in:
Daniil Gentili 2022-12-15 16:57:52 +01:00
parent 96987686d7
commit 545ef865a9
2 changed files with 7 additions and 5 deletions

View File

@ -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) {}

View File

@ -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