Skip to content

Commit 2c70bf6

Browse files
committed
fix phpstan
1 parent 6e3a783 commit 2c70bf6

3 files changed

Lines changed: 5 additions & 7 deletions

File tree

phpstan-baseline.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,6 @@
7373
'count' => 1,
7474
'path' => __DIR__ . '/src/Controllers/RestController.php',
7575
];
76-
$ignoreErrors[] = [
77-
// identifier: class.notFound
78-
'message' => '#^Call to static method make\\(\\) on an unknown class Spatie\\\\Ignition\\\\Ignition\\.$#',
79-
'count' => 1,
80-
'path' => __DIR__ . '/src/Debug/Debugger.php',
81-
];
8276
$ignoreErrors[] = [
8377
// identifier: booleanNot.alwaysFalse
8478
'message' => '#^Negated boolean expression is always false\\.$#',

spec/system/framework/Cli/Commands/ClearLog.spec.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@
2323
$date = $this->date;
2424
$path = STORAGE_PATH . 'logs' . DS . "log-{$date}.log";
2525

26+
if (! is_dir($dir = dirname($path))) {
27+
@mkdir($dir, 0777, true);
28+
}
29+
2630
// creer 10 faux ficher de log
2731
for ($i = 0; $i < 10; $i++) {
2832
$newDate = date('Y-m-d', strtotime("+1 year -{$i} day"));

src/Debug/ExceptionManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class ExceptionManager
3636
/**
3737
* Gestionnaire d'exception (instance Whoops)
3838
*/
39-
private Run $debugger;
39+
private ?Run $debugger = null;
4040

4141
/**
4242
* Configuration du gestionnaire d'exception

0 commit comments

Comments
 (0)