Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Kdyby/Doctrine/Diagnostics/Panel.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ class Panel implements IBarPanel, Doctrine\DBAL\Logging\SQLLogger
* @param array|null $params
* @param array|null $types
*/
public function startQuery($sql, array $params = NULL, array $types = NULL)
public function startQuery($sql, ?array $params = NULL, ?array $types = NULL)
{
Debugger::timer('doctrine');

Expand Down Expand Up @@ -559,7 +559,7 @@ public static function highlightQuery($sql)
* @throws \Nette\Utils\RegexpException
* @return string
*/
public static function formatQuery($query, $params, array $types = [], AbstractPlatform $platform = NULL)
public static function formatQuery($query, $params, array $types = [], ?AbstractPlatform $platform = NULL)
{
if ($platform === NULL) {
$platform = new Doctrine\DBAL\Platforms\MySqlPlatform();
Expand Down
2 changes: 1 addition & 1 deletion src/Kdyby/Doctrine/EntityManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ public function newHydrator($hydrationMode)
* @throws \Doctrine\ORM\ORMException
* @return EntityManager
*/
public static function create($conn, Doctrine\ORM\Configuration $config, Doctrine\Common\EventManager $eventManager = NULL)
public static function create($conn, Doctrine\ORM\Configuration $config, ?Doctrine\Common\EventManager $eventManager = NULL)
{
if (!$config->getMetadataDriverImpl()) {
throw ORMException::missingMappingDriverImpl();
Expand Down