diff --git a/composer.json b/composer.json index e83f522..351d6a9 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|^9" }, "require-dev": { "phpunit/phpunit": "~8.0" 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); }