Skip to content

Commit

Permalink
Fixed trailing comma in registerArgumentsSet for PHP version < 7.3
Browse files Browse the repository at this point in the history
  • Loading branch information
King2500 committed Apr 11, 2019
1 parent 83af131 commit e3f4e05
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions Monolog/.phpstorm.meta.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
\Monolog\Logger::ERROR,
\Monolog\Logger::CRITICAL,
\Monolog\Logger::ALERT,
\Monolog\Logger::EMERGENCY,
\Monolog\Logger::EMERGENCY
);
registerArgumentsSet('monolog_levels_reversed',
\Monolog\Logger::EMERGENCY,
Expand All @@ -20,7 +20,7 @@
\Monolog\Logger::WARNING,
\Monolog\Logger::NOTICE,
\Monolog\Logger::INFO,
\Monolog\Logger::DEBUG,
\Monolog\Logger::DEBUG
);

expectedArguments(\Monolog\Logger::addRecord(), 0, argumentsSet('monolog_levels'));
Expand Down Expand Up @@ -95,7 +95,7 @@

registerArgumentsSet('monolog_json_formatter_modes',
\Monolog\Formatter\JsonFormatter::BATCH_MODE_JSON,
\Monolog\Formatter\JsonFormatter::BATCH_MODE_NEWLINES,
\Monolog\Formatter\JsonFormatter::BATCH_MODE_NEWLINES
);
expectedArguments(\Monolog\Formatter\JsonFormatter::__construct(), 0, argumentsSet('monolog_json_formatter_modes'));
expectedArguments(\Monolog\Formatter\LogglyFormatter::__construct(), 0, argumentsSet('monolog_json_formatter_modes'));
Expand All @@ -120,7 +120,7 @@
'Y-m-d H:i:s',
'Y-m-d H:i',
'Y-m-d',
'H:i:s',
'H:i:s'
);
expectedArguments(\Monolog\Formatter\NormalizerFormatter::__construct(), 0, argumentsSet('monolog_formatter_dateformats'));
expectedArguments(\Monolog\Formatter\HtmlFormatter::__construct(), 0, argumentsSet('monolog_formatter_dateformats'));
Expand All @@ -132,7 +132,7 @@
"[%datetime%] %channel%.%level_name%: %message% %context%\n",
"[%datetime%] %channel%.%level_name%: %message%\n",
"[%datetime%] %message%\n",
"%message%\n",
"%message%\n"
);
expectedArguments(\Monolog\Formatter\LineFormatter::__construct(), 0, argumentsSet('monolog_formatter_line_formats'));

Expand All @@ -158,7 +158,7 @@
LOG_MAIL,
LOG_NEWS,
LOG_SYSLOG,
LOG_UUCP,
LOG_UUCP
);
expectedArguments(\Monolog\Handler\AbstractSyslogHandler::__construct(), 0, argumentsSet('syslog_facilities'));
expectedArguments(\Monolog\Handler\SyslogHandler::__construct(), 1, argumentsSet('syslog_facilities'));
Expand All @@ -168,7 +168,7 @@

registerArgumentsSet('errorlog_types',
\Monolog\Handler\ErrorLogHandler::OPERATING_SYSTEM,
\Monolog\Handler\ErrorLogHandler::SAPI,
\Monolog\Handler\ErrorLogHandler::SAPI
);
expectedArguments(\Monolog\Handler\ErrorLogHandler::__construct(), 0, argumentsSet('errorlog_types'));

Expand Down
2 changes: 1 addition & 1 deletion Symfony/Component/Console/.phpstorm.meta.php
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@
expectedReturnValues(\Symfony\Component\Console\Helper\TableStyle::getPadType(), STR_PAD_LEFT, STR_PAD_RIGHT, STR_PAD_BOTH);

registerArgumentsSet('symfony_console_exitcodes',
\Symfony\Component\Console\Event\ConsoleCommandEvent::RETURN_CODE_DISABLED,
\Symfony\Component\Console\Event\ConsoleCommandEvent::RETURN_CODE_DISABLED
);
expectedReturnValues(\Symfony\Component\Console\Event\ConsoleErrorEvent::getExitCode(), argumentsSet('symfony_console_exitcodes'));
expectedReturnValues(\Symfony\Component\Console\Event\ConsoleTerminateEvent::getExitCode(), argumentsSet('symfony_console_exitcodes'));
Expand Down

0 comments on commit e3f4e05

Please sign in to comment.