From fdc172fc2e0d5dc513d8c09fa83237d151b79f7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20H=C3=A4rtl?= Date: Mon, 29 Jan 2018 13:08:31 +0100 Subject: [PATCH] Issue #18 Push min requirement to Yii 2.0.13 --- README.md | 2 ++ composer.json | 2 +- src/ExcelFile.php | 4 ++-- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 71cf2bb..c355358 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,8 @@ Yii2 Excel Export [![Latest Unstable Version](https://poser.pugx.org/codemix/yii2-excelexport/v/unstable)](https://packagist.org/packages/codemix/yii2-excelexport) [![License](https://poser.pugx.org/codemix/yii2-excelexport/license)](https://packagist.org/packages/codemix/yii2-excelexport) +> **Note:** The minimum requirement since 2.6.0 is Yii 2.0.13. The latest +> version for older Yii releases is 2.5.0. ## Features diff --git a/composer.json b/composer.json index ca5fa02..88379f8 100644 --- a/composer.json +++ b/composer.json @@ -11,7 +11,7 @@ } ], "require": { - "yiisoft/yii2": "*", + "yiisoft/yii2": "~2.0.13", "mikehaertl/php-tmpfile": "^1.0.0", "phpoffice/phpexcel": "1.*" }, diff --git a/src/ExcelFile.php b/src/ExcelFile.php index 456532c..5ea118a 100644 --- a/src/ExcelFile.php +++ b/src/ExcelFile.php @@ -2,14 +2,14 @@ namespace codemix\excelexport; use Yii; -use yii\base\Object; +use yii\base\BaseObject; use yii\helpers\ArrayHelper; use mikehaertl\tmp\File; /** * This class represents an excel file. */ -class ExcelFile extends Object +class ExcelFile extends BaseObject { /** * @var string the writer class to use. Default is