mirror of
				https://gitlab.com/Chill-Projet/chill-bundles.git
				synced 2025-10-31 09:18:24 +00:00 
			
		
		
		
	Use constructor property promotion
In accordance with php8.1 use property promotion\ within the constructor method. Less clutter.
This commit is contained in:
		| @@ -24,12 +24,8 @@ use Symfony\Component\Security\Core\Security; | ||||
|  */ | ||||
| class StoredObjectVoter extends Voter | ||||
| { | ||||
|     private $security; | ||||
|     private $storedObjectVoters; | ||||
|  | ||||
|     public function __construct(Security $security, iterable $storedObjectVoters) { | ||||
|         $this->security = $security; | ||||
|         $this->storedObjectVoters = $storedObjectVoters; | ||||
|     public function __construct(private readonly Security $security, private readonly iterable $storedObjectVoters) { | ||||
|     } | ||||
|  | ||||
|     protected function supports($attribute, $subject): bool | ||||
|   | ||||
		Reference in New Issue
	
	Block a user