Skip to content

Commit cec3fe3

Browse files
committed
getConfigDebug deprecated
1 parent 9f824ce commit cec3fe3

3 files changed

Lines changed: 10 additions & 1 deletion

File tree

‎phpstan.neon.dist‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
includes:
2-
- vendor/phpstan/phpstan-deprecation-rules/rules.neon
2+
# - vendor/phpstan/phpstan-deprecation-rules/rules.neon
33
- vendor/phpstan/phpstan-strict-rules/rules.neon
44
- vendor/spaze/phpstan-disallowed-calls/extension.neon
55
- vendor/spaze/phpstan-disallowed-calls/disallowed-dangerous-calls.neon

‎src/Service/LaravelPerformanceLogConfig.php‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ public function __construct(
1515
) {
1616
}
1717

18+
/**
19+
* @deprecated will be removed
20+
*/
1821
protected function getConfigDebug(): bool
1922
{
2023
return $this->getConfigValue('app.debug')->bool()->notNull();

‎src/Service/PerformanceLogConfig.php‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,9 @@ final public function restoreSlowJobThreshold(): void
206206
$this->temporaryJobThreshold = null;
207207
}
208208

209+
/**
210+
* @deprecated will be removed
211+
*/
209212
protected function getConfigDebug(): bool
210213
{
211214
return false;
@@ -286,6 +289,9 @@ private static function getTemporaryThreshold(?\WeakReference &$weakReference):
286289
return $threshold;
287290
}
288291

292+
/**
293+
* @deprecated will be removed
294+
*/
289295
private function checkDebugThreshold(?float $threshold): ?float
290296
{
291297
if ($threshold === 0.0) {

0 commit comments

Comments
 (0)