1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-09 00:22:53 +00:00

Add return types to tests (#10)

This commit is contained in:
Alexander Schranz 2022-02-21 13:42:28 +01:00 committed by GitHub
parent 1321bfca36
commit e9b60580f5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
62 changed files with 153 additions and 155 deletions

View file

@ -61,7 +61,7 @@ class RunScriptCommandTest extends TestCase
$ed->expects($this->once())
->method('hasEventListeners')
->with($this->callback(function (ScriptEvent $event) use ($scriptName, $expectedDevMode) {
->with($this->callback(function (ScriptEvent $event) use ($scriptName, $expectedDevMode): bool {
return $event->getName() === $scriptName
&& $event->isDevMode() === $expectedDevMode;
}))