Skip to content

Commit

Permalink
Fix up phpstan silencing. (propelorm#1853)
Browse files Browse the repository at this point in the history
* Fix up phpstan silencing.

* Fix CS.
  • Loading branch information
dereuromark authored Mar 28, 2022
1 parent caa050b commit 767a72d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 21 deletions.
15 changes: 0 additions & 15 deletions phpstan-baseline.neon

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 1 addition & 5 deletions src/Propel/Runtime/ActiveQuery/ModelCriteria.php
Original file line number Diff line number Diff line change
Expand Up @@ -2097,11 +2097,7 @@ protected function getCriterionForClause(string $clause, $value, ?int $bindingTy
protected function convertValueForColumn($value, ColumnMap $colMap)
{
if ($colMap->getType() === 'OBJECT' && is_object($value)) {
if (is_array($value)) {
$value = array_map('serialize', $value);
} else {
$value = serialize($value);
}
$value = serialize($value);
} elseif ($colMap->getType() === 'ARRAY' && is_array($value)) {
$value = '| ' . implode(' | ', $value) . ' |';
} elseif ($colMap->getType() === PropelTypes::ENUM && $value !== null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class UniqueValidator extends ConstraintValidator
{
/**
* @param mixed $value
* @param \Symfony\Component\Validator\Constraint $constraint
* @param \Propel\Runtime\Validator\Constraints\Unique $constraint
*
* @return void
*/
Expand Down

0 comments on commit 767a72d

Please sign in to comment.