Skip to content

Commit f89b76e

Browse files
committed
Release version 1.1.29
1 parent 37142be commit f89b76e

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

CHANGELOG

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Yii Framework Change Log
22
========================
33

4-
Version 1.1.29 under development
4+
Version 1.1.29 November 14, 2023
55
--------------------------------
66

77
- Bug #4516: PHP 8 compatibility: Allow union types and intersection types in action declarations (wtommyw)

framework/YiiBase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ class YiiBase
8787
*/
8888
public static function getVersion()
8989
{
90-
return '1.1.29-dev';
90+
return '1.1.29';
9191
}
9292

9393
/**

framework/yiilite.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class YiiBase
4141
private static $_logger;
4242
public static function getVersion()
4343
{
44-
return '1.1.29-dev';
44+
return '1.1.29';
4545
}
4646
public static function createWebApplication($config=null)
4747
{
@@ -4211,11 +4211,10 @@ protected function runWithParamsInternal($object, $method, $params)
42114211
$name=$param->getName();
42124212
if(isset($params[$name]))
42134213
{
4214-
if(version_compare(PHP_VERSION,'8.0','>=')) {
4215-
$isArray=$param->getType() && $param->getType()->getName()==='array';
4216-
} else {
4214+
if(version_compare(PHP_VERSION,'8.0','>='))
4215+
$isArray=($type=$param->getType()) instanceof \ReflectionNamedType && $type->getName()==='array';
4216+
else
42174217
$isArray=$param->isArray();
4218-
}
42194218
if($isArray)
42204219
$ps[]=is_array($params[$name]) ? $params[$name] : array($params[$name]);
42214220
elseif(!is_array($params[$name]))

0 commit comments

Comments
 (0)