diff --git a/src/Entity/Parts/Supplier.php b/src/Entity/Parts/Supplier.php index 3702ed95..dc3ce664 100644 --- a/src/Entity/Parts/Supplier.php +++ b/src/Entity/Parts/Supplier.php @@ -72,6 +72,7 @@ class Supplier extends AbstractCompany /** * @ORM\OneToMany(targetEntity="Supplier", mappedBy="parent") * @ORM\OrderBy({"name" = "ASC"}) + * @var Collection */ protected $children; diff --git a/src/Repository/UserRepository.php b/src/Repository/UserRepository.php index 8d742303..7939248f 100644 --- a/src/Repository/UserRepository.php +++ b/src/Repository/UserRepository.php @@ -106,7 +106,7 @@ final class UserRepository extends NamedDBElementRepository implements PasswordU { if ($user instanceof User) { $user->setPassword($newEncodedPassword); - $this->getEntityManager()->flush($user); + $this->getEntityManager()->flush(); } } } diff --git a/src/Twig/LastUserExtension.php b/src/Twig/LastUserExtension.php index b116f512..1d9a5fd3 100644 --- a/src/Twig/LastUserExtension.php +++ b/src/Twig/LastUserExtension.php @@ -30,6 +30,7 @@ use Twig\TwigFunction; class LastUserExtension extends AbstractExtension { + /** @var \App\Repository\LogEntryRepository */ private $repo; public function __construct(EntityManagerInterface $em) diff --git a/src/Validator/Constraints/UrlOrBuiltinValidator.php b/src/Validator/Constraints/UrlOrBuiltinValidator.php index f8ed2ce8..77b20521 100644 --- a/src/Validator/Constraints/UrlOrBuiltinValidator.php +++ b/src/Validator/Constraints/UrlOrBuiltinValidator.php @@ -74,7 +74,7 @@ class UrlOrBuiltinValidator extends UrlValidator //After the %PLACEHOLDER% comes a slash, so we can check if we have a placholder via explode $tmp = explode('/', $value); //Builtins must have a %PLACEHOLDER% construction - if (!empty($tmp) && \in_array($tmp[0], $constraint->allowed_placeholders, false)) { + if (\in_array($tmp[0], $constraint->allowed_placeholders, false)) { return; }