Files
yii2/tests/framework/web/FakePhp80Controller.php
Chris Reichel a67bfc1274 array union in controllers
! fix yii\web\Controller::bindActionParams behaviour for union types
o some refactoring in the process
2025-04-10 10:34:06 +02:00

26 lines
458 B
PHP

<?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)
{
}
public function actionArrayOrInt(array|int $foo)
{
}
}