Skip to content

Commit

Permalink
fix phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
LordSimal committed Nov 17, 2024
1 parent 28754c7 commit 85d5904
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
19 changes: 19 additions & 0 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
parameters:
ignoreErrors:
-
message: '#^Call to an undefined method CakeScheduler\\Scheduler\\Scheduler\|Mockery\\LegacyMockInterface\:\:getEventManager\(\)\.$#'
identifier: method.notFound
count: 2
path: tests/TestCase/Command/ScheduleRunCommandTest.php

-
message: '#^Call to an undefined method CakeScheduler\\Scheduler\\Scheduler\|Mockery\\LegacyMockInterface\:\:shouldReceive\(\)\.$#'
identifier: method.notFound
count: 8
path: tests/TestCase/Command/ScheduleRunCommandTest.php

-
message: '#^Call to an undefined method Mockery\\ExpectationInterface\|Mockery\\HigherOrderMessage\:\:andReturn\(\)\.$#'
identifier: method.notFound
count: 8
path: tests/TestCase/Command/ScheduleRunCommandTest.php
3 changes: 3 additions & 0 deletions phpstan.neon
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
includes:
- phpstan-baseline.neon

parameters:
paths:
- src
Expand Down
2 changes: 1 addition & 1 deletion tests/TestCase/Scheduler/SchedulerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public function testAddCallable(): void
return $a + $b + $c;
}, [1,2,3]);
$events = $this->scheduler->dueEvents();
$this->assertNotEmpty($events);
$this->assertFalse($events->isEmpty());
}

public function testAddUnknownCommand(): void
Expand Down

0 comments on commit 85d5904

Please sign in to comment.