Reduce deprecation notices

This commit is contained in:
2025-09-06 15:01:03 +02:00
parent 892fe559a5
commit bf0584f4f5
4 changed files with 6 additions and 5 deletions
+2
View File
@@ -1,5 +1,7 @@
when@dev: &dev
# See full configuration: https://symfony.com/bundles/ZenstruckFoundryBundle/current/index.html#full-default-bundle-configuration
zenstruck_foundry:
persistence:
flush_once: true
when@test: *dev
+2 -3
View File
@@ -12,10 +12,9 @@ use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
#[MapProvider(EntityMapProvider::class)]
#[ORM\Table(name: 'project_support')]
#[ORM\UniqueConstraint(fields: ['project', 'origin'])]
#[ORM\Entity(repositoryClass: SupportRepository::class)]
#[ORM\Table(name: 'project_support', uniqueConstraints: [
new ORM\UniqueConstraint(fields: ['project', 'origin']),
])]
class Support
{
#[ORM\Id]
@@ -17,7 +17,7 @@ final class AuthorizationTokenSubscriber implements EventSubscriberInterface
private AuthService $authService,
) {}
public static function getSubscribedEvents()
public static function getSubscribedEvents(): array
{
return [
KernelEvents::VIEW => ['onView', EventPriorities::POST_WRITE],
+1 -1
View File
@@ -24,7 +24,7 @@ class ExchangeLocator
* @param ExchangeInterface $b
*/
usort($exchanges, function ($a, $b) {
return $a->getWeight() < $b->getWeight();
return $a->getWeight() <=> $b->getWeight();
});
foreach ($exchanges as $exchange) {