Skip to content

Commit bf8c7ab

Browse files
committed
Ignore some PHPStan errors
1 parent 2046e96 commit bf8c7ab

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

LeanMapperQuery/Query.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -583,7 +583,7 @@ public function __call($name, array $args)
583583

584584
/////////////// basic commands //////////////////////
585585

586-
private function commandWhere($cond)
586+
private function commandWhere($cond) // @phpstan-ignore-line
587587
{
588588
if (is_array($cond)) {
589589
if (func_num_args() > 1) {
@@ -647,7 +647,7 @@ private function replaceEntitiesForItsPrimaryKeyValues(array $entities)
647647
return $entities;
648648
}
649649

650-
private function commandOrderBy($field)
650+
private function commandOrderBy($field) // @phpstan-ignore-line
651651
{
652652
if (is_array($field)) {
653653
foreach ($field as $key => $value) {
@@ -668,17 +668,17 @@ private function commandAsc($asc = true)
668668
$this->fluent->{$asc ? 'asc' : 'desc'}();
669669
}
670670

671-
private function commandDesc($desc = true)
671+
private function commandDesc($desc = true) // @phpstan-ignore-line
672672
{
673673
$this->commandAsc(!$desc);
674674
}
675675

676-
private function commandLimit($limit)
676+
private function commandLimit($limit) // @phpstan-ignore-line
677677
{
678678
$this->fluent->limit($limit);
679679
}
680680

681-
private function commandOffset($offset)
681+
private function commandOffset($offset) // @phpstan-ignore-line
682682
{
683683
$this->fluent->offset($offset);
684684
}

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
],
1111
"scripts": {
1212
"test": "vendor/bin/tester tests -s",
13-
"vet": "phpstan analyse -c phpstan.neon --no-progress --no-ansi --error-format raw"
13+
"vet": "phpstan analyse -c phpstan.neon --no-progress --memory-limit 2G --no-ansi --error-format raw"
1414
},
1515
"autoload": {
1616
"psr-0": {
@@ -23,6 +23,6 @@
2323
},
2424
"require-dev": {
2525
"nette/tester": "~2.3.4",
26-
"phpstan/phpstan": "~1.8"
26+
"phpstan/phpstan": "^1.8"
2727
}
2828
}

0 commit comments

Comments
 (0)