src/Services/Promotion.php
BeforeProposed
+1−1
33namespace Schemas\Services;
44final class Promotion {
55 public static function allows(string $writer,string $reader): bool {
6 return $writer===$reader || in_array([$writer,$reader],[['long','int'],['double','int'],['double','long']],true);
6 return $writer===$reader || in_array([$writer,$reader],[['int','long'],['int','double'],['long','double']],true);
77 }
88}