Skip to content

Commit

Permalink
Change details in CHANGELOG.md
Browse files Browse the repository at this point in the history
  • Loading branch information
rougin committed Nov 16, 2023
1 parent e081ef2 commit 5676eac
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,20 @@ All notable changes to `Slytherin` will be documented in this file.
## [0.9.6](https://github.com/rougin/slytherin/compare/v0.9.5...master) - Unreleased

### Added
- Support for PHP versions `v8.0`, `v8.1`, `v8.2`
- `Parameter` in `Container` for backward compatibility to `v8.0` onwards
- Support versions for PHP `v8.0`, `v8.1`, `v8.2`
- `Parameter` in `Container` for compatibility to PHP `v8.0` and above

### Changed
- Replaced `Scrutinizer CI` with `Codecov` for code coverage
- Replaced `Travis CI` with `Github Actions` for workflow

### Fixed
- Compatibility of `LeagueContainer` in PHP v7.2.0 (only supports versions until `2.9`)
- Initializing of `AurynContainer` in PHP versions above `v7.0`
- Initializing of `AurynContainer` in PHP `v7.0` and above
- Errors during unit tests in migrating to `Github Actions`

### Removed
- Changes from the previous `v0.9.6` pre-release version
- Changes from the initial `v0.9.6` pre-release version

## [0.9.5](https://github.com/rougin/slytherin/compare/v0.9.4...v0.9.5) - 2017-02-23

Expand Down
4 changes: 1 addition & 3 deletions src/Container/AurynContainer.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,7 @@ public function __construct($data = null)

if (! $data instanceof Injector)
{
parent::__construct($data);

$this->injector = $this;
parent::__construct($data) && $this->injector = $this;
}
}

Expand Down
6 changes: 4 additions & 2 deletions src/Container/ReflectionContainer.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,11 @@ public function has($id)
*/
protected function argument(\ReflectionParameter $parameter, $name)
{
try {
try
{
$argument = $parameter->getDefaultValue();
} catch (\ReflectionException $exception)
}
catch (\ReflectionException $exception)
{
$argument = $this->get($name);
}
Expand Down

0 comments on commit 5676eac

Please sign in to comment.