Skip to content

Commit a58c7cc

Browse files
authored
feat: trigger PHP 8 compatibility release
1 parent 4b049d9 commit a58c7cc

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

phpstan.neon

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
parameters:
2-
level: 5
2+
level: 6
33
paths:
44
- src
55

src/ComposerScripts.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class ComposerScripts
2222
*/
2323
protected static $vendorDir;
2424

25-
protected static function getBinDir(Event $event)
25+
protected static function getBinDir(Event $event): string
2626
{
2727
if (!static::$binDir) {
2828
static::$binDir = realpath($event->getComposer()->getConfig()->get('bin-dir'));
@@ -31,7 +31,7 @@ protected static function getBinDir(Event $event)
3131
return static::$binDir;
3232
}
3333

34-
protected static function getVendorDir(Event $event)
34+
protected static function getVendorDir(Event $event): string
3535
{
3636
if (!static::$vendorDir) {
3737
static::$vendorDir = realpath($event->getComposer()->getConfig()->get('vendor-dir'));
@@ -40,7 +40,7 @@ protected static function getVendorDir(Event $event)
4040
return static::$vendorDir;
4141
}
4242

43-
protected static function bootstrap(Event $event)
43+
protected static function bootstrap(Event $event): void
4444
{
4545
require_once static::getVendorDir($event) . '/autoload.php';
4646
}

0 commit comments

Comments
 (0)