mirror of
				https://gitlab.com/Chill-Projet/chill-bundles.git
				synced 2025-10-31 01:08:26 +00:00 
			
		
		
		
	fix typing of Datetime
This commit is contained in:
		| @@ -18,8 +18,6 @@ declare(strict_types=1); | ||||
|  | ||||
| namespace Chill\CalendarBundle\Service\ShortMessageNotification; | ||||
|  | ||||
| use Monolog\DateTimeImmutable; | ||||
|  | ||||
| /** | ||||
|  * * Lundi => Envoi des rdv du mardi et mercredi. | ||||
|  * * Mardi => Envoi des rdv du jeudi. | ||||
| @@ -31,7 +29,7 @@ class DefaultRangeGenerator implements RangeGeneratorInterface | ||||
| { | ||||
|     public function generateRange(\DateTimeImmutable $date): ?array | ||||
|     { | ||||
|         $onMidnight = DateTimeImmutable::createFromFormat('Y-m-d H:i:s', $date->format('Y-m-d').' 00:00:00'); | ||||
|         $onMidnight = \DateTimeImmutable::createFromFormat('Y-m-d H:i:s', $date->format('Y-m-d').' 00:00:00'); | ||||
|  | ||||
|         switch ($dow = (int) $onMidnight->format('w')) { | ||||
|             case 6: // Saturday | ||||
|   | ||||
		Reference in New Issue
	
	Block a user