Skip to content

Commit

Permalink
[fb-mqtt-connector] Refactoring connector to latest dev spec (#207)
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Dec 7, 2023
1 parent 022d40f commit e68d160
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Expand Up @@ -13,7 +13,7 @@ on:
- cron: "0 8 * * 1" # At 08:00 on Monday

env:
extensions: "json, intl"
extensions: "json, intl, :php-psr"
cache-version: "1"
composer-version: "v2"
composer-options: "--no-interaction --no-progress --no-suggest --prefer-dist --prefer-stable"
Expand Down
5 changes: 3 additions & 2 deletions composer.json
Expand Up @@ -51,14 +51,15 @@
"ipub/doctrine-timestampable": "^1.5",
"ipub/slim-router": "^0.2",
"mathsolver/mathsolver": "@dev",
"nettrine/dbal": "^0.8",
"nettrine/orm": "^0.8",
"psr/event-dispatcher": "^1.0",
"orisai/data-sources": "^1.0",
"react/async": "^4.0",
"react/event-loop": "^1.3",
"react/promise": "^3|^2.2",
"react/promise": "^3",
"softcreatr/jsonpath": "^0.8",
"symfony/console": "^5.0|^6.0",
"symfony/console": "^6.0",
"symfony/event-dispatcher": "^5.4",
"symplify/vendor-patches": "^11.2"
},
Expand Down
19 changes: 10 additions & 9 deletions src/Logger.php
Expand Up @@ -17,6 +17,7 @@

use Monolog;
use Psr\Log;
use Stringable;

/**
* Module logger
Expand Down Expand Up @@ -45,7 +46,7 @@ public function __construct(
* @param array<mixed> $context
*/
// phpcs:ignore SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint
public function alert($message, array $context = []): void
public function alert(string|Stringable $message, array $context = []): void
{
$this->logger->alert($message, $context);
}
Expand All @@ -55,7 +56,7 @@ public function alert($message, array $context = []): void
* @param array<mixed> $context
*/
// phpcs:ignore SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint
public function critical($message, array $context = []): void
public function critical(string|Stringable $message, array $context = []): void
{
$this->logger->critical($message, $context);
}
Expand All @@ -65,7 +66,7 @@ public function critical($message, array $context = []): void
* @param array<mixed> $context
*/
// phpcs:ignore SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint
public function debug($message, array $context = []): void
public function debug(string|Stringable $message, array $context = []): void
{
$this->logger->debug($message, $context);
}
Expand All @@ -75,7 +76,7 @@ public function debug($message, array $context = []): void
* @param array<mixed> $context
*/
// phpcs:ignore SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint
public function emergency($message, array $context = []): void
public function emergency(string|Stringable $message, array $context = []): void
{
$this->logger->emergency($message, $context);
}
Expand All @@ -85,7 +86,7 @@ public function emergency($message, array $context = []): void
* @param array<mixed> $context
*/
// phpcs:ignore SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint
public function error($message, array $context = []): void
public function error(string|Stringable $message, array $context = []): void
{
$this->logger->error($message, $context);
}
Expand All @@ -95,7 +96,7 @@ public function error($message, array $context = []): void
* @param array<mixed> $context
*/
// phpcs:ignore SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint
public function info($message, array $context = []): void
public function info(string|Stringable $message, array $context = []): void
{
$this->logger->info($message, $context);
}
Expand All @@ -105,7 +106,7 @@ public function info($message, array $context = []): void
* @param array<mixed> $context
*/
// phpcs:ignore SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint
public function log(mixed $level, $message, array $context = []): void
public function log(mixed $level, string|Stringable $message, array $context = []): void
{
$this->logger->log($level, $message, $context);
}
Expand All @@ -115,7 +116,7 @@ public function log(mixed $level, $message, array $context = []): void
* @param array<mixed> $context
*/
// phpcs:ignore SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint
public function notice($message, array $context = []): void
public function notice(string|Stringable $message, array $context = []): void
{
$this->logger->notice($message, $context);
}
Expand All @@ -125,7 +126,7 @@ public function notice($message, array $context = []): void
* @param array<mixed> $context
*/
// phpcs:ignore SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint
public function warning($message, array $context = []): void
public function warning(string|Stringable $message, array $context = []): void
{
$this->logger->warning($message, $context);
}
Expand Down

0 comments on commit e68d160

Please sign in to comment.