From a58c7cc5abae511a9ed974a509c9e47a2f2d67c8 Mon Sep 17 00:00:00 2001 From: Nelson Martell Date: Thu, 6 Jun 2024 12:14:49 +0000 Subject: [PATCH] feat: trigger PHP 8 compatibility release --- phpstan.neon | 2 +- src/ComposerScripts.php | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/phpstan.neon b/phpstan.neon index a64d774..6d49eb4 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -1,5 +1,5 @@ parameters: - level: 5 + level: 6 paths: - src diff --git a/src/ComposerScripts.php b/src/ComposerScripts.php index 2ba7910..be43613 100644 --- a/src/ComposerScripts.php +++ b/src/ComposerScripts.php @@ -22,7 +22,7 @@ class ComposerScripts */ protected static $vendorDir; - protected static function getBinDir(Event $event) + protected static function getBinDir(Event $event): string { if (!static::$binDir) { static::$binDir = realpath($event->getComposer()->getConfig()->get('bin-dir')); @@ -31,7 +31,7 @@ protected static function getBinDir(Event $event) return static::$binDir; } - protected static function getVendorDir(Event $event) + protected static function getVendorDir(Event $event): string { if (!static::$vendorDir) { static::$vendorDir = realpath($event->getComposer()->getConfig()->get('vendor-dir')); @@ -40,7 +40,7 @@ protected static function getVendorDir(Event $event) return static::$vendorDir; } - protected static function bootstrap(Event $event) + protected static function bootstrap(Event $event): void { require_once static::getVendorDir($event) . '/autoload.php'; }