From a3b0f4f26af740028afad9664da3088b28687abd Mon Sep 17 00:00:00 2001 From: James Johnson Date: Tue, 11 Jan 2022 09:47:19 -0600 Subject: [PATCH 1/3] add laravel 8 add php 8 --- composer.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index e83f522..89a9843 100644 --- a/composer.json +++ b/composer.json @@ -15,8 +15,8 @@ } ], "require": { - "php": "^7.2", - "illuminate/support": "^6.0|^7.0" + "php": "^7.2|^8.0", + "illuminate/support": "^6.0|^7.0|^8.0" }, "require-dev": { "phpunit/phpunit": "~8.0" From 19a197e776a21db8075c7e7d3058d336e4f335bb Mon Sep 17 00:00:00 2001 From: James Johnson Date: Tue, 12 Jul 2022 16:12:42 -0500 Subject: [PATCH 2/3] add laravel 9 support --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 89a9843..351d6a9 100644 --- a/composer.json +++ b/composer.json @@ -16,7 +16,7 @@ ], "require": { "php": "^7.2|^8.0", - "illuminate/support": "^6.0|^7.0|^8.0" + "illuminate/support": "^6.0|^7.0|^8.0|^9" }, "require-dev": { "phpunit/phpunit": "~8.0" From b329ddfa48ac44e79e8cc350d0e59e9e40cd0855 Mon Sep 17 00:00:00 2001 From: James Johnson Date: Wed, 7 Sep 2022 09:06:19 -0500 Subject: [PATCH 3/3] add return to count() to make it compatible with Countable::count() --- src/PageTitle.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PageTitle.php b/src/PageTitle.php index 3e5f387..a95c4f6 100644 --- a/src/PageTitle.php +++ b/src/PageTitle.php @@ -136,7 +136,7 @@ public function add($item) * * @return int */ - public function count() + public function count(): int { return count($this->collection); }