Skip to content

Commit

Permalink
🔧 Vimeo Psalm Shepherd Integration (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
cdosoftei committed Sep 8, 2022
1 parent a20ca19 commit b92da68
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 26 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Expand Up @@ -21,4 +21,4 @@ jobs:
php-version: ${{ matrix.php }}
- run: composer install
- run: composer phpstan
- run: composer psalm
- run: composer psalm -- --output-format=github --shepherd
15 changes: 0 additions & 15 deletions src/Config/ConfigFile.php
Expand Up @@ -195,11 +195,6 @@ public function resolve(Set $config): void

if (isset($input['restServerLogLevel'])) {
try {
/**
* Allow Monolog to deal with the verbosity level matching
* @psalm-suppress ArgumentTypeCoercion
* @phpstan-ignore-next-line
*/
$config->restServerLogLevel = Level::fromName($input['restServerLogLevel']);
} catch (InvalidArgumentException $e) {
fwrite(STDERR, 'Malformed `restServerLogLevel` parameter in configuration file: ' . $e->getMessage() . PHP_EOL);
Expand Down Expand Up @@ -274,11 +269,6 @@ public function resolve(Set $config): void

if (isset($input['outboundServerLogLevel'])) {
try {
/**
* Allow Monolog to deal with the verbosity level matching
* @psalm-suppress ArgumentTypeCoercion
* @phpstan-ignore-next-line
*/
$config->outboundServerLogLevel = Level::fromName($input['outboundServerLogLevel']);
} catch (InvalidArgumentException $e) {
fwrite(STDERR, 'Malformed `outboundServerLogLevel` parameter in configuration file: ' . $e->getMessage() . PHP_EOL);
Expand All @@ -287,11 +277,6 @@ public function resolve(Set $config): void

if (isset($input['inboundServerLogLevel'])) {
try {
/**
* Allow Monolog to deal with the verbosity level matching
* @psalm-suppress ArgumentTypeCoercion
* @phpstan-ignore-next-line
*/
$config->inboundServerLogLevel = Level::fromName($input['inboundServerLogLevel']);
} catch (InvalidArgumentException $e) {
fwrite(STDERR, 'Malformed `inboundServerLogLevel` parameter in configuration file: ' . $e->getMessage() . PHP_EOL);
Expand Down
10 changes: 0 additions & 10 deletions src/Config/LegacyConfigFile.php
Expand Up @@ -147,11 +147,6 @@ function (string $value): bool {

if (isset($legacy['rest_server']['LOG_LEVEL'])) {
try {
/**
* Allow Monolog to deal with the verbosity level matching
* @psalm-suppress ArgumentTypeCoercion
* @phpstan-ignore-next-line
*/
$config->restServerLogLevel = $config->inboundServerLogLevel = Level::fromName($legacy['rest_server']['LOG_LEVEL']);
} catch (InvalidArgumentException $e) {
fwrite(STDERR, 'Malformed LOG_LEVEL (rest_server) line in legacy configuration file' . PHP_EOL);
Expand Down Expand Up @@ -196,11 +191,6 @@ function (string $value): bool {

if (isset($legacy['outbound_server']['LOG_LEVEL'])) {
try {
/**
* Allow Monolog to deal with the verbosity level matching
* @psalm-suppress ArgumentTypeCoercion
* @phpstan-ignore-next-line
*/
$config->outboundServerLogLevel = Level::fromName($legacy['outbound_server']['LOG_LEVEL']);
} catch (InvalidArgumentException $e) {
fwrite(STDERR, 'Malformed LOG_LEVEL (outbound_server) line in legacy configuration file' . PHP_EOL);
Expand Down

0 comments on commit b92da68

Please sign in to comment.