1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-09-15 18:57:05 +00:00

Modernize to PHP 5.5

This commit is contained in:
Yassine Guedidi 2025-04-05 13:12:32 +02:00
parent 99a49bfc96
commit 745fef44f4
3 changed files with 4 additions and 2 deletions

View file

@ -50,7 +50,7 @@ class UsernameFeedTokenConverter implements ParamConverterInterface
$em = $this->registry->getManagerForClass($configuration->getClass());
// Check, if class name is what we need
if (null !== $em && 'Wallabag\Entity\User' !== $em->getClassMetadata($configuration->getClass())->getName()) {
if (null !== $em && User::class !== $em->getClassMetadata($configuration->getClass())->getName()) {
return false;
}