From f89b76ecca1d342e346ebb9bfc1e2c589f696345 Mon Sep 17 00:00:00 2001 From: Marco van 't Wout Date: Tue, 14 Nov 2023 10:26:00 +0100 Subject: [PATCH] Release version 1.1.29 --- CHANGELOG | 2 +- framework/YiiBase.php | 2 +- framework/yiilite.php | 9 ++++----- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index c12f8806a0..5e30e9cb23 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -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) diff --git a/framework/YiiBase.php b/framework/YiiBase.php index 251f572302..6c7800b6f1 100644 --- a/framework/YiiBase.php +++ b/framework/YiiBase.php @@ -87,7 +87,7 @@ class YiiBase */ public static function getVersion() { - return '1.1.29-dev'; + return '1.1.29'; } /** diff --git a/framework/yiilite.php b/framework/yiilite.php index 2ac2b89f5a..8dfccdbd21 100644 --- a/framework/yiilite.php +++ b/framework/yiilite.php @@ -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 @@ 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]))