[TOOLS][CS-FIXER] Run new PHP CS Fixer config. Notably, adds strict_types

This commit is contained in:
2021-10-10 09:26:18 +01:00
committed by Diogo Peralta Cordeiro
parent 028ea79fff
commit 2694d83ae4
5 changed files with 13 additions and 31 deletions

View File

@@ -221,7 +221,7 @@ class DB
$metadata = self::getClassMetadata(\get_class($owner));
$seqName = $metadata->getSequenceName($conn->getDatabasePlatform());
self::persist($owner);
$id = (int ) $conn->lastInsertId($seqName);
$id = (int) $conn->lastInsertId($seqName);
F\map(\is_array($others) ? $others : [$others], function ($o) use ($id) { $o->setId($id); self::persist($o); });
if (!\is_null($extra)) {
$extra($id);