Skip to content

Commit cde8e60

Browse files
committed
phpstan 12
1 parent b80c8ef commit cde8e60

File tree

96 files changed

+487
-118
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

96 files changed

+487
-118
lines changed

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,8 @@
103103
"php": ">=7.1"
104104
},
105105
"require-dev": {
106-
"phpstan/phpstan": "^0.10.3",
107-
"thecodingmachine/phpstan-strict-rules": "^0.10.3",
106+
"phpstan/phpstan": "^0.12",
107+
"thecodingmachine/phpstan-strict-rules": "^0.12",
108108
"squizlabs/php_codesniffer": "^3.2"
109109
},
110110
"scripts": {
Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
<?php
22
namespace Safe\Exceptions;
33

4-
class ApacheException extends AbstractSafeException
4+
class ApacheException extends \Exception implements SafeExceptionInterface
55
{
6+
public static function createFromPhpError(): self
7+
{
8+
return new self(\json_last_error_msg(), \json_last_error());
9+
}
610
}
Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
<?php
22
namespace Safe\Exceptions;
33

4-
class ApcException extends AbstractSafeException
4+
class ApcException extends \Exception implements SafeExceptionInterface
55
{
6+
public static function createFromPhpError(): self
7+
{
8+
return new self(\json_last_error_msg(), \json_last_error());
9+
}
610
}
Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
<?php
22
namespace Safe\Exceptions;
33

4-
class ApcuException extends AbstractSafeException
4+
class ApcuException extends \Exception implements SafeExceptionInterface
55
{
6+
public static function createFromPhpError(): self
7+
{
8+
return new self(\json_last_error_msg(), \json_last_error());
9+
}
610
}
Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
<?php
22
namespace Safe\Exceptions;
33

4-
class ArrayException extends AbstractSafeException
4+
class ArrayException extends \Exception implements SafeExceptionInterface
55
{
6+
public static function createFromPhpError(): self
7+
{
8+
return new self(\json_last_error_msg(), \json_last_error());
9+
}
610
}
Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
<?php
22
namespace Safe\Exceptions;
33

4-
class Bzip2Exception extends AbstractSafeException
4+
class Bzip2Exception extends \Exception implements SafeExceptionInterface
55
{
6+
public static function createFromPhpError(): self
7+
{
8+
return new self(\json_last_error_msg(), \json_last_error());
9+
}
610
}
Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
<?php
22
namespace Safe\Exceptions;
33

4-
class ClassobjException extends AbstractSafeException
4+
class ClassobjException extends \Exception implements SafeExceptionInterface
55
{
6+
public static function createFromPhpError(): self
7+
{
8+
return new self(\json_last_error_msg(), \json_last_error());
9+
}
610
}
Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
<?php
22
namespace Safe\Exceptions;
33

4-
class ComException extends AbstractSafeException
4+
class ComException extends \Exception implements SafeExceptionInterface
55
{
6+
public static function createFromPhpError(): self
7+
{
8+
return new self(\json_last_error_msg(), \json_last_error());
9+
}
610
}
Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
<?php
22
namespace Safe\Exceptions;
33

4-
class CubridException extends AbstractSafeException
4+
class CubridException extends \Exception implements SafeExceptionInterface
55
{
6+
public static function createFromPhpError(): self
7+
{
8+
return new self(\json_last_error_msg(), \json_last_error());
9+
}
610
}
Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
<?php
22
namespace Safe\Exceptions;
33

4-
class DatetimeException extends AbstractSafeException
4+
class DatetimeException extends \Exception implements SafeExceptionInterface
55
{
6+
public static function createFromPhpError(): self
7+
{
8+
return new self(\json_last_error_msg(), \json_last_error());
9+
}
610
}

0 commit comments

Comments
 (0)