Reduce deprecation notices
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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],
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user