Fix #18859: Fix yii\web\Controller::bindInjectedParams() to not throw error when argument of ReflectionUnionType type is passed

This commit is contained in:
Bizley
2023-05-31 20:30:45 +02:00
committed by GitHub
parent f6bb12091b
commit 80a18ad6ba
4 changed files with 52 additions and 1 deletions

View File

@ -0,0 +1,20 @@
<?php
/**
* @link https://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license https://www.yiiframework.com/license/
*/
namespace yiiunit\framework\web;
use yii\web\Controller;
class FakePhp80Controller extends Controller
{
public $enableCsrfValidation = false;
public function actionInjection(int|string $arg, int|string $second)
{
}
}