Skip to content

Commit 6c454e8

Browse files
committed
Fix issues with new slevomat rules
1 parent 7e0b7b6 commit 6c454e8

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

lib/ArrayLogger.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,19 @@ class ArrayLogger implements LoggingHandlerInterface
1717
*/
1818
public array $logs = [];
1919

20+
2021
public function __construct(Configuration $config)
2122
{
2223
// don't do anything with the configuration
2324
}
2425

26+
2527
public function log(int $level, string $string): void
2628
{
2729
$this->logs[$level][] = $string;
2830
}
2931

32+
3033
public function setLogFormat(string $format): void
3134
{
3235
// ignored

phpcs-simplesamlphp.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
<!-- Do not allow unnecessary spaces inside arbitrary parentheses -->
1010
<rule ref="Generic.WhiteSpace.ArbitraryParenthesesSpacing" />
1111

12+
<autoload>vendor/slevomat/coding-standard/autoload-bootstrap.php</autoload>
1213
<config name="installed_paths" value="vendor/slevomat/coding-standard"/>
1314

1415
<!-- Use fully qualified class names in annotations and PHPdoc -->

0 commit comments

Comments
 (0)