Skip to content

Commit

Permalink
Merge pull request #65 from acelaya-forks/feature/update-coding-standard
Browse files Browse the repository at this point in the history
Update to PHP coding standard 2.4.0
  • Loading branch information
acelaya authored Oct 28, 2024
2 parents 1565438 + 8d62031 commit 69385d7
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com), and this
* Update to PHPStan 1.11.
* Update dependencies.
* Switch to xdebug for code coverage reports, as pcov is not marking functions as covered
* Update shlinkio coding standard to v2.4

### Deprecated
* *Nothing*
Expand Down
12 changes: 6 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,16 @@
"league/event": "^3.0",
"psr/event-dispatcher": "^1.0",
"psr/log": "^3.0",
"shlinkio/shlink-config": "^3.1",
"shlinkio/shlink-json": "^1.1"
"shlinkio/shlink-config": "^3.3",
"shlinkio/shlink-json": "^1.2"
},
"require-dev": {
"phpstan/phpstan": "^1.11",
"phpstan/phpstan": "^1.12",
"phpstan/phpstan-phpunit": "^1.4",
"phpunit/phpunit": "^11.3",
"phpunit/phpunit": "^11.4",
"roave/security-advisories": "dev-master",
"shlinkio/php-coding-standard": "~2.3.0",
"spiral/roadrunner-jobs": "^4.5",
"shlinkio/php-coding-standard": "~2.4.0",
"spiral/roadrunner-jobs": "^4.6",
"symfony/var-dumper": "^7.1"
},
"suggest": {
Expand Down
2 changes: 1 addition & 1 deletion src/RoadRunner/RoadRunnerTaskConsumerToListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public function __construct(
/**
* @param (callable(string): void)|null $setCurrentRequestId
*/
public function listenForTasks(?callable $setCurrentRequestId = null): void
public function listenForTasks(callable|null $setCurrentRequestId = null): void
{
while ($task = $this->consumer->waitTask()) {
try {
Expand Down
2 changes: 1 addition & 1 deletion test/RoadRunner/RoadRunnerEventDispatcherFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ private function getPrivateProp(object $object, string $propName): mixed
}

private function container(
?EnabledListenerCheckerInterface $listenerChecker = null,
EnabledListenerCheckerInterface|null $listenerChecker = null,
bool $hasRequestIdProvider = false,
): ContainerInterface {
$container = $this->createMock(ContainerInterface::class);
Expand Down

0 comments on commit 69385d7

Please sign in to comment.