Skip to content

Commit ff01372

Browse files
committed
Switch to PSR12 coding standard
1 parent 3b1f5f1 commit ff01372

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

phpcs.xml.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
<file>src</file>
44
<file>tests</file>
55
<arg value="p" />
6-
<rule ref="PSR2" />
6+
<rule ref="PSR12" />
77
</ruleset>

src/Exception.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ abstract class Exception
1717
*
1818
* @return Throwable
1919
*/
20-
final public static function getBaseException(Throwable $throwable) : Throwable
20+
final public static function getBaseException(Throwable $throwable): Throwable
2121
{
2222
while ($throwable->getPrevious() !== null) {
2323
$throwable = $throwable->getPrevious();
@@ -56,7 +56,7 @@ final public static function raise(int $level, string $message, string $file = n
5656
*
5757
* @return array
5858
*/
59-
final public static function toArray(Throwable $throwable, bool $traceAsString = false, int $depth = 512) : array
59+
final public static function toArray(Throwable $throwable, bool $traceAsString = false, int $depth = 512): array
6060
{
6161
$result = [
6262
'type' => get_class($throwable),

tests/ExceptionTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
namespace SubjectivePHPTests\Util;
34

45
use SubjectivePHP\Util\Exception;

0 commit comments

Comments
 (0)