Skip to content
This repository was archived by the owner on Oct 24, 2024. It is now read-only.

Commit 2ec3f59

Browse files
phpstan level 8
1 parent a56b06a commit 2ec3f59

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

phpstan.neon

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
parameters:
2-
level: 5
2+
level: 8
33
paths:
44
- src
55
excludePaths:
66
- src/DependencyInjection/Configuration.php
77
ignoreErrors:
88
- '#is never written, only read#'
9+
- '#has no value type specified in iterable type#'
10+
- '#has parameter .* with no value type specified in iterable type#'

src/EventSubscriber/ProcessEventSubscriber.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public function onProcessEnded(ProcessEvent $processEvent): void
9797
if ($processExecution = ($this->processExecution[$processEvent->getProcessCode()] ?? null)) {
9898
$this->processExecution = array_filter($this->processExecution);
9999
array_pop($this->processExecution);
100-
$this->processLogHandler->setCurrentProcessCode(array_key_last($this->processExecution));
100+
$this->processLogHandler->setCurrentProcessCode((string) array_key_last($this->processExecution));
101101
$processExecution->setEndDate(new DateTime());
102102
$processExecution->setStatus(ProcessExecution::STATUS_SUCCESS);
103103
$processExecution->getProcess()->setLastExecutionDate($processExecution->getStartDate());

0 commit comments

Comments
 (0)