mirror of
https://github.com/yiisoft/yii.git
synced 2026-02-20 01:21:22 +01:00
Release version 1.1.29
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -87,7 +87,7 @@ class YiiBase
|
||||
*/
|
||||
public static function getVersion()
|
||||
{
|
||||
return '1.1.29-dev';
|
||||
return '1.1.29';
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -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]))
|
||||
|
||||
Reference in New Issue
Block a user