From 645f1848e0a047d673ffd6866aff0745fd170000 Mon Sep 17 00:00:00 2001 From: Bart van Hoekelen Date: Thu, 27 Apr 2017 01:12:40 +0200 Subject: [PATCH 1/7] Test archive --- composer.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/composer.json b/composer.json index ab142af..b3de0a3 100644 --- a/composer.json +++ b/composer.json @@ -44,5 +44,8 @@ "psr-4": { "Performance\\": "src/" } + }, + "archive": { + "exclude": ["assets"] } } From 99a5c1d292d07bd4e365b1bba159dd4ef8642edd Mon Sep 17 00:00:00 2001 From: Bart van Hoekelen Date: Fri, 28 Apr 2017 09:48:43 +0200 Subject: [PATCH 2/7] Rebuild export handel every call --- src/Lib/Handlers/PerformanceHandler.php | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/Lib/Handlers/PerformanceHandler.php b/src/Lib/Handlers/PerformanceHandler.php index cee9e18..bd5bbb9 100644 --- a/src/Lib/Handlers/PerformanceHandler.php +++ b/src/Lib/Handlers/PerformanceHandler.php @@ -33,11 +33,6 @@ class PerformanceHandler */ public $config; - /* - * Hold export - */ - public $export; - /* * */ @@ -137,10 +132,7 @@ public function results() public function export() { - if( ! $this->export) - $this->export = new ExportHandler($this); - - return $this->export; + return new ExportHandler($this); } public function getPoints() From a3c7f8152a21d101014710cd93cec1d2f056b26f Mon Sep 17 00:00:00 2001 From: Bart van Hoekelen Date: Thu, 18 May 2017 15:17:32 +0200 Subject: [PATCH 3/7] Fix issue Type error: Too few arguments to function Illuminate\Database\Connection::getConfig(), 0 passed in /Users/bvanhoekelen/Git/picturetosound/vendor/bvanhoekelen/performance/src/Lib/Holders/QueryLogHolder.php on line 26 and exactly 1 expected base on change: https://github.com/illuminate/database/commit/ba465fbda006d70265362012653b4e97667c867b#diff-eba180ff89e23df156c82c995be952df --- src/Lib/Holders/QueryLogHolder.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Lib/Holders/QueryLogHolder.php b/src/Lib/Holders/QueryLogHolder.php index f7ca0ec..2c6e073 100644 --- a/src/Lib/Holders/QueryLogHolder.php +++ b/src/Lib/Holders/QueryLogHolder.php @@ -24,7 +24,7 @@ function __construct($sql) $this->bindings = isset($sql->bindings) ? $sql->bindings : []; $connection = $sql->connection; - $config = method_exists($connection, 'getConfig') ? $sql->connection->getConfig() : []; + $config = method_exists($connection, 'getConfig') ? $sql->connection->getConfig(null) : []; // null fix change https://github.com/illuminate/database/commit/ba465fbda006d70265362012653b4e97667c867b#diff-eba180ff89e23df156c82c995be952df $this->connectionName = method_exists($connection, 'getName') ? $sql->connection->getName() : []; if (method_exists($connection, 'getConfig')) { $this->database = isset($config['database']) ? $config['database'] : null; From d30951548b31ff6950d36b1dc59a31e7f207f4ff Mon Sep 17 00:00:00 2001 From: Bart van Hoekelen Date: Thu, 18 May 2017 15:20:07 +0200 Subject: [PATCH 4/7] Add 5.4 and 5.5 tests --- .travis.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.travis.yml b/.travis.yml index 8a5a5e8..8847939 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,7 @@ language: php php: + - '5.4' + - '5.5' - '5.6' - '7.0' - '7.1' From 84fab2ec025d23656c0e16500e4de09796c194bf Mon Sep 17 00:00:00 2001 From: Bart van Hoekelen Date: Thu, 18 May 2017 15:23:16 +0200 Subject: [PATCH 5/7] Remove 5.4 and 5.5 for unit test --- .travis.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 8847939..8a5a5e8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,5 @@ language: php php: - - '5.4' - - '5.5' - '5.6' - '7.0' - '7.1' From 736a14402797f633c3d835754d4a7d728c8f13e1 Mon Sep 17 00:00:00 2001 From: Bart van Hoekelen Date: Thu, 18 May 2017 15:26:04 +0200 Subject: [PATCH 6/7] Update version --- src/Lib/Handlers/PerformanceHandler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Lib/Handlers/PerformanceHandler.php b/src/Lib/Handlers/PerformanceHandler.php index bd5bbb9..6ff19f7 100644 --- a/src/Lib/Handlers/PerformanceHandler.php +++ b/src/Lib/Handlers/PerformanceHandler.php @@ -11,7 +11,7 @@ class PerformanceHandler /* * Version */ - const VERSION = '2.0.1'; + const VERSION = '2.0.2'; /* * Hold point stack From 16e62114a887b70ad6aa201949c8793e369c3fdb Mon Sep 17 00:00:00 2001 From: Bart van Hoekelen Date: Thu, 18 May 2017 15:26:10 +0200 Subject: [PATCH 7/7] Add change log --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3243a61..8a1e1e3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Change Log +## [v2.0.2](https://github.com/bvanhoekelen/performance/tree/v2.0.2) - 2017-05-18 +### Bug fix +- Fix Too few arguments to function error. See: https://github.com/illuminate/database/commit/ba465fbda006d70265362012653b4e97667c867b#diff-eba180ff89e23df156c82c995be952df + ## [v2.0.1](https://github.com/bvanhoekelen/performance/tree/v2.0.1) - 2017-04-27 ### Change - Small fixes, typos and screenshots