Skip to content

Commit 874f97d

Browse files
Update dependency phpstan/phpstan to ^2.1.40 (#65)
* Update dependency phpstan/phpstan to ^2.1.40 | datasource | package | from | to | | ---------- | --------------- | ------ | ------ | | packagist | phpstan/phpstan | 2.1.39 | 2.1.40 | * SA fix --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Filippo Tessarotto <zoeslam@gmail.com>
1 parent 0639c79 commit 874f97d

3 files changed

Lines changed: 7 additions & 4 deletions

File tree

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"php": "~8.4.0 || ~8.5.0"
1515
},
1616
"require-dev": {
17-
"phpstan/phpstan": "^2.1.39",
17+
"phpstan/phpstan": "^2.1.40",
1818
"phpstan/phpstan-phpunit": "^2.0.16",
1919
"phpstan/phpstan-strict-rules": "^2.0.10",
2020
"phpunit/phpunit": "^13.0.5",

phpunit.xml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
55
colors="true"
66
cacheDirectory=".phpunit.cache"
7-
displayDetailsOnPhpunitDeprecations="true"
8-
displayDetailsOnTestsThatTriggerDeprecations="true"
7+
failOnAllIssues="true"
8+
displayDetailsOnAllIssues="true"
9+
beStrictAboutChangesToGlobalState="true"
910
>
1011
<coverage>
1112
<report>

tests/ErrorHandlerTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,10 @@ public function testEmailException(): void
189189
$this->errorHandler->emailException($this->exception);
190190

191191
self::assertNotEmpty($this->emailsSent);
192-
$message = \current($this->emailsSent);
192+
$message = $this->emailsSent[0];
193+
self::assertIsArray($message);
193194
$messageText = $message['body'];
195+
self::assertIsString($messageText);
194196
self::assertStringContainsString($this->exception->getMessage(), $messageText);
195197
self::assertStringContainsString($_SESSION[$key], $messageText);
196198
self::assertStringContainsString($_POST[$key], $messageText);

0 commit comments

Comments
 (0)