Skip to content

Commit

Permalink
feat: trigger PHP 8 compatibility release
Browse files Browse the repository at this point in the history
  • Loading branch information
nelson6e65 authored Jun 6, 2024
1 parent 4b049d9 commit a58c7cc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion phpstan.neon
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
parameters:
level: 5
level: 6
paths:
- src

Expand Down
6 changes: 3 additions & 3 deletions src/ComposerScripts.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
Expand All @@ -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'));
Expand All @@ -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';
}
Expand Down

0 comments on commit a58c7cc

Please sign in to comment.