File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change 29
29
);
30
30
31
31
expectedArguments (
32
- \Redbitcz \DebugMode \Detector::detectProductionMode (),
32
+ \Redbitcz \DebugMode \Detector::detectProduction (),
33
33
0 ,
34
34
\Redbitcz \DebugMode \Detector::MODE_FULL ,
35
35
\Redbitcz \DebugMode \Detector::MODE_SIMPLE ,
Original file line number Diff line number Diff line change @@ -254,7 +254,7 @@ public static function detect(
254
254
* @param string|null $tempDir Path to temp directory. Optional, but required when Enabler mode is enabled
255
255
* @param bool|null $default Default value when no method matches
256
256
*/
257
- public static function detectProductionMode (
257
+ public static function detectProduction (
258
258
int $ mode = self ::MODE_SIMPLE ,
259
259
?string $ tempDir = null ,
260
260
?bool $ default = true
@@ -271,4 +271,16 @@ public static function detectProductionMode(
271
271
272
272
return $ result ;
273
273
}
274
+
275
+ /**
276
+ * @deprecated Use `detectProduction()`
277
+ * @see self::detectProduction()
278
+ */
279
+ public static function detectProductionMode (
280
+ int $ mode = self ::MODE_SIMPLE ,
281
+ ?string $ tempDir = null ,
282
+ ?bool $ default = false
283
+ ): ?bool {
284
+ return self ::detectProduction ($ mode , $ tempDir , $ default );
285
+ }
274
286
}
You can’t perform that action at this time.
0 commit comments