Skip to content

Commit

Permalink
QA: repair phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
f3l1x committed Dec 12, 2019
1 parent 9650416 commit b5e93d5
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 2 deletions.
5 changes: 5 additions & 0 deletions phpstan.neon
@@ -1 +1,6 @@
parameters:
ignoreErrors:
-
message: "#^Call to deprecated method validateConfig\\(\\) of class Nette\\\\DI\\\\CompilerExtension\\:\nuse getConfigSchema\\(\\)$#"
count: 1
path: src/DI/ComgateExtension24.php
2 changes: 0 additions & 2 deletions src/DI/ComgateExtension24.php
Expand Up @@ -8,8 +8,6 @@
use GuzzleHttp\Client;
use Nette\DI\CompilerExtension;
use Nette\DI\Statement;
use Nette\Schema\Expect;
use Nette\Schema\Schema;

class ComgateExtension24 extends CompilerExtension
{
Expand Down
4 changes: 4 additions & 0 deletions src/Entity/Payment.php
Expand Up @@ -65,6 +65,10 @@ class Payment extends AbstractEntity
/** @var mixed[] */
private $eetData;

final private function __construct()
{
}

public static function of(
int $price,
string $curr,
Expand Down
4 changes: 4 additions & 0 deletions src/Entity/PaymentStatus.php
Expand Up @@ -8,6 +8,10 @@ class PaymentStatus extends AbstractEntity
/** @var string */
private $transId;

final private function __construct()
{
}

public static function of(string $transId): self
{
$ps = new static();
Expand Down

0 comments on commit b5e93d5

Please sign in to comment.