Skip to content

Commit

Permalink
Updated shlink-config and added some PHP 8.1 syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
acelaya committed Aug 6, 2022
1 parent 55f8a1a commit 282b2b1
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 10 deletions.
1 change: 0 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,5 @@ jobs:
uses: shlinkio/github-actions/.github/workflows/php-lib-ci.yml@main
with:
extra-extensions: openswoole-4.11.1
with-php-eight: false
secrets:
INFECTION_BADGE_API_KEY: ${{ secrets.INFECTION_BADGE_API_KEY }}
19 changes: 17 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,29 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com), and this project adheres to [Semantic Versioning](https://semver.org).

## [2.4.0] - 2022-06-03
## [2.5.0] - 2022-08-06
### Added
* *Nothing*

### Changed
* Updated dependencies
* Updated to shlink-config 2.0

### Deprecated
* *Nothing*

### Removed
* *Nothing*

### Fixed
* *Nothing*


## [2.4.0] - 2022-06-03
### Added
* *Nothing*

### Changed
* Updated dependencies
* Updated to infection 0.26, enabling HTML reports.
* Added explicitly enabled composer plugins to composer.json.

Expand Down
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,17 @@
"league/event": "^3.0",
"psr/event-dispatcher": "^1.0",
"psr/log": "^3.0",
"shlinkio/shlink-config": "^1.6"
"shlinkio/shlink-config": "^2.0"
},
"require-dev": {
"eaglewu/swoole-ide-helper": "dev-master",
"infection/infection": "^0.26",
"mezzio/mezzio-swoole": "^4.2",
"openswoole/ide-helper": "~4.11.1",
"phpspec/prophecy-phpunit": "^2.0",
"phpstan/phpstan": "^1.7",
"phpstan/phpstan": "^1.8",
"phpunit/phpunit": "^9.5",
"roave/security-advisories": "dev-master",
"shlinkio/php-coding-standard": "~2.2.0"
"shlinkio/php-coding-standard": "~2.3.0"
},
"suggest": {
"mezzio/mezzio-swoole": "To be able to run async event dispatchers as swoole tasks"
Expand Down
4 changes: 2 additions & 2 deletions src/Dispatcher/EventDispatcherAggregate.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ class EventDispatcherAggregate implements EventDispatcherInterface
private bool $fallbackAsync;

public function __construct(
private EventDispatcherInterface $asyncDispatcher,
private EventDispatcherInterface $regularDispatcher,
private readonly EventDispatcherInterface $asyncDispatcher,
private readonly EventDispatcherInterface $regularDispatcher,
array $eventsConfig,
) {
$this->asyncEvents = array_keys($eventsConfig['async'] ?? []);
Expand Down
2 changes: 1 addition & 1 deletion src/Listener/TaskFinishListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

class TaskFinishListener
{
public function __construct(private LoggerInterface $logger)
public function __construct(private readonly LoggerInterface $logger)
{
}

Expand Down

0 comments on commit 282b2b1

Please sign in to comment.