Skip to content
This repository was archived by the owner on Oct 22, 2025. It is now read-only.

Commit 2693ebc

Browse files
Set default values for script and hooks in RubyApplication
The `script` and `hooks` variables in the RubyApplication class are now initialized with empty strings. This avoids potential runtime errors or unexpected behaviours caused by previously uninitialized variables.
1 parent 825f059 commit 2693ebc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Config/Application/RubyApplication.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ class RubyApplication extends AbstractApplication
2424
/**
2525
* @var string
2626
*/
27-
private string $script;
27+
private string $script = '';
2828

2929
/**
3030
* @var string
3131
*/
32-
private string $hooks;
32+
private string $hooks = '';
3333

3434
public function getRequiredKeys(): array
3535
{

0 commit comments

Comments
 (0)