Skip to content

Commit

Permalink
Release version 1.1.29
Browse files Browse the repository at this point in the history
  • Loading branch information
marcovtwout committed Nov 14, 2023
1 parent 37142be commit f89b76e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
2 changes: 1 addition & 1 deletion framework/YiiBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ class YiiBase
*/
public static function getVersion()
{
return '1.1.29-dev';
return '1.1.29';
}

/**
Expand Down
9 changes: 4 additions & 5 deletions framework/yiilite.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down Expand Up @@ -4211,11 +4211,10 @@ protected function runWithParamsInternal($object, $method, $params)
$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]))
Expand Down

0 comments on commit f89b76e

Please sign in to comment.