Skip to content

Commit

Permalink
wider version constraint
Browse files Browse the repository at this point in the history
  • Loading branch information
andersondanilo committed Feb 14, 2021
1 parent 829c228 commit 9240c54
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
],
"require": {
"php": ">=7.4",
"symfony/process": "^5.2",
"symfony/event-dispatcher": "^5.2"
"symfony/process": "^4.0 || ^5.0",
"symfony/event-dispatcher": "^4.0 || ^5.0"
},
"autoload": {
"psr-4": {
Expand Down
6 changes: 2 additions & 4 deletions src/ProcessPool.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,10 +126,8 @@ private function shouldThrowExceptions(): bool

/**
* Get processes concurrency, default 5
*
* @return int
*/
public function getConcurrency()
public function getConcurrency(): int
{
return $this->concurrency;
}
Expand Down Expand Up @@ -160,7 +158,7 @@ public function getEventDispatcher(): EventDispatcherInterface
/**
* @return static
*/
public function setEventDispatcher(EventDispatcher $eventDispatcher)
public function setEventDispatcher(EventDispatcherInterface $eventDispatcher)
{
$this->eventDispatcher = $eventDispatcher;

Expand Down

0 comments on commit 9240c54

Please sign in to comment.