File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99 */
1010final class Future
1111{
12+ private static bool $ isForwardCompatibilityEnabled = false ;
13+
14+ public static function enableForwardCompatibility (): void
15+ {
16+ self ::$ isForwardCompatibilityEnabled = true ;
17+ }
18+
1219 public static function isForwardCompatibilityEnabled (): bool
1320 {
14- return false ;
21+ return self :: $ isForwardCompatibilityEnabled ;
1522 }
1623}
Original file line number Diff line number Diff line change @@ -13,4 +13,11 @@ public function testIsForwardCompatabilityEnabledReturnsFalseByDefault(): void
1313 {
1414 self ::assertFalse (Future::isForwardCompatibilityEnabled ());
1515 }
16+
17+ public function testEnableForwardCompatabilityLetIsForwardCompatabilityEnabledReturnsTrue (): void
18+ {
19+ Future::enableForwardCompatibility ();
20+
21+ self ::assertTrue (Future::isForwardCompatibilityEnabled ());
22+ }
1623}
You can’t perform that action at this time.
0 commit comments