Release version 1.1.29

This commit is contained in:
Marco van 't Wout
2023-11-14 10:26:00 +01:00
parent 37142be4dc
commit f89b76ecca
3 changed files with 6 additions and 7 deletions

View File

@@ -1,7 +1,7 @@
Yii Framework Change Log
========================
Version 1.1.29 under development
Version 1.1.29 November 14, 2023
--------------------------------
- Bug #4516: PHP 8 compatibility: Allow union types and intersection types in action declarations (wtommyw)

View File

@@ -87,7 +87,7 @@ class YiiBase
*/
public static function getVersion()
{
return '1.1.29-dev';
return '1.1.29';
}
/**

View File

@@ -41,7 +41,7 @@ class YiiBase
private static $_logger;
public static function getVersion()
{
return '1.1.29-dev';
return '1.1.29';
}
public static function createWebApplication($config=null)
{
@@ -4211,11 +4211,10 @@ abstract class CAction extends CComponent implements IAction
$name=$param->getName();
if(isset($params[$name]))
{
if(version_compare(PHP_VERSION,'8.0','>=')) {
$isArray=$param->getType() && $param->getType()->getName()==='array';
} else {
if(version_compare(PHP_VERSION,'8.0','>='))
$isArray=($type=$param->getType()) instanceof \ReflectionNamedType && $type->getName()==='array';
else
$isArray=$param->isArray();
}
if($isArray)
$ps[]=is_array($params[$name]) ? $params[$name] : array($params[$name]);
elseif(!is_array($params[$name]))