Use PHPStan generics

[MAILPOET-2900]
This commit is contained in:
Jan Jakeš
2020-05-12 15:38:18 +02:00
committed by Veljko V
parent e1819d4334
commit 86a24ad674
19 changed files with 34 additions and 84 deletions

View File

@ -8,12 +8,7 @@ use MailPoet\WP\Functions as WPFunctions;
use MailPoetVendor\Carbon\Carbon;
/**
* @method SettingEntity[] findBy(array $criteria, array $orderBy = null, int $limit = null, int $offset = null)
* @method SettingEntity|null findOneBy(array $criteria, array $orderBy = null)
* @method SettingEntity|null findOneById(mixed $id)
* @method SettingEntity[] findAll()
* @method void persist(SettingEntity $entity)
* @method void remove(SettingEntity $entity)
* @extends Repository<SettingEntity>
*/
class SettingsRepository extends Repository {
public function findOneByName($name) {