Skip to content

Commit

Permalink
Set default values for script and hooks in RubyApplication
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Pavlusha311245 committed Mar 29, 2024
1 parent 825f059 commit 2693ebc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Config/Application/RubyApplication.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ class RubyApplication extends AbstractApplication
/**
* @var string
*/
private string $script;
private string $script = '';

/**
* @var string
*/
private string $hooks;
private string $hooks = '';

public function getRequiredKeys(): array
{
Expand Down

0 comments on commit 2693ebc

Please sign in to comment.