Skip to content

Commit

Permalink
prepare minor bugfix release 4.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
llaville committed Dec 4, 2024
1 parent 2ea7ae1 commit e11e8fc
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .changes/4.1.2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@

## 4.1.2 - 2024-12-04

### Fixed

- invalid `$firstBin` argument type provided on `BoxConfigurationHelper::retrieveMainScriptPath()` when project source code does not have a Composer `bin` declaration

**Full Changelog**: [4.1.1...4.1.2](https://github.com/llaville/box-manifest/compare/4.1.1...4.1.2)
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html),
and is generated by [Changie](https://github.com/miniscruff/changie).

## 4.1.2 - 2024-12-04

### Fixed

- invalid `$firstBin` argument type provided on `BoxConfigurationHelper::retrieveMainScriptPath()` when project source code does not have a Composer `bin` declaration

**Full Changelog**: [4.1.1...4.1.2](https://github.com/llaville/box-manifest/compare/4.1.1...4.1.2)

## 4.1.1 - 2024-12-02

### Fixed
Expand Down
3 changes: 2 additions & 1 deletion src/Helper/BoxConfigurationHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@ public function __construct(
if (file_exists($composerJsonPath)) {
/** @var array<string, mixed> $decodedComposerJson */
$decodedComposerJson = $json->decodeFile($composerJsonPath, true);
$firstBin = current((array) ($decodedComposerJson['bin'] ?? []));
$bin = $decodedComposerJson['bin'] ?? [];
$firstBin = current((array) $bin) ?: null;
}

$main = $assocConfig[self::MAIN_KEY] ?? null;
Expand Down

0 comments on commit e11e8fc

Please sign in to comment.