Closed
Description
In ObjectMetadataResolver.php line 69:
[TypeError]
Return value of PHPStan\Type\Doctrine\ObjectMetadataResolver::loadObjectMan
ager() must be an instance of Doctrine\Common\Persistence\ObjectManager or
null, instance of Doctrine\ORM\EntityManager returned
object-manager.php:
<?php
use Windy\Utility\DB\DB;
require '../hwinit.php';
return DB::get('MainDB')->getEM();
getEM()
method:
abstract public function getEM(): EntityManager;
Returning an EntityManager worked previously. Was something changed to make this incompatible?
Metadata
Metadata
Assignees
Labels
No labels